/* ===========================================
   CONTACT.CSS  —  Dashmesh Khalsa College
   Extends global.css — no duplicate :root
=========================================== */

/* ── SECTION BADGE ── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: #eaf1ff;
    padding: 9px 18px;
    border-radius: var(--radius-badge);
    margin-bottom: 22px;
    letter-spacing: .3px;
}

.section-badge svg { flex-shrink: 0; }

/* ── SECTION TITLE ── */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-title .global-h2 { margin-bottom: 14px; }
.section-title .global-p  { max-width: 540px; margin: 0 auto; }


/* ===========================================
   CONTACT HERO
=========================================== */
.contact-hero-bg {
    background: #f3f7fc;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-hero-content .global-h1 {
    margin-bottom: 20px;
    color: #111;
}

.contact-hero-content .global-p {
    margin-bottom: 32px;
}

/* Highlights */
.contact-hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.contact-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.highlight-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Hero image */
.contact-hero-image {
    position: relative;
}

.contact-hero-image img {
    border-radius: 28px;
    height: 560px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(10, 61, 145, .14);
}

.contact-hero-image::before {
    content: '';
    position: absolute;
    inset: auto -14px -14px auto;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    z-index: -1;
    opacity: .28;
}

.hero-image-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    color: #fff;
    border-radius: 20px;
    padding: 16px 22px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 61, 145, .3);
}

.badge-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    opacity: .85;
    margin-top: 4px;
}


/* ===========================================
   INFO CARDS SECTION
=========================================== */
.contact-info-section {
    background: #fff;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-info-card {
    background: #fff;
    border-radius: 24px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(10, 61, 145, .07);
    border: 1px solid #eef2fb;
    border-top: 4px solid var(--primary);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    opacity: .04;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(10, 61, 145, .12);
}

.info-card-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: block;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

.contact-info-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
}

.info-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: gap .25s ease;
}

.info-card-link:hover {
    gap: 10px;
}

/* Status badge */
.info-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 6px 14px;
    border-radius: 50px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse-dot 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: .6; }
}


/* ===========================================
   CONTACT MAIN SECTION (Form + Sidebar)
=========================================== */
.contact-main-bg {
    background: #f3f7fc;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* ── FORM WRAPPER ── */
.contact-form-wrapper {
    background: #fff;
    border-radius: 30px;
    padding: 56px;
    box-shadow: 0 12px 50px rgba(10, 61, 145, .08);
    border: 1px solid #e8eef9;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Form group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: .3s;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    transition: color .25s;
}

.form-group label svg { flex-shrink: 0; color: var(--primary); }

.required { color: #e53e3e; font-size: 14px; }

/* Inputs, selects, textareas */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 56px;
    border: 1.5px solid #dde4f0;
    border-radius: 14px;
    padding: 0 20px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
    background: #fafbff;
    color: #111;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' stroke='%230a3d91' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-group textarea {
    height: 150px;
    padding: 16px 20px;
    resize: vertical;
    min-height: 120px;
}

/* Focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 145, .1);
    background: #fff;
}

.form-group.focused label {
    color: var(--primary);
}

/* Error state */
.form-group.field-error input,
.form-group.field-error select,
.form-group.field-error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, .1);
}

/* Form footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eef2fb;
    flex-wrap: wrap;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #888;
    margin: 0;
}

.form-note svg { flex-shrink: 0; color: #aaa; }

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0 36px;
    height: 56px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: transform .35s ease, box-shadow .35s ease;
}

.form-submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(10, 61, 145, .28);
}

/* Success message */
.form-success-msg {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #dcfce7;
    border: 1.5px solid #86efac;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    font-size: 15px;
    font-weight: 600;
    color: #166534;
}

.form-success-msg span {
    font-size: 28px;
    flex-shrink: 0;
}

/* ── SIDEBAR ── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 8px 32px rgba(10, 61, 145, .07);
    border: 1px solid #eef2fb;
}

.sidebar-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef2fb;
}

/* Sidebar info list */
.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sidebar-info-icon {
    width: 42px;
    height: 42px;
    background: #eaf1ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 3px;
}

