:root {
    /* === Color System — all pairs verified WCAG AA 4.5:1+ === */
    --eics-primary: #1a2744;        /* on white: 13.5:1 ✓ */
    --eics-primary-light: #2563a8;  /* on white: 5.3:1 ✓ — links, accents */
    --eics-accent: #b71c1c;         /* on white: 6.7:1 ✓ */
    --eics-accent-light: #d32f2f;   /* on white: 4.7:1 ✓ */
    --eics-success: #0d6832;        /* on white: 7.3:1 ✓ */
    --eics-light: #f4f6f9;
    --eics-border: #c5cbd6;
    --eics-text: #1a1a2e;           /* on white: 15:1 ✓ */
    --eics-muted: #505662;          /* on white: 7.0:1 ✓ */
    --eics-white: #ffffff;
    --eics-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --eics-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --eics-radius: 8px;
    --eics-radius-lg: 12px;
    --eics-transition: 0.25s ease;
    --eics-footer-bg: #f0f2f5;
    --eics-footer-text: #2d3138;    /* on #f0f2f5: 10:1 ✓ */
    --eics-link: #1a6bb5;           /* on white: 5.5:1 ✓ */
    --eics-link-hover: #0e4d85;     /* on white: 8.1:1 ✓ */
}

/* === Base Typography === */
body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--eics-text);
    background: var(--eics-light);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--eics-primary);
}
p { font-size: 1rem; margin-bottom: 1rem; }
a { color: var(--eics-link); transition: color var(--eics-transition); text-decoration: underline; }
a:hover { color: var(--eics-link-hover); }

/* === Skip link for accessibility === */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--eics-accent);
    color: #fff;
    padding: 10px 20px;
    z-index: 1100;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 0 var(--eics-radius) 0;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* === Header === */
.site-header {
    background: #fff;
    color: var(--eics-text);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 100;
    border-bottom: 3px solid var(--eics-primary);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}
.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-logo {
    height: 70px;
    width: auto;
    transition: transform var(--eics-transition);
}
.header-logo:hover { transform: scale(1.03); }
.site-header a { color: var(--eics-primary); text-decoration: none; }
.site-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin: 0;
    color: var(--eics-primary);
    line-height: 1.2;
    text-transform: uppercase;
}
.site-conference-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--eics-muted);
    margin: 4px 0 2px;
}
.site-subtitle {
    font-size: 1rem;
    color: var(--eics-muted);
    margin: 4px 0 0;
    font-weight: 600;
}

/* Registration banner */
.registration-banner {
    background: var(--eics-primary);
    padding: 10px 0;
    text-align: center;
}
.banner-text {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.banner-text .fa { margin-right: 8px; }
.registration-banner.banner-closed {
    background: var(--eics-muted);
}

@media (min-width: 768px) {
    .header-logo { height: 90px; }
    .site-title { font-size: 2.5rem; }
    .site-conference-name { font-size: 1.15rem; }
    .site-subtitle { font-size: 1.05rem; }
    .header-inner { gap: 32px; padding: 28px 0; }
    .banner-text { font-size: 1.25rem; }
}
@media (max-width: 767px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 0;
    }
    .header-logo { height: 60px; }
    .site-title { font-size: 1.5rem; }
    .site-conference-name { font-size: 0.9rem; }
    .site-subtitle { font-size: 0.85rem; }
}

/* === Wizard Progress === */
.wizard-progress {
    background: var(--eics-white);
    padding: 18px 0;
    border-bottom: 2px solid var(--eics-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.wizard-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.wizard-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--eics-muted);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
    transition: all var(--eics-transition);
    background: transparent;
}
.wizard-steps li.active {
    background: var(--eics-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,39,68,0.25);
}
.wizard-steps li.completed {
    color: var(--eics-primary-light);
    font-weight: 500;
    cursor: pointer;
}
.wizard-steps li .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8ebf0;
    color: var(--eics-muted);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--eics-transition);
}
.wizard-steps li.active .step-num {
    background: rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 800;
}
.wizard-steps li.completed .step-num {
    background: var(--eics-primary-light);
    color: #fff;
}
.step-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}
.step-link:hover {
    color: inherit;
    text-decoration: none;
}
.wizard-steps li.completed:hover {
    background: rgba(37, 99, 168, 0.08);
}
.wizard-steps li.disabled {
    opacity: 0.35;
    pointer-events: none;
}
@media (max-width: 767px) {
    .wizard-steps li .step-label { display: none; }
    .wizard-steps li.active .step-label { display: inline; }
    .wizard-steps li { padding: 4px 8px; }
    .wizard-steps li .step-num { width: 26px; height: 26px; font-size: 0.75rem; }
}

