/* =============================================
   NaMMAT Walk-in Registration System
   Professional Multi-Step UI
   ============================================= */

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

:root {
    --navy: #0c2340;
    --navy-mid: #163a5f;
    --navy-light: #1e4d7b;
    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-soft: #dbeafe;
    --blue-bg: #eff6ff;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --amber: #d97706;
    --amber-soft: #fefce8;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --bg: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --border-2: #d1d5db;
    --shadow-1: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-2: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-3: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-4: 0 20px 50px -12px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 14px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-1);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-brand-text { display: flex; flex-direction: column; }

.nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .header-subtitle {
        display: block;
        font-size: 0.72rem;
        font-weight: 500;
        color: #bfdbfe;
        letter-spacing: 0.02em;
    }
    .header-tagline {
        font-size: 1rem;
    }
}

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-1);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-logo-header {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-brand-text { display: flex; flex-direction: column; }

.nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.7rem;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background-color: var(--navy);
    color: #fff;
    overflow: hidden;
    min-height: 320px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../../assets/img/newestheader.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 320px;
    box-sizing: border-box;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    flex-shrink: 0;
}

.hero-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: 'Arial Narrow', 'Arial Black', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #000080;
    letter-spacing: 0.12em;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
    white-space: nowrap;
    display: inline-block;
    min-width: max-content;
    width: 100%;
}

.hero-subtitle {
    font-family: 'Arial Narrow', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000080;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin-top: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
    white-space: nowrap;
}

.hero-cem {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-top: 6px;
}

/* =============================================
   STEPPER
   ============================================= */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 32px 0 28px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2.5px solid var(--border-2);
    color: var(--text-3);
    background: var(--white);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step.active .step-circle {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.step.completed .step-circle {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.step.completed .step-circle span {
    display: none;
}

.step.completed .step-circle::after {
    content: '';
    display: block;
    width: 10px;
    height: 5px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-3);
    text-align: center;
    line-height: 1.35;
    transition: color 0.3s;
    max-width: 100px;
}

.step-label small {
    font-weight: 400;
    font-style: italic;
    font-size: 0.65rem;
}

.step.active .step-label { color: var(--blue); }
.step.completed .step-label { color: var(--green); }

.step-line {
    flex: 1;
    height: 2.5px;
    background: var(--border);
    margin-top: 20px;
    min-width: 40px;
    max-width: 80px;
    border-radius: 2px;
    transition: background 0.3s;
}

.step-line.completed {
    background: var(--green);
}

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

.card-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-header p {
    font-size: 0.78rem;
    opacity: 0.65;
    font-style: italic;
    margin-top: 2px;
}

.card-body {
    padding: 28px 28px 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px 24px;
}

/* =============================================
   FORM PAGES
   ============================================= */
.form-page {
    display: none;
    animation: fadeSlideIn 0.35s ease;
}

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

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-row {
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.tl {
    font-weight: 400;
    color: var(--text-2);
    font-style: italic;
}

.req { color: var(--red); font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="date"]:focus,
input:focus, select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

input::placeholder { color: var(--text-3); }

input.input-error, select.input-error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Input group (phone) */
.input-group {
    display: flex;
}

.input-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg);
    border: 1.5px solid var(--border-2);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    white-space: nowrap;
}

.input-group input {
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}

/* Hints & errors */
.field-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 5px;
}

.field-error {
    display: none;
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 5px;
    font-weight: 500;
}

.field-error.visible { display: block; }

/* =============================================
   INFO BANNER (date display)
   ============================================= */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--blue-bg);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-top: 12px;
    margin-bottom: 8px;
}

.info-banner-icon { color: var(--blue); flex-shrink: 0; }
.info-banner-icon svg { width: 22px; height: 22px; margin-top: 2px; }

.info-banner-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.info-banner-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}

/* =============================================
   SESSION CARDS
   ============================================= */
.session-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.session-option { cursor: pointer; }
.session-option input { position: absolute; opacity: 0; pointer-events: none; }

.session-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    position: relative;
}

.session-body:hover {
    border-color: var(--blue);
    background: var(--blue-bg);
}

.session-option input:checked + .session-body {
    border-color: var(--blue);
    background: var(--blue-bg);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.session-svg {
    width: 28px;
    height: 28px;
    color: var(--blue);
    flex-shrink: 0;
}

.session-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.session-tl {
    display: block;
    font-size: 0.7rem;
    color: var(--text-2);
    font-style: italic;
}

.session-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    color: var(--blue);
    opacity: 0;
    transition: opacity 0.2s;
}

.session-check svg { width: 100%; height: 100%; }

