/* =========================================================
   BAPBI CONTACT PAGE
   Uses css/styles.css as the master stylesheet.
========================================================= */


/* =========================================================
   CONTACT PAGE BASE
========================================================= */

.contact-page main {
    background: var(--ivory);
}


/* =========================================================
   CONTACT INTRODUCTION
========================================================= */

.contact-introduction-section {
    padding: 92px 0;
    background: var(--ivory);
}

.contact-intro-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);
    gap: 64px;
    align-items: center;
}


/* =========================================================
   SHARED SECTION EYEBROW
========================================================= */

.section-eyebrow,
.contact-address-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--gold-dark, #9a6b18);
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   CONTACT HEADINGS
========================================================= */

.contact-intro-content h1,
.contact-section-heading h2,
.contact-information-panel h2 {
    margin: 0 0 22px;
    color: var(--espresso, #2b1b12);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.contact-intro-content h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.contact-intro-content h1 span {
    color: var(--gold-dark, #9a6b18);
}


/* =========================================================
   CONTACT INTRO TEXT
========================================================= */

.contact-intro-content p,
.contact-section-heading > p {
    max-width: 700px;
    color: #24170f;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.75;
    text-shadow: none;
}

.contact-intro-content .contact-intro-lead {
    color: #1d120c;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.7;
}

.contact-intro-content p + p {
    margin-top: 18px;
}


/* =========================================================
   MAIN CONTACT INFORMATION PANEL
========================================================= */

.contact-information-panel {
    padding: 38px 34px;
    border: 1px solid var(--gold, #c8a45d);
    background: var(--espresso, #2b1b12);
    box-shadow:
        var(--shadow, 0 16px 45px rgba(0, 0, 0, 0.12));
}

.contact-panel-label {
    display: block;
    margin-bottom: 16px;
    color: var(--gold-light, #e4c77c);
    font-family: "Inter", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-information-panel > a {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--white, #fff);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
}

.contact-information-panel > p,
.contact-hours span,
.contact-hours strong {
    display: block;
    color: var(--text-light, #f7f0e6);
    line-height: 1.7;
}

.contact-hours {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-hours strong {
    margin-bottom: 6px;
    color: var(--gold-light, #e4c77c);
}


/* =========================================================
   ADDRESS
========================================================= */

.contact-address-inline {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(43, 27, 18, 0.18);
}

.contact-address-inline .contact-address-label {
    margin-bottom: 8px;
}

.contact-address-inline p {
    margin: 0;
    color: #1d120c;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.6;
}


/* =========================================================
   STUDENT SUPPORT SECTION
========================================================= */

.contact-student-support {
    position: relative;
    padding: 90px 0 96px;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(109, 53, 12, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(159, 104, 22, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #120906,
            #1b0d08 55%,
            #160a06
        );

    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}


/* Decorative Gold Line */

.contact-student-support::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 180px;
    height: 2px;
    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );
}


/* =========================================================
   STUDENT SUPPORT HEADER
========================================================= */

.contact-student-support-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.contact-student-support-header .section-eyebrow {
    color: var(--gold-light);
}

.contact-student-support-header h2 {
    margin: 12px 0 16px;
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.015em;
}

.contact-student-support-header p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   STUDENT SUPPORT CARDS
========================================================= */

.contact-support-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-support-card {
    position: relative;
    padding: 34px 32px 36px;

    background:
        linear-gradient(
            145deg,
            rgba(53, 23, 7, 0.94),
            rgba(24, 11, 6, 0.98)
        );

    border: 1px solid rgba(213, 163, 47, 0.18);
    border-top: 3px solid var(--gold-dark);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-support-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(213, 163, 47, 0.45);

    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.35);
}


/* Card Number */

.contact-support-number {
    display: block;
    margin-bottom: 20px;

    color: var(--gold);

    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


/* Card Heading */

.contact-support-card h3 {
    margin: 0 0 15px;

    color: var(--ivory);

    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}


/* Card Text */

.contact-support-card p {
    margin: 0;

    color: var(--text-muted);

    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
}

.contact-support-card strong {
    color: var(--gold-light);
    font-weight: 800;
}


/* =========================================================
   DEAN OF STUDENTS NOTICE
========================================================= */

.contact-dean-notice {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 22px;
    align-items: start;

    margin-top: 30px;
    padding: 30px 34px;

    background:
        linear-gradient(
            135deg,
            rgba(109, 53, 12, 0.32),
            rgba(53, 23, 7, 0.55)
        );

    border: 1px solid rgba(213, 163, 47, 0.25);
    border-left: 4px solid var(--gold);
}


/* Dean Symbol */

.contact-dean-symbol {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(213, 163, 47, 0.4);

    color: var(--gold-light);

    background:
        rgba(213, 163, 47, 0.06);

    font-size: 1.2rem;
}


/* Dean Label */

.contact-dean-label {
    display: block;
    margin-bottom: 5px;

    color: var(--gold-light);

    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}


/* Dean Heading */

.contact-dean-notice h3 {
    margin: 0 0 10px;

    color: var(--ivory);

    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}


/* Dean Text */

.contact-dean-notice p {
    margin: 0 0 10px;

    color: var(--text-muted);

    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.75;
}

.contact-dean-notice p:last-child {
    margin-bottom: 0;
}


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

.contact-form-section {
    padding: 92px 0;
    background: #eee5d8;
}

.contact-form-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.contact-section-heading {
    max-width: 560px;
}

.contact-section-heading h2 {
    font-size: clamp(2.25rem, 4vw, 3.6rem);
}

.contact-section-heading > p {
    max-width: 620px;
    margin: 0;
    color: #24170f;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.75;
}


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

.contact-form-card {
    padding: clamp(28px, 4vw, 48px);

    border: 1px solid rgba(43, 27, 18, 0.14);

    background: #fffdf9;

    box-shadow:
        0 16px 40px rgba(43, 27, 18, 0.08);
}

.bapbi-contact-form {
    display: grid;
    gap: 24px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.form-field {
    display: grid;
    gap: 9px;
}

.form-field label {
    color: var(--espresso, #2b1b12);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #cbbdad;
    border-radius: 0;

    background: #ffffff;
    color: var(--espresso, #2b1b12);

    font: inherit;
    font-size: 1rem;
    line-height: 1.5;

    padding: 13px 14px;
}

.form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--gold, #c8a45d);
    outline-offset: 2px;

    border-color:
        var(--gold-dark, #9a6b18);
}


/* =========================================================
   GOLD BUTTON
========================================================= */

.button.button-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 50px;

    padding: 14px 24px;

    border: 1px solid var(--gold, #c8a45d);
    border-radius: 0;

    background: var(--gold, #c8a45d);
    color: var(--espresso, #2b1b12);

    cursor: pointer;

    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.button.button-gold:hover {
    background: var(--gold-light, #e4c77c);
    color: var(--espresso, #2b1b12);
}


/* =========================================================
   FORM NOTE
========================================================= */

.form-note {
    margin: 0;

    color: var(--text-muted, #71645a);

    font-size: 0.86rem;
    line-height: 1.65;
}


/* =========================================================
   FORM SUBMISSION STATUS
========================================================= */

.form-status {
    min-height: 1.5em;
    margin: 0 0 1rem;

    color: var(--espresso);

    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
}

.form-status-error {
    color: #9b241d;
}

.bapbi-contact-form button:disabled {
    cursor: wait;
    opacity: 0.65;
}


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

.google-form-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fffdf9;
}

.google-form-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 820px;
    border: 0;
}


/* =========================================================
   SHARED STICKY SITE NAVIGATION
========================================================= */

.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .contact-intro-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }


    .contact-information-panel {
        max-width: 620px;
    }


    .contact-support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .contact-student-support {
        padding: 75px 0 80px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    /* -----------------------------------------------------
       Section Spacing
    ----------------------------------------------------- */

    .contact-introduction-section,
    .contact-form-section {
        padding: 56px 0;
    }


    .contact-student-support {
        padding: 65px 0 70px;
    }


    .contact-intro-grid,
    .contact-form-grid {
        gap: 30px;
    }


    /* -----------------------------------------------------
       Main Contact Heading
    ----------------------------------------------------- */

    .contact-intro-content h1 {
        font-size: clamp(2.6rem, 13vw, 3.5rem);
        line-height: 1;
    }


    /* -----------------------------------------------------
       Contact Text
    ----------------------------------------------------- */

    .contact-intro-content p,
    .contact-section-heading > p {
        font-size: 1.08rem;
        line-height: 1.7;
    }


    .contact-intro-content .contact-intro-lead {
        font-size: 1.15rem;
        line-height: 1.65;
    }


    /* -----------------------------------------------------
       Contact Information Panel
    ----------------------------------------------------- */

    .contact-information-panel {
        width: 100%;
        box-sizing: border-box;
        padding: 28px 20px;
    }


    .contact-information-panel > a {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------------------
       Address
    ----------------------------------------------------- */

    .contact-address-inline {
        margin-top: 24px;
        padding-top: 20px;
    }


    .contact-address-inline p {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }


    /* -----------------------------------------------------
       Student Support Header
    ----------------------------------------------------- */

    .contact-student-support-header {
        margin-bottom: 38px;
    }


    .contact-student-support-header h2 {
        font-size: 1.85rem;
        line-height: 1.2;
    }


    .contact-student-support-header p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       Student Support Cards
    ----------------------------------------------------- */

    .contact-support-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .contact-support-card {
        padding: 30px 25px;
    }


    .contact-support-card h3 {
        font-size: 1.25rem;
    }


    .contact-support-card p {
        font-size: 0.93rem;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       Dean of Students Notice
    ----------------------------------------------------- */

    .contact-dean-notice {
        grid-template-columns: 1fr;
        gap: 16px;

        padding: 25px;
    }


    .contact-dean-symbol {
        width: 46px;
        height: 46px;
    }


    .contact-dean-notice h3 {
        font-size: 1.25rem;
    }


    .contact-dean-notice p {
        font-size: 0.92rem;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       Contact Form Card
    ----------------------------------------------------- */

    .contact-form-card {
        width: 100%;
        box-sizing: border-box;
        padding: 24px 16px;
    }


    .bapbi-contact-form {
        gap: 20px;
    }


    /* -----------------------------------------------------
       Form Fields
    ----------------------------------------------------- */

    .form-field input,
    .form-field textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;

        font-size: 16px;
    }


    .form-field textarea {
        min-height: 150px;
    }


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

    .button.button-gold {
        width: 100%;
        min-height: 52px;
        padding: 14px 18px;
    }


    /* -----------------------------------------------------
       Form Note
    ----------------------------------------------------- */

    .form-note {
        font-size: 0.82rem;
    }


    /* -----------------------------------------------------
       Google Form
    ----------------------------------------------------- */

    .google-form-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    .google-form-wrapper iframe {
        width: 100%;
        max-width: 100%;
        min-height: 900px;
    }

}