/* =========================================================
   Webinar Registration Landing Page
   Light editorial design — navy / blue / red accent on white
   ========================================================= */

:root {
    --navy: #0a1f4e;
    --navy-dark: #050f28;
    --navy-mid: #12306b;
    --blue: #2f6fed;
    --blue-light: #5b8cf5;
    --blue-glow: rgba(47, 111, 237, 0.12);
    --blue-pale: #EAF1FF;
    --red: #E5384B;
    --red-dark: #C42439;
    --white: #ffffff;
    --bg-page: #F6F9FF;
    --gray-bg: #f4f7fc;
    --gray-border: #E2E8F0;
    --gray-warm: #f8fafc;
    --text-dark: #0a1f4e;
    --text-body: #4a5670;
    --text-muted: #7a8499;
    --success: #1e9e6b;
    --error: #d64545;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(10, 31, 78, 0.06);
    --shadow-md: 0 8px 28px rgba(10, 31, 78, 0.10);
    --shadow-lg: 0 24px 60px rgba(10, 31, 78, 0.14);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background: linear-gradient(180deg, #EFF4FF 0%, var(--bg-page) 55%, #FFFFFF 100%);
    padding: 56px 0 40px;
    overflow: hidden;
}
.hero-flight-path {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 260px;
    pointer-events: none;
    z-index: 0;
}
.hero-flight-path svg:first-child { width: 100%; height: 100%; }
.hero-plane {
    position: absolute;
    top: 24px; right: 8%;
    width: 26px; height: 26px;
    color: var(--navy);
    opacity: 0.35;
    transform: rotate(35deg);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* ---- Two-tone badge ---- */
.badge-split {
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.badge-split .seg-red,
.badge-split .seg-navy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-split .seg-red { background: var(--red); color: var(--white); padding-right: 14px; }
.badge-split .seg-red svg { width: 15px; height: 15px; }
.badge-split .seg-navy { background: var(--navy); color: var(--white); }

/* ---- Hosted by ---- */
.hosted-by {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* ---- Headline ---- */
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.h1-accent { color: var(--blue); }

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 26px;
}

/* ---- Topics covered ---- */
.topics-covered { margin-bottom: 24px; }
.topics-covered-label {
    display: block;
    font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted);
    margin-bottom: 10px;
}
.topics-covered-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
    display: inline-flex; align-items: center;
    padding: 6px 14px; border-radius: 50px;
    background: var(--blue-pale); color: var(--navy);
    font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
    border: 1px solid rgba(47, 111, 237, 0.14);
}

/* ---- Benefits icon row ---- */
.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 28px;
}
.benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-left: 1px solid var(--gray-border);
}
.benefits li:first-child { padding-left: 0; border-left: none; }
.benefit-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 19px; height: 19px; }
.benefits li span:last-child {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

/* ---- Info bar ---- */
.info-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-border);
    padding: 14px 10px;
    gap: 4px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.info-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-right: 1px solid var(--gray-border);
}
.info-bar-item svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; }
.info-bar-text { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.info-bar-text strong { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.info-bar-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 13px 22px;
    border-radius: 50px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 10px 24px rgba(229, 56, 75, 0.3);
}
.info-bar-cta:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(229, 56, 75, 0.38); }
.info-bar-cta-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.info-bar-cta-icon svg { width: 13px; height: 13px; }

.info-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.info-note svg { width: 17px; height: 17px; color: var(--navy); flex-shrink: 0; }
.info-note-sep { color: var(--gray-border); }

/* ---- Photo panel ---- */
.hero-photo-wrap { position: relative; }
.hero-photo-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 10;
    background: #0d1117;
}
.hero-photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 22%;
}
.hero-logo-chip {
    position: absolute;
    top: -14px; left: -14px;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex; align-items: center; justify-content: center;
}
.hero-logo-chip img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-section { background: var(--navy); padding: 34px 0; }
.countdown-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.countdown-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 78px;
    height: 78px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
}
.countdown-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%;
    width: 76%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.85;
}
.countdown-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.countdown-value.tick { animation: tickFlip 0.4s ease; }
@keyframes tickFlip {
    0% { transform: translateY(-6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.countdown-unit {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}
.countdown-sep {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
}
.countdown-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    background: rgba(30, 158, 107, 0.16);
    border: 1px solid rgba(30, 158, 107, 0.35);
    color: #7bdcb5;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    text-align: center;
}
.countdown-status.ended {
    background: rgba(214, 69, 69, 0.14);
    border-color: rgba(214, 69, 69, 0.3);
    color: #f2a0a0;
}
.countdown-status[hidden] { display: none; }

/* =========================================================
   REGISTRATION FORM
   ========================================================= */
.form-section { background: var(--gray-bg); padding: 56px 0 64px; }
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 40px 36px;
    scroll-margin-top: 24px;
}
.form-card-head { text-align: center; margin-bottom: 28px; }
.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--red);
    margin-bottom: 10px;
}
.form-card-head h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.form-card-head p { font-size: 0.92rem; color: var(--text-muted); }

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
}
.req { color: var(--error); }