.sidebar-info-item span {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

/* Social card */
.sidebar-social-card { }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.social-link:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.social-link--fb {
    background: #eef3ff;
    color: #1877f2;
}

.social-link--ig {
    background: #fff0f7;
    color: #e1306c;
}

.social-link--yt {
    background: #fff0f0;
    color: #ff0000;
}


/* ===========================================
   MAP SECTION
=========================================== */
.map-section {
    background: #fff;
}

.map-header {
    padding-top: 80px;
    padding-bottom: 40px;
}

.map-header .global-h2 {
    color: #111;
    margin-top: 4px;
}

.map-embed-wrapper {
    position: relative;
    line-height: 0;
}

.map-embed-wrapper iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
    filter: grayscale(15%);
}

.map-overlay-pin {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.map-pin-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 28px;
    box-shadow: 0 12px 40px rgba(10, 61, 145, .2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.map-pin-card strong {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

.map-pin-card span {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}


/* ===========================================
   CTA SECTION
=========================================== */
.cta-bg {
    background: #f3f7fc;
}

.contact-cta-box {
    background: linear-gradient(135deg, #082b73 0%, #0a3d91 50%, #0d6efd 100%);
    border-radius: 40px;
    padding: 90px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 199, 234, .25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.contact-cta-box .global-h2 {
    color: #fff;
    margin-bottom: 14px;
}

.contact-cta-box .global-p {
    color: rgba(255, 255, 255, .75);
    max-width: 520px;
    margin: 0 auto 36px;
}

.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    color: #fff;
    display: inline-flex;
    align-items: center;
}

.btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff;
    background: transparent;
    padding: 16px 32px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: .35s;
}

.btn-cta-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-5px);
}


/* ===========================================
   SCROLL-REVEAL
=========================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================================
   RESPONSIVE — TABLET (≤ 992px)
=========================================== */
@media (max-width: 992px) {

    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-hero-image img {
        height: 420px;
    }

    .contact-hero-image::before { display: none; }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 44px;
    }

    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact-cta-box {
        padding: 60px 48px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-submit-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===========================================
   RESPONSIVE — MOBILE (≤ 767px)
=========================================== */
@media (max-width: 767px) {

    /* Hero */
    .contact-hero-image img {
        height: 300px;
        border-radius: 20px;
    }

    .hero-image-badge {
        top: 16px;
        right: 16px;
        padding: 12px 16px;
    }

    .badge-num { font-size: 22px; }

    .contact-hero-highlights { gap: 10px; }

    .contact-highlight-item { font-size: 14px; }

    /* Info cards */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-info-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 24px;
    }

    .info-card-icon {
        font-size: 30px;
        flex-shrink: 0;
        margin: 0;
    }

    .contact-info-card p {
        margin-bottom: 8px;
    }

    /* Form */
    .contact-form-wrapper {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-group input,
    .form-group select {
        height: 50px;
        font-size: 14px;
    }

    .form-group label { font-size: 14px; }

    .form-footer {
        margin-top: 24px;
        padding-top: 20px;
    }

    /* Sidebar */
    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    /* Map */
    .map-header {
        padding-top: 56px;
        padding-bottom: 28px;
    }

    .map-embed-wrapper iframe {
        height: 320px;
    }

    .map-overlay-pin {
        bottom: 20px;
    }

    /* CTA */
    .contact-cta-box {
        padding: 50px 24px;
        border-radius: 24px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-cta-outline {
        font-size: 15px;
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

    .btn-primary.global-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
=========================================== */
@media (max-width: 480px) {

    .contact-hero-image img {
        height: 250px;
    }

    .contact-form-wrapper {
        padding: 22px 16px;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        padding: 0 16px;
    }

    .form-group textarea {
        padding: 14px 16px;
    }

    .sidebar-card {
        padding: 28px 20px;
    }
}