/* ============================================================
   CONTACT PAGE CSS — Redesigned, Fully Responsive
   Core color #687EFF preserved. No * font-family override.
   ============================================================ */

:root {
    --orange: #687EFF;
    --orange-light: #687EFF;
    --orange-pale: #f4f6ff;
    --orange-border: #dde2ff;
    --text-dark: #1a1a2e;
    --text-mid: #3d3d5c;
    --text-soft: #6b6b8a;
    --radius: 18px;
    --shadow: 0 4px 24px rgba(104, 126, 255, 0.10);
    --shadow-hover: 0 14px 40px rgba(104, 126, 255, 0.18);
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.contact-page-section {
    padding: 72px 0 80px;
    background: #f5f6ff;
    font-family: "DM Sans", sans-serif;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.contact-page-header {
    text-align: center;
    margin-bottom: 52px;
}

.contact-page-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-page-header h2 span {
    color: var(--orange);
}

.contact-page-header p {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   CAMPUS CARDS — 4-COLUMN GRID
   ============================================================ */
.contact-campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.contact-campus-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 22px 26px;
    border: 1.5px solid var(--orange-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contact-campus-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.contact-campus-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--orange-pale);
    border: 2px solid var(--orange-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--orange);
    flex-shrink: 0;
}

.contact-campus-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.contact-campus-body p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   QUICK CONTACT ROW — PHONE + EMAIL (horizontal cards)
   ============================================================ */
.contact-quick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.contact-quick-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 26px;
    border: 1.5px solid var(--orange-border);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.contact-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.contact-quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.contact-quick-body h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.contact-quick-body a {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-quick-body a:hover {
    color: var(--orange);
}

/* ============================================================
   MAIN GRID — FORM + MAP
   ============================================================ */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ============================================================
   CONTACT FORM BOX
   ============================================================ */
.contact-form-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 42px 38px;
    border: 1.5px solid var(--orange-border);
    box-shadow: var(--shadow);
}

.contact-form-box h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form-box .form-subtitle {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.65;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--orange-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    background: #fafbff;
    font-family: "DM Sans", sans-serif;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0b8d8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.btn-submit {
    width: 100%;
    background: var(--orange);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    box-shadow: 0 8px 22px rgba(104, 126, 255, 0.28);
}

.btn-submit:hover {
    background: #5269e0;
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(104, 126, 255, 0.38);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i,
.btn-submit .fas {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover .fas {
    transform: translateX(5px);
}

/* ============================================================
   MAP BOX
   ============================================================ */
.contact-map-box {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--orange-border);
    box-shadow: var(--shadow);
    flex: 1;
    min-height: 320px;
}

.contact-map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    display: block;
}

/* ============================================================
   WORKING HOURS CARD
   ============================================================ */
.contact-hours-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 30px;
    border: 1.5px solid var(--orange-border);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-hours-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: #fff;
}

.contact-hours-card h5 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.contact-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--orange-border);
    font-size: 15px;
    color: var(--text-soft);
}

.contact-hours-list li:last-child {
    border-bottom: none;
}

.contact-hours-list li span {
    font-weight: 600;
    color: var(--text-mid);
}

.contact-hours-list li strong {
    color: var(--orange);
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1199px) {
    .contact-main-grid {
        gap: 24px;
    }
    .contact-form-box {
        padding: 34px 30px;
    }
}

/* ============================================================
   RESPONSIVE — 1024px (campus 2 cols)
   ============================================================ */
@media (max-width: 1024px) {
    .contact-campus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE — 991px (stack main grid)
   ============================================================ */
@media (max-width: 991px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
    .contact-map-box {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-map-frame {
        flex: 2;
        min-width: 280px;
        min-height: 360px;
    }
    .contact-map-frame iframe {
        min-height: 360px;
    }
    .contact-hours-card {
        flex: 1;
        min-width: 220px;
    }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .contact-page-section {
        padding: 50px 0 60px;
    }
    .contact-page-header {
        margin-bottom: 36px;
    }
    .contact-page-header h2 {
        font-size: 30px;
    }
    .contact-page-header p {
        font-size: 15px;
    }

    .contact-campus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-quick-row {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 36px;
    }

    .contact-form-box {
        padding: 28px 22px;
    }
    .contact-form-box h3 {
        font-size: 22px;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-map-box {
        flex-direction: column;
    }
    .contact-map-frame {
        min-height: 280px;
    }
    .contact-map-frame iframe {
        min-height: 280px;
    }
    .contact-hours-card {
        padding: 22px 18px;
    }
    .contact-hours-list li {
        font-size: 14px;
    }
}

/* ============================================================
   RESPONSIVE — 576px
   ============================================================ */
@media (max-width: 576px) {
    .contact-page-section {
        padding: 36px 0 50px;
    }
    .contact-page-header h2 {
        font-size: 26px;
    }

    .contact-campus-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .contact-campus-card {
        padding: 22px 18px 20px;
    }
    .contact-campus-icon {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .contact-quick-card {
        padding: 20px 18px;
    }
    .contact-quick-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .contact-quick-body a {
        font-size: 16px;
    }

    .contact-form-box {
        padding: 22px 16px;
    }
    .btn-submit {
        font-size: 15px;
        padding: 13px 24px;
    }

    .contact-hours-card {
        padding: 18px 14px;
    }
    .contact-hours-list li {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}

/* ============================================================
   RESPONSIVE — 400px
   ============================================================ */
@media (max-width: 400px) {
    .contact-page-header h2 {
        font-size: 22px;
    }
    .contact-campus-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .contact-campus-body h4 {
        font-size: 15px;
    }
    .contact-campus-body p {
        font-size: 13px;
    }
}