.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-border);
    background: var(--gray-warm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--blue-glow);
}
.input-wrap:focus-within .input-icon { color: var(--blue); }
.field input.invalid { border-color: var(--error); background: #fdf2f2; }
.field input.invalid:focus { box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.field input.valid { border-color: var(--success); }
.input-wrap:has(input.valid) .input-icon { color: var(--success); }
.input-wrap:has(input.invalid) .input-icon { color: var(--error); }

.helper-text { font-size: 0.74rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.error-msg { font-size: 0.78rem; color: var(--error); margin-top: 6px; font-weight: 600; display: none; }
.error-msg.show { display: block; }

/* ---- Optional questions: radio / checkbox groups ---- */
.field-optional { margin-bottom: 22px; }
.field-optional > label {
    display: block; font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
    color: var(--text-dark); margin-bottom: 12px; line-height: 1.5;
}
.optional-tag {
    display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 50px;
    background: var(--gray-warm); border: 1px solid var(--gray-border);
    color: var(--text-muted); font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle;
}
.radio-group { display: flex; gap: 10px; }
.radio-option {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--gray-border);
    background: var(--gray-warm); cursor: pointer; transition: var(--transition);
    font-size: 0.9rem; color: var(--text-dark); font-weight: 500;
}
.radio-option:has(input:checked) { border-color: var(--blue); background: var(--blue-glow); color: var(--navy); font-weight: 700; }
.radio-option input[type="radio"] { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; }
.conditional-field {
    margin-top: 14px; padding-top: 2px;
    animation: fadeInUp 0.35s ease;
}
.conditional-field[hidden] { display: none; }
.conditional-field label {
    display: block; font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600;
    color: var(--text-dark); margin-bottom: 7px;
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-option {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 16px; border-radius: 10px; border: 1.5px solid var(--gray-border);
    background: var(--gray-warm); cursor: pointer; transition: var(--transition);
}
.checkbox-option:has(input:checked) { border-color: var(--blue); background: var(--blue-glow); }
.checkbox-option input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.checkbox-option span { font-size: 0.87rem; color: var(--text-body); line-height: 1.5; }
.checkbox-option:has(input:checked) span { color: var(--navy); font-weight: 600; }

.field-consent { margin-bottom: 24px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-body); line-height: 1.6; cursor: pointer; }
.consent-label input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 10px 26px rgba(229, 56, 75, 0.3);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(229, 56, 75, 0.4); }
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 32px 0; background: var(--navy-dark); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.footer-logo { width: 26px; height: 26px; border-radius: 7px; background: var(--white); padding: 3px; object-fit: contain; }
.footer p { text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.3); }

/* =========================================================
   SUCCESS MODAL
   ========================================================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 15, 40, 0.6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 36px 34px;
    max-width: 420px; width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
    width: 62px; height: 62px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 158, 107, 0.16), rgba(30, 158, 107, 0.06));
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.modal-icon svg { width: 30px; height: 30px; }
.modal-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.modal-card p { font-size: 0.92rem; color: var(--text-body); line-height: 1.75; margin-bottom: 26px; }
.btn-done {
    padding: 13px 36px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy-mid) 100%);
    color: var(--white);
    font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem;
    cursor: pointer; transition: transform var(--transition);
}
.btn-done:hover { transform: translateY(-2px); }

/* =========================================================
   FADE-IN
   ========================================================= */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-photo-wrap { order: -1; }
    .hero-logo-chip { top: -12px; left: -12px; width: 48px; height: 48px; }
}
@media (max-width: 720px) {
    .info-bar { flex-direction: column; align-items: stretch; padding: 16px; }
    .info-bar-item { border-right: none; border-bottom: 1px solid var(--gray-border); padding: 10px 4px; }
    .info-bar-cta { margin-left: 0; margin-top: 6px; justify-content: center; }
    .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero { padding: 40px 0 32px; }
    .hero-content h1 { font-size: 1.85rem; }
    .hero-desc { font-size: 0.96rem; }
    .benefits { gap: 12px 0; }
    .benefits li { padding: 0 12px; }
    .benefits li:nth-child(3) { border-left: none; }

    .countdown { gap: 6px; }
    .countdown-card { width: 62px; height: 62px; border-radius: 10px; }
    .countdown-value { font-size: 1.3rem; }
    .countdown-sep { font-size: 1.1rem; }

    .form-card { padding: 28px 20px 26px; }
}
@media (max-width: 380px) {
    .countdown-card { width: 54px; height: 54px; }
    .countdown-value { font-size: 1.1rem; }
    .countdown-unit { font-size: 0.56rem; }
}
