/* ============================================================
   COLLEGE ADMISSION — PUBLIC FORM STYLES
   public/css/form.css
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --primary:        #EE161F;
    --primary-hover:  #cc0f17;
    --primary-glow:   rgba(238, 22, 31, 0.15);
    --secondary:      #0C477F;
    --secondary-light:#1a65a8;
    --secondary-glow: rgba(12, 71, 127, 0.12);
    --bg:             #f4f6fb;
    --white:          #ffffff;
    --border:         #e4e8f0;
    --text-dark:      #1a2332;
    --text-muted:     #888;
    --card-radius:    18px;
    --shadow:         0 4px 32px rgba(12, 71, 127, 0.10);
    --font-display:   'Playfair Display', serif;
    --font-body:      'DM Sans', sans-serif;
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: var(--secondary); padding: 0; }

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 32px;
}

.college-logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.college-logo img { width: 100%; height: 100%; object-fit: cover; }

.college-logo-placeholder {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-display);
}

.header-text { color: var(--white); }

.header-text h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.header-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}

.header-ribbon {
    background: var(--primary);
    text-align: center;
    padding: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* ============================================================
   MAIN
   ============================================================ */
main { flex: 1; padding: 40px 0; }

/* ============================================================
   STEP PROGRESS BAR
   ============================================================ */
.stepper-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 3px;
    background: #d0d7e6;
    transition: background 0.4s;
    z-index: 0;
}

.step-item.completed:not(:last-child)::after { background: var(--secondary); }

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d0d7e6;
    color: #888;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.step-item.active .step-circle {
    background: var(--primary);
    color: var(--white);
    border-color: #ff9195;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-item.completed .step-circle {
    background: var(--secondary);
    color: var(--white);
    border-color: #7ab3e0;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active   .step-label { color: var(--primary); }
.step-item.completed .step-label { color: var(--secondary); }

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 22px 32px;
    color: var(--white);
}

.form-card-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.form-card-header p { margin: 4px 0 0; font-size: 0.85rem; opacity: 0.85; }

.form-card-body { padding: 32px; }

/* ============================================================
   STEP PANELS
   ============================================================ */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInUp 0.35s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-label .req { color: var(--primary); }

.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-glow);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--primary); }

.invalid-feedback { font-size: 0.8rem; }

/* Input group icons */
.input-icon-group .input-group-text {
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #f8fafd;
}

