/* ============================================================
   Vidarsha AL Results 2025 — Style Sheet
   Theme: Light with Blueish-Green / Royal Green Gradient
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --green-1: #0d9488;   /* teal-600 */
    --green-2: #059669;   /* emerald-600 */
    --green-3: #047857;   /* emerald-700 */
    --green-4: #065f46;   /* emerald-800 */
    --teal-1: #14b8a6;    /* teal-500 */
    --teal-2: #2dd4bf;    /* teal-400 */
    --teal-light: #ccfbf1;/* teal-100 */
    --white: #ffffff;
    --bg: #f0fdf8;        /* very light green */
    --bg-card: #ffffff;
    --text-primary: #0f2b23;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border: #d1fae5;
    --shadow-sm: 0 1px 3px 0 rgba(13, 148, 136, 0.08), 0 1px 2px -1px rgba(13, 148, 136, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(13, 148, 136, 0.1), 0 2px 4px -2px rgba(13, 148, 136, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(13, 148, 136, 0.12), 0 4px 6px -4px rgba(13, 148, 136, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(13, 148, 136, 0.15), 0 8px 10px -6px rgba(13, 148, 136, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Noto Sans Sinhala', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Background Particles ---- */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: floatParticle linear infinite;
}

.particle:nth-child(1) { width: 300px; height: 300px; background: radial-gradient(circle, var(--teal-2), transparent); top: -100px; left: -100px; animation-duration: 20s; }
.particle:nth-child(2) { width: 200px; height: 200px; background: radial-gradient(circle, var(--green-2), transparent); top: 30%; right: -80px; animation-duration: 25s; animation-delay: -8s; }
.particle:nth-child(3) { width: 150px; height: 150px; background: radial-gradient(circle, var(--teal-1), transparent); bottom: 20%; left: 10%; animation-duration: 18s; animation-delay: -4s; }
.particle:nth-child(4) { width: 250px; height: 250px; background: radial-gradient(circle, var(--green-3), transparent); bottom: -80px; right: 10%; animation-duration: 22s; animation-delay: -12s; }
.particle:nth-child(5) { width: 100px; height: 100px; background: radial-gradient(circle, var(--teal-2), transparent); top: 60%; left: 40%; animation-duration: 15s; animation-delay: -6s; }
.particle:nth-child(6) { width: 180px; height: 180px; background: radial-gradient(circle, var(--green-1), transparent); top: 10%; left: 60%; animation-duration: 28s; animation-delay: -3s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}

/* ---- Hero Header ---- */
.hero-header {
    position: relative;
    background: linear-gradient(135deg, #0d9488 0%, #059669 35%, #047857 65%, #065f46 100%);
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(45, 212, 191, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.header-inner {
    padding: 20px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    border-radius: 12px;
}

.brand-text {
    color: white;
}

.brand-top {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Noto Sans Sinhala', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.brand-sub {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.hero-content {
    text-align: center;
    padding: 36px 24px 48px;
    position: relative;
    z-index: 2;
}

.hero-main-title {
    font-size: clamp(2.8rem, 10vw, 5.2rem);
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0,0,0,0.15);
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #ccfbf1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    animation: badgePulse 3s ease-in-out infinite;
}

.star-icon { font-size: 0.7em; opacity: 0.95; }

@keyframes badgePulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50% { filter: drop-shadow(0 0 15px rgba(255,255,255,0.4)); }
}

.hero-sub-name {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
}

.hero-congratulation {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 20px 36px;
    max-width: 520px;
}

.congrats-sinhala {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d1fae5;
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-bottom: 8px;
}

.congrats-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-family: 'Noto Sans Sinhala', sans-serif;
    line-height: 1.7;
}

.congrats-en {
    font-family: 'Outfit', sans-serif;
    color: #a7f3d0;
    font-style: italic;
}

.wave-divider {
    display: block;
    line-height: 0;
    margin-top: -2px;
}

.wave-divider svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ---- Main Content ---- */
.main-content {
    position: relative;
    z-index: 1;
    padding: 20px 0 60px;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Intro Card ---- */
.intro-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-1), var(--teal-2), var(--green-2));
}

.intro-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.intro-text-si {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.intro-text-en {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.req-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

/* ---- Form Section ---- */
.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-lg);
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-1), var(--teal-2));
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-1), var(--teal-1));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--green-1);
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-top: 2px;
    font-weight: 500;
}

