/* ================================================
   LIS – apply.css  |  Admission Portal
   Mobile-first · Modern · Professional
   ================================================ */

:root {
    --blue:   #0033ff;
    --navy:   #0d1b2a;
    --yellow: #ffd166;
    --light:  #f0f4ff;
    --grey:   #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --green:  #22c55e;
    --red:    #ef4444;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f1f5f9;
    color: var(--navy);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width:100%; height:auto; display:block; }

/* ── NAVBAR ── */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    background: blue;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { width:42px; height:42px; border-radius:50%; border:2px solid ; object-fit:cover; }
.nav-logo span { font-family:'Fredoka',sans-serif; color:white; font-size:20px; font-weight:700; }

.back-btn {
    color: var(--yellow);
    text-decoration: none;
    font-size: clamp(12px,2.5vw,14px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.3s;
}
.back-btn:hover { color: white; }

/* ── HEADER ── */
.apply-header {
    position: relative;
    background: linear-gradient(135deg, #0022bb 0%, #0044ff 60%, #0066ff 100%);
    text-align: center;
    overflow: hidden;
}

.apply-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

.header-overlay {
    position: relative;
    z-index: 2;
    padding: clamp(40px,8vw,80px) clamp(20px,6vw,60px) clamp(30px,5vw,60px);
}

.header-icon {
    font-size: clamp(40px,8vw,60px);
    margin-bottom: 10px;
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.apply-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(24px,6vw,52px);
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
}

.apply-header h1 span { color: var(--yellow); }

.apply-header > .header-overlay > p {
    color: rgba(255,255,255,0.78);
    font-size: clamp(13px,2.5vw,16px);
    margin-bottom: 32px;
}

/* progress steps */
.header-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    margin-top: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.5);
    font-size: clamp(10px,2vw,13px);
    font-weight: 600;
}

.step span {
    width: clamp(28px,5vw,38px);
    height: clamp(28px,5vw,38px);
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(12px,2vw,15px);
    border: 2px solid rgba(255,255,255,0.2);
}

.step.active { color: white; }
.step.active span { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

.step-line {
    width: clamp(30px,6vw,70px);
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 18px;
}

/* ── FORM WRAPPER ── */
.form-wrapper {
    flex: 1;
    padding: clamp(24px,5vw,50px) clamp(12px,4vw,30px);
    display: flex;
    justify-content: center;
}

/* ── FORM ── */
.a-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,51,255,0.08);
    width: 100%;
    max-width: 780px;
    padding: clamp(20px,4vw,40px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── FORM SECTION ── */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1.5px solid var(--border);
}

.form-section:last-of-type { border-bottom: none; }

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--light);
    border-radius: var(--radius);
    padding: 14px 18px;
    border-left: 4px solid var(--blue);
}

.label-icon-wrap { font-size: clamp(22px,4vw,30px); flex-shrink:0; }

.section-label h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(17px,3vw,21px);
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 2px;
}

.section-label p {
    font-size: clamp(11px,2vw,13px);
    color: var(--grey);
}

/* ── FIELD ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.field label {
    font-size: clamp(11px,1.8vw,12px);
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.req { color: var(--red); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: clamp(13px,2.2vw,15px);
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    background: #fafbff;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,51,255,0.09);
    background: #fff;
}

.field input::placeholder,
.field textarea::placeholder { color: #b0bec5; }

.field textarea { resize: vertical; min-height: 90px; }

/* ── ROWS ── */
.row { display:flex; gap:14px; flex-wrap:wrap; }
.row.three .field { flex:1; min-width:130px; }
.row.two   .field { flex:1; min-width:200px; }

/* ── GENDER / RADIO OPTIONS ── */
.gender-row { display:flex; gap:12px; flex-wrap:wrap; }

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafbff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 20px;
    cursor: pointer;
    font-size: clamp(13px,2.2vw,15px);
    font-weight: 600;
    color: var(--navy);
    transition: border-color 0.3s, background 0.3s;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.gender-option input { accent-color: var(--blue); width:16px; height:16px; }

.gender-option:has(input:checked) {
    border-color: var(--blue);
    background: rgba(0,51,255,0.06);
    color: var(--blue);
}

/* ── FILE UPLOAD ── */
.file-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff8e1;
    border: 1.5px dashed #ffc107;
    border-radius: 10px;
    padding: 14px 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.file-note i {
    font-size: 22px;
    color: #f59e0b;
    flex-shrink: 0;
  display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-upload input[type="file"] { display: none; }

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: #fafbff;
    color: var(--grey);
    font-size: clamp(13px,2vw,14px);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.file-label:hover {
    border-color: var(--blue);
    background: var(--light);
    color: var(--blue);
}

.file-hint {
    font-size: 11px;
    color: #b0bec5;
    text-align: center;
}

/* ── DECLARATION ── */
.declaration-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px 18px;
}

.declaration-box p {
    font-size: clamp(12px,2vw,14px);
    color: #78350f;
    line-height: 1.7;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: clamp(13px,2vw,14px);
    color: var(--grey);
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--blue);
    margin-top: 2px;
    cursor: pointer;
}

/* ── SUBMIT ── */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, #0055ff 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-size: clamp(15px,2.5vw,17px);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,51,255,0.30);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,51,255,0.38);
}

.submit-btn:active { transform: translateY(0); }

.form-note {
    text-align: center;
    font-size: clamp(11px,2vw,13px);
    color: #b0bec5;
    margin-top: -14px;
}

/* ── FOOTER ── */
.apply-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: clamp(30px,5vw,50px) 20px 24px;
    margin-top: auto;
}

.footer-inner h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(18px,3vw,22px);
    color: #00bcd4;
    margin-bottom: 12px;
}

.footer-inner p {
    font-size: clamp(12px,2vw,14px);
    line-height: 1.9;
}