/* ============================================================
   195th EAAE Seminar – Registration System
   Design aligned with main site (Onest + Inter, Teal + Dark)
   ============================================================ */

:root {
    --primary: #0bb4aa;
    --primary-hover: #099e95;
    --primary-light: #14d4c8;
    --primary-rgb: 11, 180, 170;
    --orange: #e8652b;
    --orange-hover: #d45520;
    --green: #22c55e;
    --red: #ef4444;
    --amber: #eab308;
    --purple: #8b5cf6;

    --color-dark: #0a0a0a;
    --color-dark-2: #141419;
    --color-dark-3: #1c1c24;
    --body-bg: #f8f9fc;
    --card-bg: #ffffff;
    --text-heading: #191b24;
    --text-body: #5a5a65;
    --text-muted: #94949e;
    --border: #e4e4ea;
    --border-light: #f0f0f5;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);

    --font-heading: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.65;
}

.main-content { flex: 1; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-hover); text-decoration: none; }

/* ── Typography ──────────────────────────────────────────── */
h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

h5 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-heading);
}

h6, .section-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

p { font-size: 0.95rem; line-height: 1.65; }
.lead { font-size: 1.05rem; font-weight: 400; color: var(--text-body); line-height: 1.6; }
small, .small { font-size: 0.82rem; }

.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* ── Navbar ──────────────────────────────────────────────── */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    background: var(--color-dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}

.site-navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
}

.nav-logo-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.2);
}

.nav-logo-sub {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link-item {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-link-item.nav-cta {
    background: var(--primary);
    color: var(--color-dark) !important;
    font-weight: 600;
    margin-left: 8px;
}

.nav-link-item.nav-cta:hover {
    background: var(--primary-light);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-body);
    border-radius: var(--radius-xs);
    transition: background var(--transition-fast);
}

.nav-dropdown-menu a:hover {
    background: var(--body-bg);
    color: var(--text-heading);
}

.nav-dropdown-menu hr {
    margin: 4px 0;
    border-color: var(--border-light);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: auto;
}

/* ── Hero Section ────────────────────────────────────────── */
.reg-hero {
    background: linear-gradient(135deg, #0c1f1e 0%, var(--color-dark) 50%, #0c1f1e 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.reg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(11, 180, 170, 0.08);
    border: 1px solid rgba(11, 180, 170, 0.2);
    border-radius: 50px;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
}

.reg-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.reg-hero-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.reg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.reg-meta-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.3rem;
    font-size: 0.84rem;
    letter-spacing: -0.01em;
    transition: all var(--transition-fast);
    border: none;
}
.btn:active { transform: scale(0.97); }

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-hover); color: #fff; box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25); }
.btn-primary:disabled { background-color: rgba(var(--primary-rgb), 0.35); color: rgba(255,255,255,0.7); }

