/* ============================================================
   Python Bootcamp for Beginners — style.css
   Python-inspired palette · glassmorphism · mobile-first
   ============================================================ */

:root {
    --py-blue:      #306998;
    --py-blue-deep: #1f4d72;
    --py-yellow:    #ffd43b;
    --py-yellow-dk: #f7c948;
    --ink:          #11161d;
    --ink-soft:     #44505f;
    --muted:        #6b7686;
    --bg:           #0d1b2a;
    --bg-2:         #112a45;
    --surface:      #ffffff;
    --surface-soft: #f4f8fc;
    --line:         #e4ebf3;
    --grad:         linear-gradient(135deg, #306998 0%, #4b8bbe 50%, #ffd43b 130%);
    --grad-text:    linear-gradient(100deg, #ffd43b, #ffe98a);
    --shadow-sm:    0 4px 14px rgba(16, 42, 67, .08);
    --shadow-md:    0 12px 34px rgba(16, 42, 67, .14);
    --shadow-lg:    0 24px 60px rgba(16, 42, 67, .22);
    --radius:       18px;
    --radius-lg:    26px;
    --maxw:         1140px;
    --ease:         cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--surface-soft);
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
code, .code-snip { font-family: 'Fira Code', monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.accent { color: var(--py-yellow-dk); }

/* ---------- Buttons ---------- */
.btn {
    --b: var(--py-blue);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: .98rem;
    padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    position: relative; white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(120deg, var(--py-blue), #4b8bbe);
    color: #fff; box-shadow: 0 10px 26px rgba(48, 105, 152, .4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(48, 105, 152, .5); }
.btn-ghost {
    background: rgba(255, 255, 255, .14); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-3px); }
.btn:disabled { opacity: .75; cursor: not-allowed; transform: none; }

/* spinner inside button */
.btn-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
    display: none; animation: spin .7s linear infinite;
}
.btn.loading .btn-label { opacity: .6; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0; transition: padding .3s, background .3s, box-shadow .3s;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm); padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.navbar.scrolled .brand { color: var(--ink); }
.brand-logo {
    font-family: 'Fira Code', monospace; background: var(--py-yellow);
    color: var(--py-blue-deep); padding: 3px 9px; border-radius: 8px; font-size: .9rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; color: rgba(255, 255, 255, .9); transition: color .2s; }
.navbar.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--py-yellow-dk); }
.nav-login {
    border: 1.5px solid rgba(255, 255, 255, .4); padding: 8px 18px; border-radius: 999px; font-weight: 600;
    transition: background .25s, border-color .25s, color .25s;
}
.navbar.scrolled .nav-login { border-color: var(--py-blue); color: var(--py-blue) !important; }
.nav-login:hover { background: var(--py-blue); border-color: var(--py-blue); color: #fff !important; }
.nav-cta {
    background: var(--py-yellow); color: var(--py-blue-deep) !important;
    padding: 9px 20px; border-radius: 999px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(255, 212, 59, .4);
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.navbar.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 70px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 120% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 460px; height: 460px; background: #2c6593; top: -120px; right: -80px; animation: float 14s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: rgba(255, 212, 59, .35); bottom: -120px; left: -90px; animation: float 18s ease-in-out infinite reverse; }
.code-snip { position: absolute; color: rgba(255, 255, 255, .12); font-size: 1.05rem; white-space: nowrap; }
.snip-1 { top: 22%; left: 7%; animation: drift 12s ease-in-out infinite; }
.snip-2 { top: 64%; right: 9%; animation: drift 15s ease-in-out infinite reverse; }
.snip-3 { bottom: 14%; left: 16%; animation: drift 18s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-34px) scale(1.05); } }
@keyframes drift { 50% { transform: translateY(-18px) translateX(10px); } }

.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.badge {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px); padding: 8px 18px; border-radius: 999px;
    font-size: .9rem; font-weight: 500;
}
.badge-fee { background: linear-gradient(120deg, var(--py-yellow), var(--py-yellow-dk)); color: var(--py-blue-deep); border: none; font-weight: 700; box-shadow: 0 8px 20px rgba(255, 212, 59, .35); }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(255, 255, 255, .82); }
.hero-sub strong { color: var(--py-yellow); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 50px; }
.meta-item {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px; padding: 16px 26px; min-width: 130px; backdrop-filter: blur(6px);
}
.meta-item strong { display: block; font-size: 1.2rem; color: var(--py-yellow); }
.meta-item span { font-size: .85rem; color: rgba(255, 255, 255, .72); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em;
    font-size: .78rem; font-weight: 700; color: var(--py-blue);
    background: rgba(48, 105, 152, .1); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature cards (Why Join) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.fc-icon {
    width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
    background: linear-gradient(135deg, rgba(48, 105, 152, .12), rgba(255, 212, 59, .22));
    border-radius: 14px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .94rem; }

/* ---------- Instructor (clean modern card) ---------- */
.instr-card {
    position: relative; max-width: 880px; margin: 0 auto; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 0 38px 38px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.instr-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.instr-banner {
    height: 120px; margin: 0 -38px 0; position: relative; overflow: hidden;
    background: radial-gradient(120% 160% at 20% 0%, #4b8bbe 0%, var(--py-blue) 45%, var(--py-blue-deep) 100%);
}
.instr-banner::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255, 212, 59, .35) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
}

.instr-head { display: flex; align-items: flex-end; gap: 22px; margin-top: -70px; position: relative; z-index: 2; }
.instr-photo {
    position: relative; width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--py-blue), #4b8bbe);
    display: grid; place-items: center; overflow: hidden;
    border: 5px solid var(--surface); box-shadow: var(--shadow-md);
}
.instr-avatar { font-size: 2.8rem; font-weight: 800; color: #fff; letter-spacing: .04em; }
.instr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.instr-id { padding-bottom: 6px; }
.instr-id h3 { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.instr-role { color: var(--py-blue); font-weight: 500; font-size: .94rem; margin-top: 3px; }
.instr-socials { display: flex; gap: 10px; margin-top: 14px; }
.soc-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    font-weight: 600; font-size: .86rem; color: #fff;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
}
.soc-btn:hover { transform: translateY(-3px); }
.soc-linkedin  { background: #0a66c2; box-shadow: 0 8px 18px rgba(10, 102, 194, .35); }
.soc-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 8px 18px rgba(220, 39, 67, .3); }

.instr-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 24px; }
.instr-tag {
    background: rgba(48, 105, 152, .08); color: var(--py-blue-deep); font-weight: 600;
    font-size: .84rem; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(48, 105, 152, .15);
}
.instr-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.instr-points li { display: flex; gap: 14px; align-items: flex-start; }
.ip-dot {
    flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(48, 105, 152, .12), rgba(255, 212, 59, .22)); border-radius: 12px;
}
.instr-points strong { display: block; font-size: .98rem; margin-bottom: 2px; line-height: 1.3; }
.instr-points p { color: var(--muted); font-size: .88rem; line-height: 1.45; }

