/* Extracted verbatim from the approved design (cjps/contact.html). Theme additions are marked. */

/* ── INTERIOR PAGE HERO ─────────────────────────── */
.page-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroDrift 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroDrift {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.14);
    }
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 14, 28, 0.62) 0%,
            rgba(6, 14, 28, 0.55) 45%,
            rgba(6, 14, 28, 0.92) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px 76px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    color: rgba(201, 168, 76, 0.6);
}

.breadcrumb .current {
    color: var(--gold);
}

.page-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.page-hero-eyebrow::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--gold);
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.06;
    margin-bottom: 18px;
}

.page-hero-title em {
    color: var(--gold-light);
    font-style: italic;
}

.page-hero-sub {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
}

/* ── CONTACT SPLIT (INFO + FORM) ────────────────── */
.contact-split-section {
    background: var(--offwhite);
}

.contact-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 72px;
    align-items: start;
}

.ci-intro {
    margin-bottom: 36px;
}

.ci-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.ci-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.ci-item:hover {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.06);
}

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--stone);
    border: 1px solid var(--stone-border);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ci-icon svg {
    width: 20px;
    height: 20px;
}

.ci-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
}

.ci-value {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
}

.ci-value a {
    transition: color 0.2s;
}

.ci-value a:hover {
    color: var(--gold);
}

.ci-value span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.ci-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ci-soc-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 6px;
}

.soc-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--stone);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.soc-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.soc-btn svg {
    width: 16px;
    height: 16px;
}

/* Form card */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.07);
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-note {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--text);
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.14);
}

.field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-submit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.form-success {
    font-size: 14px;
    color: #1f7a4d;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    width: 18px;
    height: 18px;
}

/* ── CAMPUS CARDS ───────────────────────────────── */
.campus-section {
    background: var(--white);
}

.campus-head {
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.c-card {
    padding: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    transition: box-shadow 0.3s;
}

.c-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.07);
}

.c-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 44px;
    right: 44px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.c-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 28px;
}

.c-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.c-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gold-pale);
    border: 1px solid rgba(201, 168, 76, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-icon svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.c-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

.c-text strong {
    color: var(--text);
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 1px;
}

/* ── MAP ────────────────────────────────────────── */
.map-section {
    position: relative;
}

.map-head {
    text-align: center;
    padding: 72px 48px 40px;
    background: var(--offwhite);
}

.map-wrap {
    position: relative;
    height: 460px;
    background: var(--navy);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.2) contrast(1.05);
}

.map-badge {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-deep);
    color: var(--white);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    max-width: calc(100% - 48px);
}

.map-badge svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.map-badge-text {
    font-size: 13px;
    line-height: 1.4;
}

.map-badge-text strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.map-badge-text span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

/* ── PAGE-SPECIFIC RESPONSIVE ───────────────────── */
@media (max-width: 1100px) {
    .page-hero-content {
        padding: 0 32px 60px;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .map-head {
        padding: 56px 40px 36px;
    }
}

@media (max-width: 640px) {

    /* Page hero */
    .page-hero {
        min-height: 64svh;
    }

    .page-hero-content {
        padding: 0 24px 48px;
    }

    .page-hero-bg img {
        animation: none;
    }

    .breadcrumb {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }

    .page-hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .page-hero-title {
        font-size: clamp(34px, 10vw, 48px);
    }

    .page-hero-sub {
        font-size: 14.5px;
    }

    /* Contact split */
    .contact-split {
        gap: 40px;
    }

    .ci-item {
        padding: 18px 20px;
        gap: 14px;
    }

    .contact-form-card {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-title {
        font-size: 22px;
    }

    /* Campus cards */
    .c-card {
        padding: 32px 26px;
    }

    .c-card::after {
        left: 26px;
        right: 26px;
    }

    /* Map */
    .map-head {
        padding: 48px 24px 28px;
    }

    .map-wrap {
        height: 360px;
    }

    .map-badge {
        padding: 12px 16px;
        top: 20px;
    }
}

/* Theme additions: server-side form feedback */
.form-error {
    font-size: 14px;
    color: #b42318;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