.btn-outline-primary { color: var(--primary); border: 1.5px solid var(--primary); background: transparent; }
.btn-outline-primary:hover { background-color: var(--primary); color: #fff; }

.btn-secondary { background-color: var(--color-dark-3); color: #fff; border: none; }
.btn-secondary:hover { background-color: var(--color-dark-2); color: #fff; }

.btn-outline-secondary { color: var(--text-body); border: 1.5px solid var(--border); background: transparent; }
.btn-outline-secondary:hover { background-color: var(--body-bg); border-color: #b0b0b5; color: var(--text-heading); }

.btn-success { background-color: var(--green); border: none; }
.btn-success:hover { background-color: #16a34a; }
.btn-warning { background-color: var(--amber); border: none; color: #fff; }
.btn-warning:hover { background-color: #d49e08; color: #fff; }
.btn-danger { background-color: var(--red); border: none; }
.btn-danger:hover { background-color: #dc2626; }
.btn-link { color: var(--primary); text-decoration: none; font-weight: 500; }
.btn-link:hover { color: var(--primary-hover); }

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--red) !important; }
.text-muted { color: var(--text-muted) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }

/* ── Forms ────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    letter-spacing: 0.01em;
}

.form-control, .form-select {
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--border);
    font-size: 0.88rem;
    background-color: #fff;
    color: var(--text-heading);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder { color: #b0b0b5; font-size: 0.84rem; }
.form-control.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08); }
.invalid-feedback { font-size: 0.76rem; color: var(--red); font-weight: 500; }
.form-text { font-size: 0.76rem; color: var(--text-muted); }

h6.text-uppercase {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--text-muted);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--card-bg);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}
.card.shadow-sm { box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.9rem 1.2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-heading);
    letter-spacing: -0.01em;
}
.card-header h4, .card-header h5, .card-header .card-title {
    font-size: 0.92rem;
    margin: 0;
}
.card-header i.fa-solid, .card-header i.fa-regular { color: var(--primary); }
.card-body { padding: 1.25rem; }

/* ── Cart ─────────────────────────────────────────────────── */
#cartSection .card {
    background: var(--body-bg);
    border: 1px solid var(--border);
}

#cartTable { font-size: 0.84rem; }

#cartTable thead th {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    border-bottom: none;
}
#cartTable tbody td { vertical-align: middle; padding: 0.55rem 0.5rem; }

.cart-remove-btn {
    background: none; border: none; color: var(--red); cursor: pointer;
    padding: 0.3rem 0.45rem; font-size: 0.78rem; border-radius: var(--radius-xs);
    transition: background-color var(--transition-fast);
}
.cart-remove-btn:hover { background-color: rgba(239, 68, 68, 0.06); }

#cartTotal { letter-spacing: -0.03em; font-weight: 800; color: var(--text-heading); font-size: 1.15rem; font-family: var(--font-heading); }

/* Qty controls */
.qty-controls {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: none; border: none;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-body);
    font-size: 0.65rem; padding: 0;
    transition: all var(--transition-fast);
}
.qty-btn:hover:not(:disabled) { background-color: var(--body-bg); color: var(--text-heading); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-btn:active:not(:disabled) { transform: scale(0.9); }

.qty-value {
    min-width: 28px; text-align: center;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 0.82rem;
    color: var(--text-heading);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    line-height: 30px;
}

#cartCount { font-size: 0.72rem; font-weight: 700; }

/* ── Status Badges ───────────────────────────────────────── */
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 0.4em 0.85em;
    border-radius: 50rem;
}
.badge-confirmed, .badge.bg-success { background-color: var(--green) !important; }
.badge-pending, .badge.bg-warning   { background-color: var(--amber) !important; color: #fff !important; }
.badge-failed                       { background-color: var(--orange) !important; }
.badge-cancelled                    { background-color: #a1a1aa !important; }
.badge-refunded                     { background-color: var(--purple) !important; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb { font-size: 0.82rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; font-size: 0.86rem; font-weight: 500; }
.alert-success { background-color: rgba(34,197,94,0.08); color: #15803d; }
.alert-danger  { background-color: rgba(239,68,68,0.06); color: #b91c1c; }
.alert-warning { background-color: rgba(234,179,8,0.08); color: #a16207; }
.alert-info    { background-color: rgba(11,180,170,0.06); color: #065f5b; }

/* ── Tables ───────────────────────────────────────────────── */
.table { font-size: 0.84rem; }
.table thead th {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 0.64rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 1rem;
}
.table td, .table tbody th {
    border-color: var(--border-light); color: var(--text-body);
    padding: 0.75rem 1rem; vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0,0,0,0.015); }
.table-primary { --bs-table-bg: rgba(var(--primary-rgb), 0.04); --bs-table-border-color: var(--border-light); }
.table-light { --bs-table-bg: #fafafa; }

/* ── Payment buttons ─────────────────────────────────────── */
.btn-lg.py-3 { border-radius: var(--radius); }

/* ── List group ──────────────────────────────────────────── */
.list-group-item { border-color: var(--border-light); padding: 0.8rem 1.2rem; }
.badge.rounded-pill.fs-6 { font-weight: 700; background-color: var(--primary) !important; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.4);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin: 0;
    line-height: 1.5;
}

.footer-desc {
    margin-top: 8px;
    font-size: 12px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-email, .footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition-fast);
}

.footer-email:hover, .footer-phone:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

.footer-bottom a {
    color: rgba(255,255,255,0.3);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover { color: var(--primary); }

/* ── Password toggle ─────────────────────────────────────── */
#togglePassword { border-color: var(--border); color: var(--text-muted); }
#togglePassword:hover { background-color: var(--body-bg); color: var(--text-heading); }

/* ── Animations ──────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

#checkoutBtn:not(:disabled) {
    font-weight: 700;
    letter-spacing: -0.01em;
    background: var(--orange);
}
#checkoutBtn:not(:disabled):hover {
    background: var(--orange-hover);
    box-shadow: 0 6px 20px rgba(232, 101, 43, 0.3);
}

/* ── Icon colors ─────────────────────────────────────────── */
.card-header i.fa-solid, .card-header i.fa-regular { color: var(--primary); }
.col-lg-5 i.fa-solid, .col-lg-5 i.fa-regular { color: var(--orange); opacity: 0.85; }
h4 i.fa-solid, h5 i.fa-solid, h6 i.fa-solid { color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 40px;
        gap: 4px;
        transition: right var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }

    .nav-link-item {
        font-size: 15px;
        padding: 12px 16px;
        width: 100%;
        border-radius: 10px;
    }

    .nav-link-item.nav-cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.04);
        border-radius: var(--radius-sm);
        margin-top: 4px;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        display: none;
        padding: 4px;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.6);
        font-size: 14px;
    }

    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    .nav-dropdown-menu hr {
        border-color: rgba(255,255,255,0.08);
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .reg-hero { padding: 32px 0 28px; }
    .reg-hero-title { font-size: 1.35rem; }
    .reg-hero-meta { flex-direction: column; gap: 8px; align-items: center; }
    .card-body { padding: 1rem; }

    #cartTable thead { display: none; }
    #cartTable tbody tr { display: flex; flex-wrap: wrap; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); }
    #cartTable tbody td { border: none; padding: 0.15rem 0.25rem; }
    #cartTable tbody td:first-child { flex: 1 1 100%; font-weight: 600; }

    .footer-grid { flex-direction: column; gap: 24px; }
    .footer-contact { align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .site-navbar, .reg-hero, .site-footer, #addTicketBtn, #checkoutBtn, .cart-remove-btn { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #e0e0e0; }
}