.session-option input:checked + .session-body .session-check {
    opacity: 1;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--green);
    color: #fff;
    box-shadow: 0 1px 3px rgba(22,163,74,0.3);
    padding: 12px 28px;
    font-size: 0.9rem;
}

.btn-success:hover {
    background: #15803d;
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
    transform: translateY(-1px);
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: var(--white);
    color: var(--text-2);
    border: 1.5px solid var(--border-2);
}

.btn-outline:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-3);
}

.btn-loader { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* =============================================
   TERMS & CONDITIONS
   ============================================= */
.tc-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tc-heading {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.tc-sub {
    font-size: 0.78rem;
    margin-bottom: 14px;
}

/* Language toggle */
.tc-lang-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
}

.tc-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    background: var(--white);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.tc-lang-btn + .tc-lang-btn {
    border-left: 1.5px solid var(--border-2);
}

.tc-lang-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tc-lang-btn:hover {
    background: var(--bg);
}

.tc-lang-btn.active {
    background: var(--blue);
    color: #fff;
}

.tc-lang-btn.active:hover {
    background: var(--blue-hover);
}

.tc-content.hidden {
    display: none;
}

.tc-scroll-box {
    max-height: 260px;
    overflow-y: auto;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius);
    padding: 20px;
    background: #fafafa;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-2);
    scroll-behavior: smooth;
}

.tc-scroll-box h4 {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 18px;
    margin-bottom: 6px;
}

.tc-scroll-box h4:first-child {
    margin-top: 0;
}

.tc-scroll-box p {
    margin-bottom: 8px;
}

.tc-scroll-box em {
    color: var(--text-3);
    font-size: 0.78rem;
}

.tc-scroll-box ul {
    margin: 6px 0 10px 20px;
}

.tc-scroll-box li {
    margin-bottom: 4px;
}

.tc-scroll-box::-webkit-scrollbar { width: 6px; }
.tc-scroll-box::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.tc-scroll-box::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 3px; }

.tc-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-bg);
    border: 1px solid var(--blue-soft);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    animation: bounceHint 1.5s ease infinite;
}

.tc-scroll-hint svg { width: 14px; height: 14px; }

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.tc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-2);
    border-radius: var(--radius);
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s;
    position: relative;
}

.tc-checkbox.tc-enabled {
    cursor: pointer;
    opacity: 1;
    border-color: var(--blue);
    background: var(--blue-bg);
}

.tc-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tc-checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-2);
    border-radius: 5px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.tc-checkbox.tc-enabled .tc-checkmark {
    border-color: var(--blue);
}

.tc-checkbox input:checked ~ .tc-checkmark {
    background: var(--blue);
    border-color: var(--blue);
}

.tc-checkbox input:checked ~ .tc-checkmark::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
    margin-top: -2px;
}

.tc-checkbox-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.tc-checkbox-text .tl {
    font-size: 0.75rem;
}

/* =============================================
   REVIEW TABLE (Step 4)
   ============================================= */
.review-intro {
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.review-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}

.review-row:last-child { border-bottom: none; }
.review-row:nth-child(odd) { background: #fafafa; }

.review-label {
    width: 42%;
    font-weight: 600;
    color: var(--text-2);
    flex-shrink: 0;
    padding-right: 12px;
}

.review-value {
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

/* =============================================
   CONFIRMATION
   ============================================= */
.confirmation-wrap {
    margin-top: 8px;
}

.confirmation-printable {
    padding: 32px 32px 24px;
}

.confirm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--navy);
}

.confirm-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.confirm-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.confirm-header p {
    font-size: 0.78rem;
    color: var(--text-2);
    font-style: italic;
}

/* Success */
.confirm-success {
    text-align: center;
    margin-bottom: 28px;
}

.success-badge { margin-bottom: 16px; }
.success-badge svg { width: 56px; height: 56px; }

.success-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.02em;
}

.success-text p {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 4px;
}

.success-tl {
    margin-top: 8px;
}

.success-tl h2 {
    color: var(--navy) !important;
    font-size: 1.1rem !important;
}

.success-tl p {
    color: var(--text-2) !important;
    font-style: italic;
    font-size: 0.85rem !important;
}

/* Registration code */
.reg-code-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--blue-bg);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 18px 24px;
    margin-bottom: 24px;
}

.reg-code-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.reg-code {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.04em;
    background: var(--white);
    padding: 6px 24px;
    border-radius: 6px;
    border: 1.5px dashed #93c5fd;
}

/* Confirm table */
.confirm-details {
    margin-bottom: 24px;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.84rem;
}