/* ---- Form Grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.full-width { grid-column: 1 / -1; }

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 44px;
    gap: 2px;
    margin-bottom: 6px;
}

.label-si {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.2;
    margin-top: 1px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid #d1fae5;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #f8fffe;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--green-1);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 0.88rem;
}

.form-input.input-error {
    border-color: #ef4444;
    background: #fff5f5;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-top: -2px;
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Stream Selector ---- */
.stream-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stream-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #f8fffe;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.stream-btn:hover {
    border-color: var(--teal-1);
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stream-btn.selected {
    border-color: var(--green-1);
    background: linear-gradient(135deg, var(--teal-light), #d1fae5);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2), var(--shadow-md);
    transform: translateY(-2px);
}

.stream-icon { font-size: 1.8rem; }
.stream-en { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.stream-si { font-size: 0.72rem; color: var(--green-1); font-family: 'Noto Sans Sinhala', sans-serif; text-align: center; }

/* ---- Grades ---- */
.grades-section {
    margin-top: 24px;
}

.grades-prompt {
    text-align: center;
    padding: 24px;
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.grades-prompt-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.grades-prompt-si { font-family: 'Noto Sans Sinhala', sans-serif; font-size: 0.82rem; }

.grade-row {
    margin-top: 16px;
    animation: slideIn 0.35s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.subject-grade-card {
    background: #f8fffe;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.subject-grade-card:hover {
    border-color: var(--teal-1);
    background: white;
}

.physics-card {
    border-color: var(--teal-1);
    background: linear-gradient(135deg, #f0fdf8, #ecfdf5);
}

.subject-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subject-icon { font-size: 1.5rem; flex-shrink: 0; }
.subject-en { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.subject-si { font-size: 0.72rem; color: var(--green-1); font-family: 'Noto Sans Sinhala', sans-serif; margin-top: 2px; }

.grade-pills-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grade-pills {
    display: flex;
    gap: 8px;
    align-items: center;
}

.grade-pill {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.grade-pill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.grade-A.selected { background: #166534; border-color: #166534; color: white; box-shadow: 0 4px 12px rgba(22, 101, 52, 0.4); }
.grade-B.selected { background: #1d4ed8; border-color: #1d4ed8; color: white; box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4); }
.grade-C.selected { background: #d97706; border-color: #d97706; color: white; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4); }
.grade-S.selected { background: #6d28d9; border-color: #6d28d9; color: white; box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4); }
.grade-F.selected { background: #dc2626; border-color: #dc2626; color: white; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }

.grade-A:hover:not(.selected) { border-color: #166534; color: #166534; background: #f0fdf4; }
.grade-B:hover:not(.selected) { border-color: #1d4ed8; color: #1d4ed8; background: #eff6ff; }
.grade-C:hover:not(.selected) { border-color: #d97706; color: #d97706; background: #fffbeb; }
.grade-S:hover:not(.selected) { border-color: #6d28d9; color: #6d28d9; background: #f5f3ff; }
.grade-F:hover:not(.selected) { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* ---- Duration ---- */
.duration-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.duration-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #f8fffe;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: center;
}

.duration-btn:hover {
    border-color: var(--teal-1);
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.duration-btn.selected {
    border-color: var(--green-1);
    background: linear-gradient(135deg, var(--teal-light), #d1fae5);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2), var(--shadow-md);
    transform: translateY(-2px);
}

.dur-icon { font-size: 1.8rem; }
.dur-en { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.dur-si { font-size: 0.78rem; color: var(--green-1); font-family: 'Noto Sans Sinhala', sans-serif; }

/* ---- Textarea ---- */
.textarea-wrap {
    position: relative;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #d1fae5;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #f8fffe;
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: var(--green-1);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-textarea::placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

.char-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 6px;
}

/* ---- Submit Section ---- */
.submit-section {
    text-align: center;
    padding: 16px 0;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--green-1) 0%, var(--green-2) 50%, var(--green-3) 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.5);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-icon { font-size: 1.2rem; }
.submit-text { font-family: 'Noto Sans Sinhala', 'Outfit', sans-serif; }

.submit-note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Noto Sans Sinhala', sans-serif;
    line-height: 1.6;
}

/* ---- Loader ---- */
.submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 95, 70, 0.55);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 580px;
    border-radius: 24px;
    padding: 30px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.modal-close-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green-1), var(--teal-2), var(--green-2));
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-confetti {
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin-bottom: 16px;
    animation: confettiBounce 1s ease infinite alternate;
}

@keyframes confettiBounce {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}

.modal-trophy {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: trophySpin 2s ease-in-out infinite;
}

@keyframes trophySpin {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50%       { transform: rotate(5deg) scale(1.1); }
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-3);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--green-1);
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-bottom: 24px;
}

.modal-message {
    background: linear-gradient(135deg, #f0fdf8, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.modal-institute {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-3);
    margin: 6px 0 16px;
}

.modal-body-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-body-si {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Noto Sans Sinhala', sans-serif;
    line-height: 1.7;
    margin-bottom: 14px;
    border-top: 1px solid #d1fae5;
    padding-top: 12px;
}

.modal-sms-note {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--green-3);
    margin-bottom: 14px;
    line-height: 1.6;
}

.modal-sms-si {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.modal-connect {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-connect-si {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #d1fae5;
}

.teacher-name-modal {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-3);
}

.teacher-title-modal {
    font-size: 0.82rem;
    color: var(--green-1);
    font-family: 'Noto Sans Sinhala', sans-serif;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(135deg, var(--green-4), var(--green-3));
    padding: 32px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 700;
    color: #a7f3d0;
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 0.85rem;
    color: rgba(167, 243, 208, 0.75);
    font-family: 'Noto Sans Sinhala', sans-serif;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

/* ---- Utility ---- */
.hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .form-section { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .stream-selector { grid-template-columns: 1fr; }
    .duration-grid { grid-template-columns: 1fr; }
    .subject-grade-card { grid-template-columns: 1fr; gap: 12px; }
    .modal-box { padding: 32px 22px; }
    .modal-title { font-size: 1.3rem; }
    .submit-btn { min-width: unset; width: 100%; padding: 18px 24px; }
    .hero-content { padding: 28px 16px 44px; }
    .hero-congratulation { padding: 16px 20px; }
    .brand-top { font-size: 0.9rem; }
    .logo-img { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .grade-pill { width: 42px; height: 42px; font-size: 0.95rem; }
}

@media (max-width: 400px) {
    .grade-pill { width: 38px; height: 38px; font-size: 0.88rem; }
}