/* === Main Content === */
.main-content {
    padding: 36px 0 60px;
    min-height: 60vh;
}
.main-content > .container {
    background: var(--eics-white);
    border-radius: var(--eics-radius-lg);
    box-shadow: var(--eics-shadow);
    padding: 36px 40px 44px;
    max-width: 860px;
}
@media (max-width: 767px) {
    .main-content { padding: 20px 0 40px; }
    .main-content > .container { padding: 24px 20px 32px; border-radius: var(--eics-radius); }
}

/* === Page Title === */
.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--eics-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--eics-primary);
    position: relative;
}

/* === Form Sections === */
.form-section {
    margin-bottom: 36px;
    border: none;
    padding: 0;
}
.form-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--eics-primary);
    border-bottom: 2px solid var(--eics-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--eics-text);
    margin-bottom: 14px;
}
.required-marker { color: var(--eics-accent); font-weight: 700; }
legend {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* === Form Controls === */
.form-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--eics-text);
}
.form-control, .form-select {
    font-size: 1rem;
    padding: 10px 14px;
    border: 1.5px solid var(--eics-border);
    border-radius: var(--eics-radius);
    transition: border-color var(--eics-transition), box-shadow var(--eics-transition);
    background-color: var(--eics-white);
}
.form-control:focus, .form-select:focus {
    border-color: var(--eics-primary-light);
    box-shadow: 0 0 0 3px rgba(44,74,124,0.15);
}
.form-check {
    padding-top: 4px;
    padding-bottom: 4px;
}
.form-check-label {
    font-size: 1rem;
    cursor: pointer;
}
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--eics-primary);
    border-color: var(--eics-primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(44,74,124,0.2);
}
.form-text {
    font-size: 0.95rem;
    color: var(--eics-muted);
    margin-top: 4px;
}
textarea.form-control {
    min-height: 100px;
}

/* === Buttons === */
.btn-eics {
    background: linear-gradient(135deg, var(--eics-primary) 0%, var(--eics-primary-light) 100%);
    color: #fff;
    border: none;
    padding: 12px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--eics-radius);
    transition: all var(--eics-transition);
    box-shadow: 0 2px 8px rgba(26,39,68,0.2);
    cursor: pointer;
}
.btn-eics:hover, .btn-eics:focus {
    background: linear-gradient(135deg, #0f1a30 0%, var(--eics-primary) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,39,68,0.3);
    transform: translateY(-1px);
}
.btn-eics:active { transform: translateY(0); }
.btn-eics-outline {
    background: transparent;
    color: var(--eics-primary);
    border: 2px solid var(--eics-primary);
    padding: 10px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--eics-radius);
    transition: all var(--eics-transition);
    cursor: pointer;
}
.btn-eics-outline:hover, .btn-eics-outline:focus {
    background: var(--eics-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,39,68,0.2);
}
.btn-group-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--eics-border);
}

/* === Alerts === */
.alert {
    border-radius: var(--eics-radius);
    font-size: 1rem;
    padding: 14px 20px;
    border: none;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--eics-success);
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--eics-accent);
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* === Policy Box === */
.policy-box {
    background: var(--eics-light);
    border: 1px solid var(--eics-border);
    border-radius: var(--eics-radius);
    padding: 20px 24px;
    margin-bottom: 18px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.7;
}
@media (max-width: 767px) {
    .policy-box { max-height: none; overflow-y: visible; padding: 16px; }
}
.policy-box p { margin-bottom: 0.75rem; }
.policy-box ul { padding-left: 1.25rem; }
.policy-box li { margin-bottom: 0.4rem; }

/* === Tables === */
.table {
    font-size: 1rem;
}
.table th {
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--eics-light);
    color: var(--eics-primary);
    border-bottom: 2px solid var(--eics-border);
}
.table td { vertical-align: middle; }
@media (max-width: 767px) {
    .table { font-size: 0.9rem; }
    .table th { font-size: 0.85rem; }
}