.confirm-table tr { border-bottom: 1px solid var(--border); }
.confirm-table tr:last-child { border-bottom: none; }
.confirm-table tr:nth-child(odd) { background: #fafafa; }

.confirm-table td { padding: 10px 14px; vertical-align: top; }

.ct-label {
    font-weight: 600;
    color: var(--text-2);
    width: 40%;
}

.ct-value {
    color: var(--text);
    font-weight: 500;
}

/* Note */
.confirm-note {
    display: flex;
    gap: 14px;
    background: var(--amber-soft);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px 18px;
}

.confirm-note-icon { flex-shrink: 0; color: var(--amber); }
.confirm-note-icon svg { width: 22px; height: 22px; margin-top: 2px; }

.confirm-note p {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.6;
}

.confirm-note-tl {
    margin-top: 8px;
    color: var(--text-2) !important;
    font-style: italic;
}

/* Actions */
.confirm-actions {
    display: flex;
    gap: 12px;
    padding: 16px 32px 28px;
    border-top: 1px solid var(--border);
}

.confirm-actions .btn { flex: 1; justify-content: center; padding: 12px 20px; }

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    box-shadow: var(--shadow-4);
    opacity: 0;
    transform: translateX(16px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show { opacity: 1; transform: translateX(0); }

.toast-error {
    background: var(--red-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.toast button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 8px;
    line-height: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    margin-top: auto;
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 28px 0;
    text-align: center;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer p {
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-sub {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    opacity: 0.5;
    margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    .hero-bg { 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        min-height: 260px; 
        background-image: url('../../assets/img/newestheader-small.png') !important;
    }
    .hero-inner { padding: 24px 50px; gap: 20px; min-height: 260px; }
    .hero-brand { gap: 18px; }
    .hero-logo { width: 110px; height: 110px; }
    .hero-title { font-size: 2.8rem; letter-spacing: 0.1em; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.05em; margin-top: 0; }
    .hero-cem { height: 28px; margin-top: 6px; }

    .stepper { gap: 0; padding: 24px 8px; }
    .step-label { font-size: 0.65rem; max-width: 80px; }
    .step-label small { font-size: 0.58rem; }
    .step-circle { width: 36px; height: 36px; font-size: 0.8rem; }
    .step-line { min-width: 24px; margin-top: 18px; }
}

/* Mobile */
@media (max-width: 560px) {
    .hero { min-height: 120px !important; }
    .hero-bg { 
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: 100% !important; 
        min-height: 120px !important;
        background-image: url('../../assets/img/newestheader-small.png') !important;
        background-size: 100% 100% !important;
    }
    .hero-inner { padding: 12px 16px; gap: 8px; min-height: 120px !important; }
    .hero-brand { gap: 8px; }
    .hero-logo { width: 50px; height: 50px; }
    .hero-title { font-size: 1.2rem; letter-spacing: 0.05em; }
    .hero-subtitle { font-size: 0.45rem; letter-spacing: 0.02em; margin-top: 0; display: block; }
    .hero-cem { display: none; }

    .stepper { padding: 16px 4px 14px; }
    .step-label { display: none; }
    .step-circle { width: 32px; height: 32px; font-size: 0.75rem; }
    .step-line { min-width: 20px; max-width: 40px; margin-top: 16px; }

    .card-header { padding: 16px 16px 12px; }
    .card-header h2 { font-size: 0.95rem; }
    .card-body { padding: 16px 16px 12px; }
    .card-footer { padding: 10px 16px 16px; }

    .session-grid { grid-template-columns: 1fr; }
}

/* Tiny screens */
@media (max-width: 380px) {
    .hero { min-height: 100px !important; }
    .hero-bg { 
        min-height: 100px !important; 
        background-image: url('../../assets/img/newestheader-small.png') !important;
    }
    .hero-inner { padding: 10px 12px; gap: 6px; min-height: 100px !important; }
    .hero-brand { gap: 6px; }
    .hero-logo { width: 40px; height: 40px; }
    .hero-title { font-size: 1rem; letter-spacing: 0.04em; }
    .hero-subtitle, .hero-cem { display: none; }

    .btn { padding: 8px 14px; font-size: 0.75rem; }

    .confirm-table td { padding: 6px 8px; font-size: 0.75rem; }
}

/* =============================================
   Timer Banner Styles
   ============================================= */
.timer-banner {
    background: linear-gradient(135deg, var(--amber-soft) 0%, #fef3c7 100%);
    border: 1px solid var(--amber);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.timer-banner .timer-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.timer-banner .timer-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timer-banner .countdown-timer {
    font-family: var(--mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
}

/* Form disabled state */
.form-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.form-disabled input,
.form-disabled select,
.form-disabled textarea {
    background-color: #f3f4f6;
    cursor: not-allowed;
}