@media (max-width: 680px) {
    .instr-card { padding: 0 22px 30px; }
    .instr-banner { margin: 0 -22px; }
    .instr-head { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
    .instr-socials { justify-content: center; }
    .instr-tags { justify-content: center; }
    .instr-points { grid-template-columns: 1fr; gap: 16px; }
    .instr-points li { text-align: left; }
}

/* ---------- Footer socials + contact button ---------- */
.footer-socials { display: flex; gap: 12px; margin: 18px 0 4px; }
.fsoc {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s, border-color .28s;
}
.fsoc svg { width: 19px; height: 19px; }
.fsoc:hover { transform: translateY(-4px); border-color: transparent; color: #fff; }
.fsoc-li:hover { background: #0a66c2; box-shadow: 0 8px 20px rgba(10, 102, 194, .5); }
.fsoc-ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 8px 20px rgba(220, 39, 67, .45); }
.btn-contact {
    background: var(--py-yellow); color: var(--py-blue-deep); font-weight: 700; margin-top: 10px;
    box-shadow: 0 8px 20px rgba(255, 212, 59, .3);
}
.btn-contact:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 212, 59, .4); }

/* ---------- Contact modal ---------- */
.modal-contact { text-align: left; padding: 36px 34px; }
.modal-close {
    position: absolute; top: 16px; right: 18px; width: 36px; height: 36px; border: none; cursor: pointer;
    background: var(--surface-soft); border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--ink-soft);
    transition: background .2s, transform .2s;
}
.modal-close:hover { background: var(--line); transform: rotate(90deg); }
.contact-head { text-align: center; margin-bottom: 22px; }
.contact-emoji { font-size: 2.2rem; }
.contact-head h2 { font-size: 1.5rem; margin: 6px 0 6px; color: var(--ink); }
.contact-head p { color: var(--muted); font-size: .94rem; }
/* NOTE: .modal-contact prefix is required to beat the dark registration .field rules. */
.modal-contact .field { margin-bottom: 16px; }
.modal-contact .field label {
    font-size: .9rem; font-weight: 500; margin-bottom: 7px; color: var(--ink-soft);
}
.modal-contact .field input {
    width: 100%; padding: 13px 15px; font-family: inherit; font-size: .96rem; color: var(--ink);
    background: var(--surface-soft); border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.modal-contact .field input::placeholder { color: #9aa6b4; }
.modal-contact .field input:focus {
    outline: none; border-color: var(--py-blue); background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 105, 152, .12);
}
.modal-contact .field.invalid input { border-color: #e74c3c; background: #fff5f5; }
.modal-contact .error-msg { color: #e74c3c; }
.modal-contact .req { color: var(--py-blue); }
.contact-success { text-align: center; padding: 14px 0; }
.contact-success h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--ink); }
.contact-success p { color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Timeline (Roadmap) ---------- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(var(--py-blue), var(--py-yellow)); transform: translateX(-50%); border-radius: 3px;
}
.tl-item { position: relative; width: 50%; padding: 14px 42px; }
.tl-left  { left: 0; text-align: right; }
.tl-right { left: 50%; text-align: left; }
.tl-dot {
    position: absolute; top: 26px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--py-blue); color: var(--py-blue);
    display: grid; place-items: center; font-weight: 700; z-index: 2; box-shadow: var(--shadow-sm);
}
.tl-left  .tl-dot { right: -20px; }
.tl-right .tl-dot { left: -20px; }
.tl-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tl-day {
    display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--py-blue-deep);
    background: var(--py-yellow); padding: 4px 11px; border-radius: 999px; margin-bottom: 8px;
}
.tl-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tl-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Who can join ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.who-card {
    text-align: center; padding: 36px 24px; border-radius: var(--radius);
    background: linear-gradient(160deg, #fff, var(--surface-soft));
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.who-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.who-emoji {
    font-size: 2.6rem; width: 84px; height: 84px; margin: 0 auto 18px; display: grid; place-items: center;
    background: radial-gradient(circle, rgba(255, 212, 59, .3), rgba(48, 105, 152, .12)); border-radius: 50%;
}
.who-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.who-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Outcomes ---------- */
.outcomes-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.outcome-pill {
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
    padding: 13px 24px; font-weight: 600; font-size: 1rem; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.outcome-pill:hover { transform: translateY(-4px); border-color: var(--py-yellow-dk); background: #fffdf3; }

/* ---------- Certificate ---------- */
.cert-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cert-visual { display: grid; place-items: center; perspective: 1000px; }
.cert-card {
    width: 100%; max-width: 380px; aspect-ratio: 4 / 3; padding: 30px; text-align: center;
    background: linear-gradient(150deg, #fffef8, #fff6d6);
    border: 2px solid var(--py-yellow-dk); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: rotate(-3deg); transition: transform .4s var(--ease);
}
.cert-card:hover { transform: rotate(0) scale(1.03); }
.cert-ribbon { font-size: 2.6rem; }
.cert-card h4 { font-size: 1.3rem; color: var(--py-blue-deep); margin: 10px 0 6px; }
.cert-name { color: var(--ink-soft); font-size: .92rem; font-style: italic; }
.cert-line { width: 140px; height: 2px; background: var(--py-blue); margin: 22px 0 8px; opacity: .4; }
.cert-sign { font-family: 'Fira Code', monospace; color: var(--py-blue); font-weight: 600; }
.cert-text .kicker { margin-top: 0; }
.cert-text h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.cert-text p { color: var(--muted); margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--surface-soft); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s;
}
.section-alt .faq-item { background: var(--surface-soft); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(48, 105, 152, .3); }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 1.04rem;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { font-size: 1.5rem; color: var(--py-blue); transition: transform .3s; flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Registration ---------- */
.section-register {
    background: radial-gradient(120% 120% at 50% 0%, var(--bg-2), var(--bg));
    color: #fff;
}
.section-register .section-lead { color: rgba(255, 255, 255, .75); }
.section-register .kicker { background: rgba(255, 212, 59, .18); color: var(--py-yellow); }
.reg-form {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(16px); border-radius: var(--radius-lg);
    padding: 38px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-size: .92rem; font-weight: 500; margin-bottom: 8px; color: rgba(255, 255, 255, .92); }
.req { color: var(--py-yellow); }
.optional { color: rgba(255, 255, 255, .5); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px; font-family: inherit; font-size: .98rem; color: #fff;
    background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: 12px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--py-yellow);
    background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 4px rgba(255, 212, 59, .15);
}
.field select { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ffd43b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field select option { color: var(--ink); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.error-msg { color: #ffb3b3; font-size: .82rem; margin-top: 6px; min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { text-align: center; font-size: .86rem; color: rgba(255, 255, 255, .65); margin-top: 16px; }
.form-feedback { text-align: center; margin-top: 12px; font-weight: 600; min-height: 1.2em; }
.form-feedback.error { color: #ffb3b3; }
.form-feedback.success { color: var(--py-yellow); }

/* ---------- Success Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(8, 16, 26, .72); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
    background: var(--surface); border-radius: var(--radius-lg); padding: 44px 38px; max-width: 520px; width: 100%;
    text-align: center; box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.96);
    transition: transform .4s var(--ease); max-height: 92vh; overflow-y: auto;
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal h2 { font-size: 1.7rem; margin-bottom: 14px; color: var(--ink); }
.modal p { color: var(--ink-soft); margin-bottom: 12px; font-size: .98rem; }
.modal-see { font-weight: 700; color: var(--py-blue); font-size: 1.1rem; margin: 18px 0 24px; }
.modal-check { width: 92px; height: 92px; margin: 0 auto 22px; }
.checkmark { width: 92px; height: 92px; border-radius: 50%; display: block;
    box-shadow: inset 0 0 0 rgba(48, 105, 152, .1); }
.checkmark-circle { stroke: var(--py-blue); stroke-width: 2.5; stroke-dasharray: 166; stroke-dashoffset: 166;
    animation: stroke .7s var(--ease) forwards; }
.checkmark-tick { stroke: var(--py-yellow-dk); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke .4s .6s var(--ease) forwards; }
@keyframes stroke { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { background: #0b1622; color: rgba(255, 255, 255, .75); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 44px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-tag { font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255, 255, 255, .7); margin-bottom: 10px; font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--py-yellow); }
.footer-fee { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; text-align: center; font-size: .86rem; color: rgba(255, 255, 255, .55); }

/* ---------- Scroll-to-top ---------- */
.to-top {
    position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 50px; height: 50px;
    border-radius: 50%; border: none; cursor: pointer; font-size: 1.4rem; color: #fff;
    background: linear-gradient(120deg, var(--py-blue), #4b8bbe); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .cert-wrap { grid-template-columns: 1fr; gap: 36px; }
    .cert-text { text-align: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: min(78vw, 320px);
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
        background: rgba(13, 27, 42, .97); backdrop-filter: blur(16px); padding: 0 36px;
        transition: right .35s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.3);
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: #fff !important; font-size: 1.1rem; }
    .nav-toggle { display: flex; z-index: 110; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }

    /* timeline becomes single column */
    .timeline::before { left: 22px; }
    .tl-item { width: 100%; left: 0 !important; padding: 12px 0 12px 60px; text-align: left !important; }
    .tl-left .tl-dot, .tl-right .tl-dot { left: 2px; right: auto; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .section { padding: 70px 0; }
    .reg-form { padding: 26px 20px; }
}
@media (max-width: 420px) {
    .hero-meta { gap: 10px; }
    .meta-item { padding: 12px 18px; min-width: 105px; }
    .modal { padding: 34px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
