/* ===========================================
   ADMISSION.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; }


/* ===========================================
   ADMISSION HERO
=========================================== */
.admission-hero-bg {
    background: #f3f7fc;
}

.admission-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.admission-hero-content .global-h1 {
    margin-bottom: 20px;
    color: #111;
}

.admission-hero-content .global-p {
    margin-bottom: 32px;
}

/* Checklist highlights */
.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.hero-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 */
.admission-hero-image {
    position: relative;
}

.admission-hero-image img {
    border-radius: 28px;
    height: 560px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 80px rgba(10, 61, 145, .14);
}

.admission-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-year-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);
}

.year-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.year-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    opacity: .85;
    margin-top: 4px;
}


/* ===========================================
   ADMISSION FORM
=========================================== */
.admission-form-section {
    background: #fff;
}

.admission-form-wrapper {
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    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: 28px;
}

.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;
}

.form-group label svg { flex-shrink: 0; color: var(--primary); }

.required { color: #e53e3e; font-size: 14px; }
.optional  { color: #aaa; font-size: 13px; font-weight: 500; }

/* 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: 140px;
    padding: 16px 20px;
    resize: vertical;
    min-height: 120px;
}

/* Focus states */
.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);
}

/* 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, opacity .3s;
}

.form-submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(10, 61, 145, .28);
}

.btn-primary {
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    color: #fff;
    display: inline-flex;
    align-items: center;
}


/* ===========================================
   WHY APPLY SECTION
=========================================== */
.why-apply-bg {
    background: #f3f7fc;
}

.why-apply-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-apply-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(10, 61, 145, .06);
    border: 1px solid #eef2fb;
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
}

.why-apply-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3d91, #12c7ea);
    opacity: .04;
}

.why-apply-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 56px rgba(10, 61, 145, .12);
}

.apply-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #eaf1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform .35s ease;
}

.why-apply-card:hover .apply-icon {
    transform: scale(1.1) rotate(-5deg);
}

.why-apply-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.why-apply-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
}


/* ===========================================
   CTA SECTION
=========================================== */
.cta-bg {
    background: #fff;
}

.admission-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;
}

.admission-cta-box .global-h2 {
    color: #fff;
    margin-bottom: 14px;
}

.admission-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-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) {

    .admission-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .admission-hero-image img {
        height: 420px;
    }

    .admission-hero-image::before { display: none; }

    .why-apply-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .admission-form-wrapper {
        padding: 44px;
    }

    .admission-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 */
    .admission-hero-image img {
        height: 300px;
        border-radius: 20px;
    }

    .hero-year-badge {
        top: 16px;
        right: 16px;
        padding: 12px 16px;
    }

    .year-num { font-size: 22px; }

    .hero-highlights { gap: 10px; }

    .hero-highlight-item {
        font-size: 14px;
    }

    /* Form */
    .admission-form-wrapper {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .form-group input,
    .form-group select {
        height: 50px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-footer {
        margin-top: 28px;
        padding-top: 22px;
    }

    /* Why Apply */
    .why-apply-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-apply-card {
        padding: 30px 24px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .apply-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
        margin: 0;
        flex-shrink: 0;
    }

    .why-apply-card h3 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    /* CTA */
    .admission-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) {

    .admission-hero-image img {
        height: 250px;
    }

    .admission-form-wrapper {
        padding: 22px 16px;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        padding: 0 16px;
    }

    .form-group textarea {
        padding: 14px 16px;
    }

    .why-apply-card {
        padding: 24px 18px;
    }
}


/* ─────────────────────────────────────────────────
   ADD THESE RULES TO YOUR  public/css/admission.css
───────────────────────────────────────────────── */

/* ── Alert banners ── */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.form-alert svg { flex-shrink: 0; margin-top: 2px; }

.form-alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.form-alert-error ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* ── Per-field error text ── */
.field-error {
    display: block;
    font-size: .78rem;
    color: #dc2626;
    margin-top: .25rem;
}

/* ── Error state on form-group ── */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc2626 !important;
    background-color: #fff5f5;
}