@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── INSDAG Color Theme ─────────────────────────────
   Primary (Navy Blue) : #003366
   Accent  (Red)       : #cc0000
   Gold/Highlight      : #b8860b
   Body BG             : #ffffff
   Light BG            : #f5f7fa
   Border              : #dde3ec
────────────────────────────────────────────────────── */
:root {
    --primary: #003366;
    --primary-dark: #00254d;
    --accent: #cc0000;
    --gold: #b8860b;
    --white: #ffffff;
    --body-bg: #ffffff;
    --light-bg: #f5f7fa;
    --border: #dde3ec;
    --text: #222222;
    --text-muted: #555e6d;
    --shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--body-bg);
    color: var(--text);
    line-height: 1.7;
}

/* ── Utility ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
}

/* ── Section Heading ── */
.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ── Hero Banner ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, #00254d 0%, #003366 45%, #0a4a8c 100%);
    overflow: hidden;
    padding: 0 0 0 0;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Geometric dot-grid background pattern */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Diagonal gold accent bar */
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: 18%;
    width: 3px;
    height: 140%;
    background: linear-gradient(to bottom, transparent, #c9a22760, transparent);
    transform: rotate(15deg);
}

/* Second subtle gold bar */
.hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: 22%;
    width: 1px;
    height: 140%;
    background: linear-gradient(to bottom, transparent, #c9a22730, transparent);
    transform: rotate(15deg);
}

/* Inner two-column layout */
.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 70px;
    padding-bottom: 90px;
    position: relative;
    z-index: 2;
}

/* ── Left: Text side ── */
.hero-text {
    flex: 1.1;
    color: #fff;
}

/* Animated badge pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: #e8c84a;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a227;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(201, 162, 39, 0);
    }
}

/* Main title */
.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title-accent {
    color: #c9a227;
    display: inline-block;
    position: relative;
}

/* Gold underline on accent */
.hero-title-accent::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #c9a227, transparent);
    margin-top: 4px;
    border-radius: 2px;
    width: 80%;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}

/* Category tag pills */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-tags span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 3px;
}

/* Action buttons */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #c9a227;
    color: #00254d;
    border: 2px solid #c9a227;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: #e8c84a;
    border-color: #e8c84a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ── Right: Visual Panel ── */
.hero-visual {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* SVG Award medallion */
.hero-award-icon {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: floatBadge 5s ease-in-out infinite;
}

.hero-award-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Stats row */
.hero-stats {
    display: flex;
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 18px 20px;
    text-align: center;
    min-width: 90px;
    backdrop-filter: blur(4px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number span {
    font-size: 1.1rem;
    color: #e8c84a;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* Bottom wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

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

/* Responsive hero */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        gap: 36px;
        padding-top: 50px;
        padding-bottom: 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-title-accent::after {
        margin: 4px auto 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat-card {
        padding: 14px 12px;
        min-width: 78px;
    }
}


/* ── About ── */
.about {
    background: var(--body-bg);
}

.about-text p {
    color: var(--text-muted);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.date-card {
    background: var(--light-bg);
    border-left: 5px solid var(--primary);
    padding: 24px 28px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.date-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.date-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* ── Brochure ── */
.brochure {
    background: var(--primary);
    text-align: center;
    color: var(--white);
}

.brochure .section-header h2 {
    color: var(--white);
}

.brochure .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 13px 38px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: #a80000;
    border-color: #a80000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204, 0, 0, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ── Achievements – Vertical Timeline ── */
.achievements {
    background: var(--light-bg);
}

/* Outer wrapper: positions arrows + overflow mask */
.hs-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* The scrollable rail */
.hs-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 24px;
    scrollbar-width: none;          /* Firefox */
    flex: 1;
    /* Fade edges to hint at more content */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hs-track::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* Individual year card */
.hs-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 6px 28px rgba(0, 51, 102, 0.09);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

/* Top accent bar */
.hs-card::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 18px;
}

.hs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(0, 51, 102, 0.15);
}

/* Year badge pill at the top-right */
.hs-year-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 40px;
    white-space: nowrap;
}

.hs-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 8px;
    padding-right: 80px; /* avoid overlap with badge */
}

.hs-card > p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.winner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-item {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item .link-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--light-bg);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.link-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.link-item:hover .link-icon {
    background: rgba(255, 255, 255, 0.15);
}

/* Arrow buttons */
.hs-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.12);
    z-index: 2;
    padding: 0;
}

.hs-arrow:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(0, 51, 102, 0.25);
}

.hs-arrow-left { margin-right: 10px; }
.hs-arrow-right { margin-left: 10px; }

