/* contact.css */

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 60px 7.5%;
    gap: 40px;
    min-height: calc(100vh - 160px); /* Adjust based on header/footer */
}

/* Form Section */
.contact-form-section {
    flex: 1 1 500px;
    max-width: 600px;
}

.contact-form-section h1 {
    color: #203f50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Query Type Toggles */
.query-type-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active, .toggle-btn:hover {
    background-color: #e6f0f2;
    border-color: #008C8C;
    color: #008C8C;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #008C8C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 140, 140, 0.1);
}

/* Button */
.cta-button-form {
    background-color: #203f50;
    color: white;
    padding: 14px 40px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: fit-content;
    margin-top: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button-form:hover {
    background-color: #1a3340;
    transform: translateY(-2px);
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: flex-start;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f9f9f9;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #008C8C;
    border-color: #008C8C;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-notice a {
    color: #555;
    text-decoration: underline;
}

/* Feature Image */
.contact-image-section {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-illustration {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* Optional shadow/decoration */
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column-reverse;
        padding-top: 40px;
    }
    
    .contact-form-section {
        width: 100%;
        max-width: 100%;
    }

    .contact-image-section {
        width: 100%;
    }
}
