/* ------------------------------------------------------------
   Ollato Eduversity - Contact Form CSS
   File: assets/css/contact/contact-form.css

   Purpose:
   - Style the Contact Form section
   - Keep typography simple, professional and readable
   - Keep main heading and form titles bold only
   - Style enquiry form, inputs, response note and submit button
   - Support English, Marathi and Hindi layouts

   Related PHP file:
   pages/contact/contact-form.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Section Base
------------------------------------------------------------ */

.contact-form-section {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
    background:
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-form-section::before {
    content: "";
    position: absolute;
    top: 90px;
    right: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.045);
    pointer-events: none;
}

.contact-form-section::after {
    content: "";
    position: absolute;
    left: -90px;
    bottom: 90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(33, 166, 122, 0.055);
    pointer-events: none;
}

.contact-form-section .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Layout
------------------------------------------------------------ */

.contact-form-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: flex-start;
    gap: var(--space-10);
}

.contact-form-content {
    max-width: 560px;
}

.contact-form-box {
    width: 100%;
    padding: var(--space-6);
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-xl);
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
}


/* ------------------------------------------------------------
   Content
------------------------------------------------------------ */

.contact-form-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.contact-form-title {
    margin-bottom: var(--space-3);
    color: var(--color-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-form-subtitle {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.contact-form-description {
    margin-bottom: var(--space-6);
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   Response Note
------------------------------------------------------------ */

.contact-response-note {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4);
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-xs);
}

.contact-response-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 20px;
    line-height: 1;
}

.contact-response-note-content {
    min-width: 0;
}

.contact-response-note-title {
    margin-bottom: var(--space-2);
    color: var(--color-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.contact-response-note-text {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}


/* ------------------------------------------------------------
   Form Box Header
------------------------------------------------------------ */

.contact-form-box-header {
    margin-bottom: var(--space-5);
}

.contact-form-box-title {
    margin-bottom: var(--space-2);
    color: var(--color-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-form-box-text {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}


/* ------------------------------------------------------------
   Form Layout
------------------------------------------------------------ */

.contact-enquiry-form {
    display: grid;
    gap: var(--space-4);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.contact-enquiry-form .form-group {
    margin-bottom: 0;
}

.contact-enquiry-form .form-label {
    display: inline-block;
    margin-bottom: var(--space-2);
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.contact-enquiry-form .form-label span {
    color: var(--color-danger, #dc3545);
}

.contact-enquiry-form .form-control,
.contact-enquiry-form .form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        background-color var(--transition-normal);
}

.contact-enquiry-form .form-select {
    cursor: pointer;
}

.contact-enquiry-form textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-enquiry-form .form-control::placeholder {
    color: var(--color-text-muted);
}

.contact-enquiry-form .form-control:focus,
.contact-enquiry-form .form-select:focus {
    border-color: rgba(31, 79, 143, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 79, 143, 0.1);
}

.contact-enquiry-form .form-control:disabled,
.contact-enquiry-form .form-select:disabled {
    background-color: var(--color-light);
    cursor: not-allowed;
}


/* ------------------------------------------------------------
   Privacy Note
------------------------------------------------------------ */

.contact-form-privacy {
    margin: 0;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background-color: rgba(31, 79, 143, 0.05);
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}


/* ------------------------------------------------------------
   Submit Button
------------------------------------------------------------ */

.contact-form-submit {
    width: 100%;
    min-height: 46px;
    margin-top: var(--space-1);
    font-weight: 500;
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .contact-form-title,
html[lang="mr"] .contact-form-title {
    line-height: 1.4;
}

html[lang="hi"] .contact-form-subtitle,
html[lang="hi"] .contact-form-description,
html[lang="hi"] .contact-response-note-text,
html[lang="hi"] .contact-form-box-text,
html[lang="hi"] .contact-form-privacy,
html[lang="mr"] .contact-form-subtitle,
html[lang="mr"] .contact-form-description,
html[lang="mr"] .contact-response-note-text,
html[lang="mr"] .contact-form-box-text,
html[lang="mr"] .contact-form-privacy {
    line-height: 1.85;
}

html[lang="hi"] .contact-response-note-title,
html[lang="hi"] .contact-form-box-title,
html[lang="mr"] .contact-response-note-title,
html[lang="mr"] .contact-form-box-title {
    line-height: 1.55;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .contact-form-section {
        padding-top: var(--space-11);
        padding-bottom: var(--space-12);
    }

    .contact-form-wrapper {
        grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
        gap: var(--space-8);
    }

    .contact-form-title {
        font-size: 28px;
    }

    .contact-form-box {
        padding: var(--space-5);
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .contact-form-section {
        padding-top: var(--space-10);
        padding-bottom: var(--space-11);
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .contact-form-content {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-form-description {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-response-note {
        max-width: 620px;
        margin: 0 auto;
        text-align: left;
    }

    .contact-form-box {
        max-width: 720px;
        margin: 0 auto;
    }

    .contact-form-title {
        font-size: 27px;
    }

    .contact-form-subtitle {
        font-size: 15px;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .contact-form-section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-10);
    }

    .contact-form-section::before,
    .contact-form-section::after {
        display: none;
    }

    .contact-form-wrapper {
        gap: var(--space-6);
    }

    .contact-form-title {
        font-size: 25px;
        line-height: 1.35;
    }

    .contact-form-subtitle,
    .contact-form-description {
        font-size: 14px;
    }

    .contact-form-box {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }

    .contact-form-box-title {
        font-size: 20px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .contact-response-note {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: var(--space-3);
    }

    .contact-response-note-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .contact-form-section {
        padding-top: var(--space-7);
        padding-bottom: var(--space-9);
    }

    .contact-form-title {
        font-size: 23px;
    }

    .contact-form-label {
        margin-bottom: var(--space-2);
    }

    .contact-response-note {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-response-note-icon {
        margin: 0 auto;
    }

    .contact-response-note-title {
        font-size: 15px;
    }

    .contact-response-note-text,
    .contact-form-box-text,
    .contact-enquiry-form .form-label,
    .contact-enquiry-form .form-control,
    .contact-enquiry-form .form-select,
    .contact-form-privacy {
        font-size: 13px;
    }

    .contact-enquiry-form .form-control,
    .contact-enquiry-form .form-select {
        min-height: 44px;
    }

    .contact-form-box-title {
        font-size: 18px;
    }
}