/* Responsive: on small screens let track be full-width, arrows hidden */
@media (max-width: 768px) {
    .hs-wrapper {
        margin: 0 -24px; /* bleed to edges */
    }

    .hs-track {
        padding-left: 24px;
        padding-right: 24px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hs-card {
        flex: 0 0 85vw; /* peek effect */
        max-width: 320px;
    }

    .hs-arrow {
        display: none; /* hide arrows on touch devices */
    }
}

@media (max-width: 480px) {
    .hs-card {
        padding: 24px 20px;
    }

    .hs-card h3 {
        font-size: 1rem;
        padding-right: 60px;
    }
}

/* ── Themes ── */
.themes {
    background: var(--body-bg);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.theme-item {
    background: var(--white);
    padding: 18px 22px;
    border-left: 5px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.theme-item:hover {
    border-left-color: var(--primary);
    background: var(--light-bg);
    transform: translateX(6px);
}

.themes-more {
    text-align: center;
    margin-top: 32px;
}

.themes-more a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* ── Gallery ── */
.gallery {
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 280px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: var(--shadow);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

/* ── Registration – Multi-Step Form ── */
.registration {
    background: var(--light-bg);
    padding-bottom: 100px;
}

/* ── Step Progress Bar ── */
.step-progress {
    max-width: 760px;
    margin: 0 auto 40px;
}

.step-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dde3ec;
    color: #888;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dde3ec;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(0, 51, 102, 0.12);
}

.step-item.done .step-circle {
    background: #1a8a3a;
    border-color: #1a8a3a;
    color: #fff;
}

.step-item.done .step-circle::after {
    content: '✔';
    font-size: 0.9rem;
    font-weight: 700;
}

.step-item.done .step-circle {
    font-size: 0;
}

.step-label {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s;
}

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

.step-item.done .step-label {
    color: #1a8a3a;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #dde3ec;
    position: relative;
    top: -12px;
    min-width: 30px;
    max-width: 120px;
    border-radius: 2px;
}

/* ── Multi-Step Form Container ── */
.stepform-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 5px solid var(--primary);
    padding: 50px 52px;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 51, 102, 0.10);
    position: relative;
    overflow: hidden;
}

/* ── Step Panel ── */
.form-step {
    display: none;
    animation: none;
}

.form-step.active {
    display: block;
}

.form-step.slide-in {
    animation: stepSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.form-step.slide-out {
    animation: stepSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes stepSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ── Step Heading ── */
.step-heading {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.step-num-badge {
    display: inline-block;
    background: rgba(0, 51, 102, 0.07);
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.step-heading h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.step-heading p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Form Group ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.88rem;
}
form textarea{margin: 0;}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="month"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 50px;
}

.form-group textarea {
    resize: vertical;
    height: auto;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.09);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003366' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Two-column layout for student fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Required marker */
.req {
    color: var(--accent);
    margin-left: 2px;
}

/* Hint text on label */
.label-hint {
    font-weight: 400;
    color: #888;
    font-size: 0.78rem;
    margin-left: 4px;
}

/* Inline field error */
.field-error {
    display: block;
    color: #cc0000;
    font-size: 0.78rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Input in error state */
.input-error {
    border-color: #cc0000 !important;
    background: #fff8f8 !important;
}

/* ── Student Block ── */
.student-block {
    background: #f5f7fa;
    border: 1px solid #dde3ec;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 22px 24px 10px;
    margin-bottom: 24px;
}

.student-block-header {
    margin-bottom: 16px;
}

.student-num {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(0, 51, 102, 0.08);
    padding: 4px 14px;
    border-radius: 50px;
    display: inline-block;
}

/* ── File Upload Widget ── */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: 2px dashed #c0cad8;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}

.file-upload-wrapper:hover .file-upload-label,
.file-upload-wrapper.has-file .file-upload-label {
    border-color: var(--primary);
    background: rgba(0, 51, 102, 0.04);
}

.file-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.file-text {
    font-size: 0.88rem;
    color: #667;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-wrapper.has-file .file-text {
    color: var(--primary);
    font-weight: 600;
}

/* ── Step Navigation Buttons ── */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-step-next {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn-step-next:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.22);
}

.btn-step-back {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid #dde3ec;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-step-back:hover {
    background: var(--light-bg);
    border-color: #c0cad8;
    color: var(--primary);
}

/* ── Fee Notice ── */
.fee-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbe6;
    border: 1px solid #f5d87a;
    border-left: 4px solid #c9a227;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.fee-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.fee-notice p {
    margin: 0;
    font-size: 0.92rem;
    color: #6b5500;
    line-height: 1.6;
}

/* ── Payment Summary Box ── */
.payment-summary-box {
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 0.95rem;
    color: var(--text);
}

.pay-row:nth-child(odd) {
    background: #fff;
}

.pay-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.pay-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.pay-divider {
    height: 2px;
    background: var(--border);
    margin: 0 24px;
}

.pay-total {
    background: #fff !important;
    border-top: 2px solid var(--primary);
}

.pay-total span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.pay-total span:last-child {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* ── Pay Now Button ── */
.btn-pay-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #cc0000 0%, #a80000 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 6px 24px rgba(204, 0, 0, 0.28);
}

.btn-pay-now:hover {
    background: linear-gradient(135deg, #e00000 0%, #cc0000 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(204, 0, 0, 0.35);
}

.btn-pay-now:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.22);
}

.pay-lock {
    font-size: 1rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .stepform-container {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.62rem;
    }

    .step-connector {
        min-width: 16px;
    }
}



/* ── Animation ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.6rem;
    }

    .form-container {
        padding: 28px 20px;
    }

    section {
        padding: 60px 0;
    }

    /* Stack timeline on mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-year {
        left: 20px;
        width: 56px;
        height: 56px;
        font-size: 0.85rem;
        box-shadow: 0 0 0 5px var(--light-bg), 0 0 0 8px var(--primary);
    }

    .timeline-card {
        max-width: 100%;
        padding: 22px 20px;
    }

    .timeline-item:nth-child(odd) .timeline-card::after {
        display: none;
    }

    .timeline-item:nth-child(even) .timeline-card::after {
        display: none;
    }

    .winner-links {
        grid-template-columns: 1fr;
    }
}