/* ================================================
   CONTACT SECTION
   ================================================ */

.contact-section {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ================================================
   CONTACT FORM
   ================================================ */

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-form-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 14px;
}

/* Contact Form 7 Styling */
.contact-form-content .wpcf7-form p {
    margin-bottom: 20px;
}

.contact-form-content .wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--heading-color);
    margin-bottom: 8px;
}

.contact-form-content .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-content .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    color: var(--text-color);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    outline: none;
}

.contact-form-content .wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 118, 187, 0.1);
}

.contact-form-content .wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-content .wpcf7-submit {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    line-height: 1em;
    padding: 17px 34px;
    color: var(--bg-white);
    background-color: var(--color-mid-blue);
    border: 2px solid var(--color-mid-blue);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.contact-form-content .wpcf7-submit:hover {
    background-color: var(--color-havelock-blue);
    border-color: var(--color-havelock-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-form-content .wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.contact-form-content .wpcf7-spinner {
    margin-left: 10px;
}

/* Validation Messages */
.contact-form-content .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
}

.contact-form-content .wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc2626;
}

.contact-form-content .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.contact-form-content .wpcf7-response-output.wpcf7-validation-errors {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    color: #991b1b;
}

.contact-form-content .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #166534;
}

/* Hidden fields */
.contact-form-content .hidden-fields-container {
    display: none;
}

/* Screen reader text */
.contact-form-content .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================
   CONTACT INFO
   ================================================ */

.contact-heading {
    font-size: var(--h2-size);
    font-weight: var(--font-weight-semibold);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 16px;
}

.contact-description {
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 30px;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 20px;
}

.contact-content {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--heading-color);
    line-height: 1.4;
}

.contact-content a {
    color: var(--heading-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-content a:hover {
    color: var(--primary-hover);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .contact-inner {
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 32px;
    }

    .contact-form-content .wpcf7-form-control:not(.wpcf7-submit) {
        padding: 12px 14px;
        font-size: 14px;
    }

    .contact-form-content .wpcf7-submit {
        padding: 15px 30px;
    }
}

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .contact-form-content .wpcf7-submit {
        width: 100%;
        padding: 16px 32px;
    }

    .contact-info-wrapper {
        order: -1;
        text-align: center;
    }

    .contact-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contact-heading {
        font-size: 24px;
    }

    .contact-content {
        font-size: 16px;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-form-content .wpcf7-form p {
        margin-bottom: 16px;
    }

    .contact-form-content .wpcf7-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .contact-form-content .wpcf7-form-control:not(.wpcf7-submit) {
        padding: 12px 14px;
        font-size: 14px;
    }

    .contact-form-content .wpcf7-submit {
        width: 100%;
        padding: 15px 28px;
        font-size: 14px;
    }

    .contact-form-placeholder {
        min-height: 300px;
    }

    .contact-heading {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .contact-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .contact-divider {
        width: 50px;
        height: 2px;
        margin-bottom: 24px;
    }

    .contact-details {
        gap: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 18px;
    }

    .contact-content {
        font-size: 14px;
    }
}