/* === Payment Summary === */
.payment-summary {
    border-radius: var(--eics-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.payment-summary td:first-child,
.payment-summary th:first-child { width: 70%; }
.payment-summary td:last-child,
.payment-summary th:last-child { white-space: nowrap; }
.payment-summary th { background: var(--eics-light); }
@media (max-width: 575px) {
    .payment-summary td:first-child,
    .payment-summary th:first-child { width: auto; }
    .payment-summary td, .payment-summary th { font-size: 0.9rem; padding: 0.5rem; }
}
.payment-summary .total-row {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--eics-primary);
    color: #fff;
}

/* === Mobile Fee Cards (replaces table on small screens) === */
.fee-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fee-card {
    background: var(--eics-white);
    border: 1px solid var(--eics-border);
    border-radius: var(--eics-radius);
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}
.fee-card-label {
    font-weight: 600;
    color: var(--eics-primary);
    width: 100%;
    font-size: 0.95rem;
}
.fee-card-detail {
    color: var(--eics-muted);
    font-size: 0.9rem;
}
.fee-card-amount {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--eics-text);
    margin-left: auto;
}
.fee-card-discount {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.fee-card-discount .fee-card-amount {
    color: var(--eics-success);
}
.fee-card-total {
    background: var(--eics-primary);
    border-color: var(--eics-primary);
    padding: 16px;
}
.fee-card-total .fee-card-label {
    color: #fff;
    font-size: 1rem;
}
.fee-card-total .fee-card-amount {
    color: #fff;
    font-size: 1.25rem;
}

/* === Cards for event/workshop selection === */
.selection-card {
    background: var(--eics-white);
    border: 2px solid var(--eics-border);
    border-radius: var(--eics-radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--eics-transition);
}
.selection-card:hover {
    border-color: var(--eics-primary-light);
    box-shadow: 0 2px 12px rgba(44,74,124,0.1);
}
.selection-card.selected {
    border-color: var(--eics-primary);
    background: rgba(44,74,124,0.03);
    box-shadow: 0 2px 12px rgba(44,74,124,0.15);
}

/* === Footer === */
.site-footer {
    background: var(--eics-footer-bg);
    color: var(--eics-footer-text);
    padding: 0 0 24px;
    border-top: 3px solid var(--eics-primary);
}
.footer-logos-bar {
    background: #fff;
    padding: 24px 0;
    text-align: center;
}
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-logos img {
    height: 50px;
    transition: opacity var(--eics-transition);
}
.footer-logos img:hover { opacity: 0.8; }
.footer-divider {
    border-color: var(--eics-border);
    margin: 0 0 28px;
}
.site-footer h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--eics-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.site-footer a {
    color: var(--eics-link);
    text-decoration: underline;
    transition: color var(--eics-transition);
}
.site-footer a:hover { color: var(--eics-link-hover); }
.footer-contact {
    font-size: 1rem;
    line-height: 1.6;
}
.footer-contact p {
    margin-bottom: 4px;
}
.footer-fastravel-logo {
    height: 70px;
    margin-bottom: 12px;
}
.footer-viva-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin-left: auto;
}
.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--eics-border);
    margin-top: 16px;
    font-size: 1rem;
    color: var(--eics-muted);
}
.footer-copy p { margin: 0; }

/* === Focus Styles (WCAG 2.2 AA) === */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #4a90d9;
    outline-offset: 2px;
}

/* === Success/Failure Pages === */
.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.result-icon.success { color: var(--eics-success); }
.result-icon.failure { color: var(--eics-accent); }

/* === Utility === */
.text-muted { color: var(--eics-muted) !important; font-size: 1rem; }
.card { border-radius: var(--eics-radius); border: 1px solid var(--eics-border); }
.card-header { background: var(--eics-light); font-weight: 600; }

/* === Page Fade-In === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.main-content > .container {
    animation: fadeInUp 0.4s ease-out;
}

/* === Button Loading & Disabled States === */
.btn-eics:disabled, .btn-eics.is-loading,
.btn-eics-outline:disabled, .btn-eics-outline.is-loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}
.btn-eics.is-loading, .btn-eics-outline.is-loading {
    position: relative;
    color: transparent !important;
}
.btn-eics.is-loading::after, .btn-eics-outline.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}
.btn-eics-outline.is-loading::after {
    border-color: rgba(26,39,68,0.3);
    border-top-color: var(--eics-primary);
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* === Print Styles === */
@media print {
    .site-header, .wizard-progress, .site-footer, .btn-eics, .btn-eics-outline { display: none; }
    .main-content > .container { box-shadow: none; padding: 0; }
    body { background: #fff; }
}