.input-icon-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-icon-group .input-group-text-right {
    border: 2px solid var(--border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: #f8fafd;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Section dividers */
.section-divider {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
    margin: 24px 0 18px;
}

/* ============================================================
   COURSE SELECTOR CARDS
   ============================================================ */
.course-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.course-card {
    border: 2.5px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
}

.course-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.course-card.selected {
    border-color: var(--primary);
    background: #fff5f5;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.course-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.course-card-icon  { font-size: 2.2rem; margin-bottom: 10px; }
.course-card-title { font-weight: 700; font-size: 1.1rem; color: var(--secondary); margin-bottom: 4px; }
.course-card-desc  { font-size: 0.78rem; color: #666; }

.course-card .check-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.course-card.selected .check-mark { opacity: 1; }

/* ============================================================
   ELIGIBILITY BOX
   ============================================================ */
.eligibility-box {
    background: #f0f6ff;
    border: 1.5px solid #c0d9f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: none;
}

.eligibility-box.show { display: block; }

.eligibility-box h6 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.eligibility-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.83rem;
    color: #444;
}

.eligibility-box ul li { margin-bottom: 4px; }

/* ============================================================
   BRANCH CHECKBOXES
   ============================================================ */
.branch-group        { margin-bottom: 16px; }

.branch-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.branch-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.branch-checkbox:hover {
    border-color: var(--secondary);
    background: #f0f6ff;
}

.branch-checkbox input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.branch-checkbox label {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0;
}

/* Branch placeholder */
.branch-placeholder {
    background: #f8fafd;
    border: 1.5px dashed #d0d7e6;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   REVIEW GRID (Step 4)
   ============================================================ */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.review-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f8;
}

.review-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 2px;
}

/* ============================================================
   NAV BUTTONS
   ============================================================ */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f2f8;
}

.btn-prev {
    background: var(--white);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-prev:hover { background: var(--secondary); color: var(--white); }

.btn-next {
    background: var(--primary);
    border: none;
    color: var(--white);
    border-radius: 10px;
    padding: 11px 32px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(238, 22, 31, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-next:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(238, 22, 31, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border: none;
    color: var(--white);
    border-radius: 10px;
    padding: 12px 36px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(12, 71, 127, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(12, 71, 127, 0.4);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert-form-error {
    background: #fff0f0;
    border: none;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #c0392b;
}

.alert-form-error ul { margin: 6px 0 0; padding-left: 18px; }

/* Declaration box */
.declaration-box {
    background: #fff8e1;
    border: 1.5px solid #ffe082;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.83rem;
    color: #5d4037;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.site-footer a:hover { color: var(--white); }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    margin: auto;
}

.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.8rem;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.ref-badge {
    display: inline-block;
    background: #f0f6ff;
    border: 2px dashed var(--secondary);
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 10px;
    margin: 16px 0;
    font-family: monospace;
    letter-spacing: 2px;
}

.btn-home {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.2s;
    font-family: var(--font-body);
    cursor: pointer;
}

.btn-home:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .header-inner       { padding: 14px 16px; gap: 12px; }
    .header-text h1     { font-size: 1.1rem; }
    .form-card-body     { padding: 20px 16px; }
    .course-selector    { grid-template-columns: 1fr; }
    .review-grid        { grid-template-columns: 1fr; }
    .step-label         { font-size: 0.65rem; }
    .site-footer        { padding: 12px 16px; flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   CONTACT TOPBAR
   ============================================================ */
.contact-topbar {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 0;
}

.contact-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-topbar a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.contact-topbar a:hover { opacity: 0.85; }

.contact-divider {
    opacity: 0.5;
    font-weight: 300;
}

@media (max-width: 480px) {
    .contact-topbar-inner { gap: 10px; padding: 0 16px; }
    .contact-divider { display: none; }
}

/* ============================================================
   TOP CONTACT BAR
   ============================================================ */
.top-contact-bar {
    background: #0a3a6b;
    color: rgba(255,255,255,0.88);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-contact-bar a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.top-contact-bar a:hover { color: white; }

.top-contact-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-contact-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.top-contact-bar .admin-link {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.top-contact-bar .admin-link:hover { background: var(--primary-hover); color: white; }

/* ============================================================
   HEADER UPDATES
   ============================================================ */
.college-logo {
    width: 290px;
    height: 100px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 6px;
}

.college-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.college-logo-placeholder {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-display);
    text-align: center;
    line-height: 1.2;
    padding: 8px;
}

.header-accreditation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.naac-badge {
    background: #f9a825;
    color: #333;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.accreditation-sep {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

/* ============================================================
   FOOTER — REDESIGNED
   ============================================================ */
.site-footer {
    background: #0a2a4a;
    color: rgba(255,255,255,0.82);
    padding: 0;
    font-size: 0.84rem;
    display: flex;
    flex-direction: column;
}

.footer-main {
    padding: 40px 48px 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 145px;
    height: 50px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.footer-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.footer-logo-placeholder {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-display);
}

.footer-college-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.footer-college-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.footer-desc {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.footer-website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-website-link:hover { background: var(--primary-hover); color: white; }

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.footer-contact-list li i {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-list a:hover { color: white; }

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-links-list a:hover { color: white; }

.footer-links-list a i { font-size: 0.7rem; color: var(--primary); }

/* Footer bottom bar */
.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 14px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.07);
    width: 100%;
    flex-shrink: 0;
}

.footer-bottom-left {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
}






.footer-bottom-right {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom-right a {
    color: #f9a825;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.footer-bottom-right a:hover { color: white; }

/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 28px 24px 24px;
        gap: 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { padding: 12px 24px; }
    
}

@media (max-width: 600px) {
    .top-contact-bar { padding: 7px 16px; flex-direction: column; gap: 6px; align-items: flex-start; }
    .top-contact-left { gap: 12px; }
    .header-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
    .college-logo { width: 100%; height: 70px; border-radius: 8px; }
    .header-text h1 { font-size: 1rem; }
    .header-text p  { font-size: 0.75rem; }
    .header-ribbon  { font-size: 0.72rem; padding: 7px 12px; }
    .footer-main { grid-template-columns: 1fr; padding: 24px 16px; gap: 20px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { padding: 12px 16px; }
}
