/* =======================================================
   CVPro Zambia — Base Stylesheet  v20260307.3
   Structure · Layout · Components · Responsive
   Visual styling lives in styles.override.css
   ======================================================= */

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

:root {
    --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
    --sp-5:20px; --sp-6:24px; --sp-8:32px;
    --r-xs:4px; --r-sm:8px; --r-md:12px;
    --r-lg:16px; --r-xl:20px; --r-2xl:24px; --r-pill:9999px;
    --ease:cubic-bezier(.4,0,.2,1);
    --ease-out:cubic-bezier(0,0,.2,1);
    --ease-spring:cubic-bezier(.34,1.56,.64,1);
    --t-fast:130ms; --t-base:200ms; --t-slow:340ms;
    --wa-right:28px; --wa-bottom:28px; --wa-size:56px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { border-radius:var(--r-pill); }
html { scrollbar-width:thin; }

/* ── Body ── */
body {
    line-height:1.6;
    min-height:100vh;
    padding:16px;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* ── Container ── */
.container {
    max-width:1440px;
    margin:0 auto;
    border-radius:var(--r-2xl);
    overflow:hidden;
    position:relative;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
header {
    padding:28px 48px 0;
    position:relative;
    overflow:hidden;
    color:#fff;
}

.header-geo {
    position:absolute; inset:0;
    pointer-events:none; overflow:hidden; z-index:0;
}

.header-geo-svg {
    position:absolute; right:0; top:0;
    width:420px; height:100%; color:#fff;
}

header::after {
    content:''; position:absolute;
    bottom:0; left:0; right:0; height:3px;
    pointer-events:none; z-index:2;
}

.header-brand {
    display:flex;
    align-items:center;
    gap:32px;
    position:relative;
    z-index:1;
    max-width:1060px;
    margin:0 auto;
    padding-bottom:20px;
}

.brand-logo {
    flex-shrink:0;
    width:80px; height:80px;
    border-radius:var(--r-lg);
    display:flex; align-items:center; justify-content:center;
}

.brand-logo-img {
    width:100%; height:100%; display:block;
    background:url('../assets/cvpro-zambia-logo.png') center/contain no-repeat;
    border-radius:var(--r-md);
}

.brand-text { flex:1; min-width:0; }

.brand-eyebrow {
    display:inline-flex; align-items:center; gap:6px;
    font-size:.7rem; font-weight:700;
    letter-spacing:.1em; text-transform:uppercase;
    margin-bottom:6px; opacity:.6;
}

.brand-text h1 {
    font-size:clamp(1.6rem,2.6vw,2.35rem);
    font-weight:800; line-height:1.05;
    letter-spacing:-.03em; margin-bottom:8px;
}

.brand-tagline {
    font-size:.93rem; font-weight:400;
    line-height:1.6; margin-bottom:14px;
    max-width:520px; opacity:.75;
}

.brand-pills {
    display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px;
}

.pill {
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 11px; border-radius:var(--r-pill);
    font-size:.72rem; font-weight:600;
    border:1px solid transparent;
    cursor:default; user-select:none;
    transition:background var(--t-fast) var(--ease),
               border-color var(--t-fast) var(--ease),
               transform var(--t-fast) var(--ease);
}
.pill-icon { font-style:normal; font-size:.82em; }

.header-cta {
    display:flex; gap:10px;
    flex-wrap:wrap; align-items:center; margin-bottom:8px;
}

.btn-cta {
    display:inline-flex; align-items:center; justify-content:center;
    gap:7px; padding:11px 24px;
    font-size:.9rem; font-weight:700;
    border:none; border-radius:var(--r-pill);
    cursor:pointer; white-space:nowrap;
    position:relative; overflow:hidden;
    transition:transform var(--t-base) var(--ease),
               box-shadow var(--t-base) var(--ease),
               filter var(--t-fast) var(--ease);
}

.btn-cta-primary::before {
    content:'';
    position:absolute;
    top:0; left:-100%; width:60%; height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
    transform:skewX(-18deg);
    transition:left .55s var(--ease);
    pointer-events:none;
}
.btn-cta-primary:hover::before { left:150%; }

.btn-cta:hover  { transform:translateY(-3px); }
.btn-cta:active { transform:translateY(-1px); }

.header-hint { font-size:.8rem; }

/* Trust strip */
.trust-strip {
    display:flex; align-items:center; justify-content:center;
    flex-wrap:wrap; gap:8px 18px;
    padding:9px 48px 11px;
    position:relative; z-index:1;
}

.trust-item {
    display:inline-flex; align-items:center; gap:5px;
    font-size:.73rem; font-weight:600;
    opacity:.55; white-space:nowrap;
}

.trust-dot { opacity:.25; font-size:.9rem; }

/* ════════════════════════════════════════
   MAIN & HOW IT WORKS
════════════════════════════════════════ */
main { padding:28px; }

.how-it-works {
    display:flex; align-items:center; justify-content:center;
    gap:0; flex-wrap:wrap;
    margin-bottom:22px;
    border-radius:var(--r-lg);
    overflow:hidden;
}

.hiw-step {
    display:flex; align-items:center; gap:14px;
    padding:18px 28px; flex:1; min-width:180px;
    transition:background var(--t-fast) var(--ease);
}

.hiw-num {
    width:38px; height:38px; flex-shrink:0;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1rem; font-weight:800; line-height:1;
}

.hiw-body { min-width:0; }
.hiw-title { font-size:.9rem; font-weight:700; line-height:1.2; }
.hiw-desc  { font-size:.78rem; line-height:1.3; opacity:.65; margin-top:2px; }

.hiw-arrow {
    display:flex; align-items:center; justify-content:center;
    padding:0 4px; opacity:.35;
}

/* ════════════════════════════════════════
   TWO-COLUMN LAYOUT
════════════════════════════════════════ */
.cv-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:24px; align-items:start;
}

/* ════════════════════════════════════════
   FORM CONTAINER
════════════════════════════════════════ */
.form-container {
    background:#fff;
    border-radius:var(--r-xl);
    overflow:hidden; min-width:0;
}

/* ── Wizard header ── */
.wizard-header { padding:22px 26px 0; }

.wizard-progress-row {
    display:flex; align-items:center; gap:10px; margin-bottom:8px;
}

.wizard-progress {
    font-size:.68rem; font-weight:700;
    letter-spacing:.07em; text-transform:uppercase;
    opacity:.45; flex:1; line-height:1;
}

/* Progress bar */
.wizard-bar-track {
    height:4px; border-radius:var(--r-pill);
    overflow:hidden; margin-bottom:14px;
    position:relative;
}

.wizard-bar-fill {
    height:100%; width:0%; border-radius:var(--r-pill);
    transition:width .55s cubic-bezier(0.4,0,0.2,1);
    position:relative;
    overflow:hidden;
}

/* Shimmer sweep on the fill */
.wizard-bar-fill::after {
    content:'';
    position:absolute;
    top:0; left:-60%; width:40%; height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
    animation:barShimmer 2.2s ease 0.8s infinite;
    pointer-events:none;
}

@keyframes barShimmer {
    0%   { left:-60%; }
    60%  { left:120%; }
    100% { left:120%; }
}

.wizard-stepper {
    display:flex; align-items:center; gap:6px;
    overflow-x:auto; padding-bottom:18px;
    scrollbar-width:none; -ms-overflow-style:none;
}
.wizard-stepper::-webkit-scrollbar { display:none; }

/* Step buttons — JS adds .is-active / .is-complete */
.wizard-step {
    flex:0 0 auto;
    display:inline-flex; flex-direction:column; align-items:center; gap:3px;
    padding:9px 18px; min-width:88px;
    border-radius:var(--r-sm); border:1.5px solid transparent;
    font-size:.78rem; font-weight:600; cursor:pointer;
    transition:background var(--t-fast) var(--ease),
               border-color var(--t-fast) var(--ease),
               color var(--t-fast) var(--ease),
               box-shadow var(--t-base) var(--ease);
}

.wizard-step-num  { font-size:.64rem; font-weight:800; letter-spacing:.06em; line-height:1; }
.wizard-step-label {
    font-size:.7rem; font-weight:600; max-width:96px;
    white-space:nowrap; overflow:hidden;
    text-overflow:ellipsis; text-align:center; line-height:1.2;
}

.wizard-arrow { flex-shrink:0; font-size:.95rem; opacity:.4; margin:0 2px; }

/* ── Form step visibility — DO NOT CHANGE ── */
.form-step { display:none !important; }
.form-step.is-active {
    display:block !important;
    animation:stepIn 230ms var(--ease-out) both;
}

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

/* ── Form step inner ── */
.form-step { padding:32px 28px; }

.form-step h2 {
    display:flex; align-items:center; gap:10px;
    font-size:1.45rem; font-weight:700;
    margin-bottom:24px; padding-bottom:16px;
    letter-spacing:-.025em; line-height:1.2;
}

.step-icon { font-size:1.15rem; line-height:1; flex-shrink:0; }

.step-optional, .step-premium {
    margin-left:auto; font-size:.68rem; font-weight:700;
    letter-spacing:.06em; text-transform:uppercase;
    padding:3px 10px; border-radius:var(--r-pill); flex-shrink:0;
}

.form-step h3 { font-size:1rem; font-weight:600; margin:22px 0 12px; }

/* Hint bar */
.form-step > p.help-text:first-of-type {
    margin-bottom:22px; padding:11px 14px 11px 16px;
    border-radius:0 var(--r-sm) var(--r-sm) 0;
    font-size:.875rem; line-height:1.55;
}

.help-text { font-size:.875rem; line-height:1.55; }
.inline-hint { margin-top:8px; }

/* ── Form groups ── */
.form-group { margin-bottom:20px; }

.form-group label {
    display:block; margin-bottom:7px;
    font-weight:700; font-size:.72rem;
    letter-spacing:.065em; text-transform:uppercase;
}

.required-star { color:#e53e3e; margin-left:1px; }
.label-optional {
    font-weight:500; text-transform:none;
    letter-spacing:0; font-size:.78rem; opacity:.55;
}

/* ── Input icon wrapper ── */
.ifield { position:relative; }
/* Higher specificity (2 classes + 1 el) beats .form-group input (1 class + 1 el) */
.form-group .ifield input,
.form-group .ifield textarea { padding-left:42px; }

.ifield::before {
    content:''; position:absolute;
    left:14px; top:50%; transform:translateY(-50%);
    width:15px; height:15px;
    background-position:center; background-repeat:no-repeat; background-size:15px 15px;
    pointer-events:none; z-index:2; opacity:.3;
    transition:opacity var(--t-fast) var(--ease),
               filter var(--t-fast) var(--ease);
}
.ifield:focus-within::before { opacity:.55; }

/* Person icon */
.ifield-person::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='5' r='3' stroke='%23444' stroke-width='1.4'/%3E%3Cpath d='M2.5 13.5c0-3 2.5-5 5.5-5s5.5 2 5.5 5' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Email icon */
.ifield-email::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='4' width='12' height='9' rx='1.2' stroke='%23444' stroke-width='1.4'/%3E%3Cpath d='M2 6l6 4 6-4' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Phone icon */
.ifield-phone::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 2.5h3l1 2.5-1.5 1c.5 1.5 1.5 2.5 3 3l1-1.5 2.5 1V11a1 1 0 0 1-1 1C6 12 3 8 3 3.5a1 1 0 0 1 1-1h.5z' stroke='%23444' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Briefcase / work icon */
.ifield-work::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='6' width='12' height='8' rx='1.2' stroke='%23444' stroke-width='1.4'/%3E%3Cpath d='M5.5 6V4.5A1.5 1.5 0 0 1 7 3h2a1.5 1.5 0 0 1 1.5 1.5V6' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Location pin */
.ifield-location::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 2a4 4 0 0 1 4 4c0 3-4 8-4 8S4 9 4 6a4 4 0 0 1 4-4z' stroke='%23444' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='6' r='1.2' fill='%23444'/%3E%3C/svg%3E"); }

/* Link icon */
.ifield-link::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.5 9.5A3.5 3.5 0 0 0 9.5 13l.5.5a3.5 3.5 0 0 0 5-5L14 8' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M9.5 6.5A3.5 3.5 0 0 0 6.5 3l-.5-.5a3.5 3.5 0 0 0-5 5L2 8' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M6 10l4-4' stroke='%23444' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ── Inputs ── */
.form-group input,
.form-group textarea,
.form-group select {
    width:100%;
    padding:12px 15px;
    font-size:.95rem; line-height:1.5;
    border-radius:var(--r-sm);
    border:1.5px solid transparent;
    background:#fff;
    -webkit-appearance:none; appearance:none;
    transition:border-color var(--t-fast) var(--ease),
               box-shadow var(--t-fast) var(--ease),
               background var(--t-fast) var(--ease),
               border-left-color var(--t-fast) var(--ease);
}

.form-group textarea { resize:vertical; min-height:110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { opacity:.35; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline:none; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Checkbox */
.checkbox-label {
    display:flex; align-items:flex-start; gap:10px; cursor:pointer;
    font-weight:600 !important; text-transform:none !important;
    letter-spacing:0 !important; font-size:.9rem !important;
}
.checkbox-label input[type="checkbox"] { margin-top:3px; flex-shrink:0; }

/* ── Skill input group ── */
.skill-input-group {
    display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px;
}
.skill-input-group input { flex:1; min-width:140px; }
.skill-input-group select { width:auto; padding-right:30px; }

.skill-input-group button {
    flex-shrink:0; padding:12px 22px;
    font-size:.875rem; font-weight:600;
    border:none; border-radius:var(--r-sm);
    cursor:pointer; white-space:nowrap;
    transition:filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.skill-input-group button:hover  { filter:brightness(1.1); transform:translateY(-1px); }
.skill-input-group button:active { transform:translateY(0); }

.skills-group-label {
    width:100%; margin-top:16px; margin-bottom:6px;
    font-size:.7rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}

/* ── Tags ── */
.tags-container { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

.tag {
    display:inline-flex; align-items:center; gap:6px;
    padding:6px 13px; border-radius:var(--r-pill);
    font-size:.84rem; font-weight:500; border:1px solid transparent;
    transition:background var(--t-fast) var(--ease),
               border-color var(--t-fast) var(--ease),
               transform var(--t-fast) var(--ease),
               box-shadow var(--t-fast) var(--ease);
}
.tag[role="button"] { cursor:pointer; }
.tag[role="button"]:hover  { transform:translateY(-1px); }
.tag[role="button"]:active { transform:translateY(0); }
.tag[role="button"]:focus  { outline:none; }

.tag-remove {
    background:none; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    width:16px; height:16px; border-radius:50%;
    font-size:14px; line-height:1; padding:0; flex-shrink:0;
    transition:color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.tag-add {
    border:none; width:20px; height:20px;
    border-radius:var(--r-xs); cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    font-weight:800; font-size:12px; line-height:1; flex-shrink:0; color:#fff;
    transition:filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tag-add:hover  { filter:brightness(1.12); transform:scale(1.1); }
.tag-add:active { transform:scale(1); }

/* ── Buttons ── */
.btn-primary, .btn-secondary, .btn-ai, .btn-danger {
    display:inline-flex; align-items:center; justify-content:center;
    gap:8px; padding:13px 26px;
    font-size:.95rem; font-weight:600;
    border:none; border-radius:var(--r-pill);
    cursor:pointer; white-space:nowrap;
    transition:transform var(--t-base) var(--ease),
               box-shadow var(--t-base) var(--ease),
               filter var(--t-fast) var(--ease),
               background var(--t-fast) var(--ease),
               border-color var(--t-fast) var(--ease);
}

.btn-primary { width:100%; font-size:1rem; font-weight:700; }
.btn-primary:hover  { transform:translateY(-2px); }
.btn-primary:active { transform:translateY(0); }
.btn-primary[disabled] { opacity:.45; cursor:not-allowed; transform:none !important; }

.btn-secondary { border-width:1.5px; border-style:solid; }
.btn-secondary:hover  { transform:translateY(-1px); }
.btn-secondary:active { transform:translateY(0); }

.btn-add { margin-top:4px; font-size:.9rem; padding:11px 22px; }

.btn-ai {
    color:#fff; margin-top:12px;
    position:relative; overflow:hidden;
}
.btn-ai::before {
    content:''; position:absolute;
    top:-50%; left:-60%; width:40%; height:200%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
    transform:skewX(-18deg);
    transition:left .6s var(--ease);
    pointer-events:none;
}
.btn-ai:hover::before { left:160%; }
.btn-ai:hover  { transform:translateY(-2px); }
.btn-ai:active { transform:translateY(0); }

.btn-danger { color:#fff; margin-top:10px; }
.btn-danger:hover  { transform:translateY(-1px); filter:brightness(1.08); }
.btn-danger:active { transform:translateY(0); }

.btn-mini { padding:8px 18px; font-size:.82rem; margin-top:0; }
.btn-nav  { min-width:130px; }

/* ── AI Suggestions ── */
.suggestions-wrap {
    margin-top:14px; border-radius:var(--r-md);
    overflow:hidden; display:none; /* shown by JS */
}
.suggestions-header {
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:11px 16px; flex-wrap:wrap;
}
.suggestions-title { font-weight:700; font-size:.875rem; }
.suggestions-actions { display:inline-flex; gap:8px; }

.suggestion-text {
    font-size:.9rem; line-height:1.65;
    white-space:pre-wrap; padding:16px;
}

/* ── Entry cards ── */
.experience-item, .education-item {
    padding:20px 22px; border-radius:var(--r-md);
    margin-bottom:14px;
    transition:box-shadow var(--t-base) var(--ease),
               border-color var(--t-fast) var(--ease),
               border-left-color var(--t-fast) var(--ease);
}

/* ── Wizard nav ── */
.wizard-nav {
    display:flex; justify-content:space-between; align-items:center;
    gap:12px; padding:16px 28px 22px;
}
.wizard-nav button { min-width:130px; }
.wizard-nav #wizardPrev[disabled],
.wizard-nav #wizardNext[disabled] {
    opacity:.28; cursor:not-allowed;
    transform:none !important; box-shadow:none !important; filter:none !important;
}

/* ════════════════════════════════════════
   DOWNLOAD STEP
════════════════════════════════════════ */
.download-products {
    margin-bottom:22px; border-radius:var(--r-lg); overflow:hidden;
}

.download-products-title {
    padding:13px 20px; font-size:.71rem;
    font-weight:800; letter-spacing:.07em; text-transform:uppercase;
}

.download-product {
    display:grid;
    grid-template-columns:auto auto 1fr auto;
    gap:0 16px; align-items:center;
    padding:18px 20px; cursor:pointer;
    position:relative;
    transition:background var(--t-fast) var(--ease),
               box-shadow var(--t-fast) var(--ease);
}

.download-product input[type="radio"] {
    position:absolute; opacity:0; width:0; height:0; pointer-events:none;
}

/* Custom radio dot */
.download-product::before {
    content:''; width:20px; height:20px; flex-shrink:0;
    border-radius:50%; border:2px solid transparent;
    transition:background var(--t-base) var(--ease-spring),
               border-color var(--t-base) var(--ease),
               transform var(--t-base) var(--ease-spring);
}

.download-product-icon {
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:var(--r-md);
    flex-shrink:0; transition:background var(--t-fast) var(--ease);
}

.download-product-body { min-width:0; }
.download-product-main { font-weight:700; font-size:.95rem; }
.download-product-desc { font-size:.8rem; margin-top:3px; }

.download-product-meta-wrap {
    display:flex; flex-direction:column; align-items:flex-end; gap:5px;
}
.download-product-meta {
    font-size:.88rem; font-weight:800;
    padding:5px 14px; border-radius:var(--r-pill); white-space:nowrap;
}
.download-product-badge {
    font-size:.64rem; font-weight:800; letter-spacing:.05em;
    text-transform:uppercase; padding:3px 9px; border-radius:var(--r-pill);
}

.download-hint {
    padding:12px 20px 14px; font-size:.83rem;
    display:flex; align-items:center; gap:7px;
}
.download-email-hint {
    display:flex; align-items:center; gap:6px;
    margin-top:12px; font-size:.83rem; justify-content:center;
}

.form-actions { padding:0; }

.btn-download {
    height:58px; font-size:1.06rem; font-weight:700;
    position:relative; overflow:hidden;
}

/* Gold shimmer on download button */
.btn-download::after {
    content:''; position:absolute;
    top:0; left:-120%; width:50%; height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
    transform:skewX(-18deg);
    animation:btnShimmer 3.2s ease 1s infinite;
    pointer-events:none;
}
@keyframes btnShimmer {
    0%   { left:-120%; }
    40%  { left:160%; }
    100% { left:160%; }
}

/* ════════════════════════════════════════
   PREVIEW PANEL
════════════════════════════════════════ */
.preview-container {
    position:sticky; top:20px;
    border-radius:var(--r-xl); overflow:hidden; min-width:0;
    display:flex; flex-direction:column;
    max-height:calc(100vh - 40px);
}

.preview-header { flex-shrink:0; }

#previewTitle {
    display:flex; align-items:center; gap:10px;
    font-size:.78rem; font-weight:700;
    padding:16px 22px;
    letter-spacing:.04em; text-transform:uppercase; margin:0;
}

.preview-body { flex:1; overflow-y:auto; scrollbar-width:thin; }

.preview-footer {
    flex-shrink:0; display:flex; align-items:center;
    gap:6px; padding:10px 22px; font-size:.78rem;
}

/* ── CV Preview — ATS Arial — DO NOT change font ── */
.cv-preview {
    padding:24px; min-height:300px;
    font-family:Arial,Helvetica,sans-serif;
    font-size:11.5px; line-height:1.45; color:#111;
    user-select:none; -webkit-user-select:none; position:relative;
}
.cv-preview::after {
    content:''; position:absolute; inset:0;
    background:transparent; pointer-events:none; z-index:1;
}
.cv-preview *, .cv-preview *::before, .cv-preview *::after {
    user-select:none !important; -webkit-user-select:none !important;
}
.cv-preview .cv-name {
    font-family:Arial,Helvetica,sans-serif; font-size:15pt; font-weight:700;
    text-transform:uppercase; letter-spacing:.015em; color:#000; margin-bottom:4px;
}
.cv-preview .cv-contact {
    font-family:Arial,Helvetica,sans-serif; font-size:10.5pt; color:#444; margin-bottom:12px;
}
.cv-preview .cv-section { margin-top:12px; }
.cv-preview .cv-section-title {
    font-family:Arial,Helvetica,sans-serif; font-weight:700; font-size:10pt;
    text-transform:uppercase; letter-spacing:.04em;
    margin-bottom:5px; padding-bottom:3px;
    border-bottom:1.5px solid #333; color:#000;
}
.cv-preview ul { margin-left:16px; margin-top:3px; }
.cv-preview li { margin-bottom:2px; }
.cv-preview .cv-skills-list {
    display:grid; grid-template-columns:1fr 1fr;
    gap:2px 20px; list-style:disc; padding-left:18px; margin:0;
}

.letter-preview {
    font-size:11.5px; line-height:1.55; color:#111827;
    user-select:none; -webkit-user-select:none; position:relative;
}
.letter-preview::after {
    content:''; position:absolute; inset:0;
    background:transparent; pointer-events:none; z-index:1;
}
.letter-preview *, .letter-preview *::before, .letter-preview *::after {
    user-select:none !important; -webkit-user-select:none !important;
}
.letter-line   { white-space:pre-wrap; margin:0; }
.letter-strong { font-weight:800; }
.letter-blank  { height:10px; }

/* Preview bump */
@keyframes previewBump {
    0%   { transform:translateX(0); }
    30%  { transform:translateX(-4px); }
    100% { transform:translateX(0); }
}
.cv-preview .cv-section.preview-bump {
    animation:previewBump 340ms var(--ease) both;
    border-radius:var(--r-xs); padding:5px 8px;
}

/* Account box */
.account-box {
    margin-top:16px; padding:16px;
    border-radius:var(--r-md); border:1.5px solid transparent;
}
.account-row {
    display:flex; gap:12px;
    align-items:center; justify-content:space-between; flex-wrap:wrap;
}
.account-status  { font-weight:600; font-size:.9rem; }
.account-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ════════════════════════════════════════
   FOOTER — compact, mobile-first
════════════════════════════════════════ */
footer {
    position:relative;
    padding:22px 20px 16px;
    overflow:hidden;
}
footer::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
}
.footer-inner { max-width:960px; margin:0 auto; }

/* Mobile: single column */
.footer-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    padding-bottom:14px;
    margin-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,.09);
}

/* ≥560px: side-by-side, equal halves */
@media (min-width:560px) {
    footer { padding:26px 32px 18px; }
    .footer-grid {
        grid-template-columns:1fr 1fr;
        gap:24px;
        align-items:center;
    }
}

/* Brand column */
.footer-brand-col {}

.footer-brand-name {
    display:inline-block;
    font-size:1.05rem;
    font-weight:700;
    letter-spacing:-.02em;
    line-height:1.15;
    margin-bottom:4px;
    text-decoration:none;
}

.footer-brand-tagline {
    display:block;
    font-size:.82rem;
    line-height:1.5;
    margin-bottom:10px;
    max-width:260px;
    opacity:.6;
}

.footer-feat-row {
    display:flex;
    flex-wrap:wrap;
    gap:3px 12px;
}

.footer-feat {
    font-size:.74rem;
    font-weight:500;
    opacity:.5;
    white-space:nowrap;
}

/* Contact column */
.footer-nav {
    display:flex;
    flex-direction:column;
    gap:4px;
}

.footer-contact-label {
    font-size:.66rem;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
    opacity:.32;
    margin-bottom:4px;
}

.footer-link {
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 10px;
    text-decoration:none;
    border-radius:var(--r-sm);
    border:1px solid transparent;
    transition:background 130ms var(--ease),
               border-color 130ms var(--ease),
               transform 130ms var(--ease);
}
.footer-link:hover  { transform:translateY(-1px); text-decoration:none; }
.footer-link:active { transform:translateY(0); }
.footer-link:focus-visible { outline:3px solid rgba(201,160,32,.4); outline-offset:2px; }

.footer-link-icon-wrap {
    width:28px; height:28px;
    border-radius:var(--r-xs);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}

.footer-ico { width:14px; height:14px; flex-shrink:0; }

.footer-link-info { min-width:0; flex:1; }

.footer-link-label {
    display:block;
    font-size:.62rem;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
    line-height:1;
    margin-bottom:1px;
    opacity:.5;
}

.footer-link-text {
    display:block;
    font-size:.86rem;
    font-weight:600;
    line-height:1.2;
}

/* Bottom bar */
.footer-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:6px;
}

.footer-copy { font-size:.76rem; margin:0; opacity:.5; }

.footer-bottom-right {
    display:flex; align-items:center; gap:8px;
}

.footer-powered {
    font-weight:600; font-size:.76rem;
    text-decoration:none;
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 10px; border-radius:var(--r-xs);
    transition:background 130ms, transform 130ms;
}
.footer-powered:hover { transform:translateY(-1px); }

footer #adminBtn.btn-secondary { margin-top:0; font-size:.74rem; padding:4px 10px; }

/* WhatsApp FAB */
.whatsapp-button {
    position:fixed;
    bottom:var(--wa-bottom); right:var(--wa-right);
    width:var(--wa-size); height:var(--wa-size);
    background:#25d366; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 16px rgba(37,211,102,.38); z-index:1000;
    transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-button:hover { transform:scale(1.1); box-shadow:0 6px 24px rgba(37,211,102,.55); }

/* ── JS-controlled — DO NOT TOUCH ── */
.u-hidden { display:none !important; }
.loading  { display:none; }
.suggestions-wrap { display:none; }
#logoutBtn, #loadCvBtn, #saveCvBtn, #adminBtn, #adminLogoutBtn { display:none; }
#coverOnlyQuickHint { margin-top:8px; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width:1100px) {
    .cv-layout { grid-template-columns:1fr; }
    .preview-container { position:static; order:2; max-height:none; }
    .preview-body { overflow-y:visible; }
}

@media (max-width:860px) {
    :root { --wa-right:16px; --wa-bottom:16px; --wa-size:50px; }
    body { padding:10px; }
    header { padding:20px 20px 0; }

    .trust-strip { padding:9px 20px 11px; }

    .header-brand { flex-direction:column; align-items:flex-start; gap:16px; padding-bottom:22px; }
    .brand-logo { width:68px; height:68px; }
    .header-geo-svg { display:none; }

    .how-it-works { flex-direction:column; }
    .hiw-arrow { transform:rotate(90deg); padding:4px 0; }
    .hiw-step { width:100%; }

    main { padding:16px; }
    .cv-layout { gap:16px; }
    .form-step { padding:24px 20px; }
    .form-row { grid-template-columns:1fr; gap:0; }

    .skill-input-group { flex-direction:column; gap:10px; }
    .skill-input-group button { width:100%; }

    .wizard-nav { flex-direction:column; align-items:stretch; padding:14px 20px 18px; }
    .wizard-nav button { width:100%; min-width:0; }

    .btn-cta { width:100%; justify-content:center; }
    .header-cta { flex-direction:column; width:100%; }

    .cv-preview { font-size:11px; padding:16px; }
    .cv-preview .cv-skills-list { grid-template-columns:1fr; }

    .suggestions-header { flex-wrap:wrap; }
    .suggestions-actions { width:100%; flex-wrap:wrap; }

    .footer-link { width:100%; }
    .footer-nav { min-width:0; }
    .footer-bottom { flex-direction:column; align-items:flex-start; gap:5px; }
    .footer-bottom-right { flex-wrap:wrap; gap:5px; }

    .download-product { grid-template-columns:auto 1fr auto; }
    .download-product-icon { display:none; }

    .trust-dot { display:none; }
    .trust-strip { flex-direction:column; align-items:flex-start; gap:8px; }
    .trust-item { opacity:.55; }
}

@media (max-width:500px) {
    body { padding:6px; }
    .brand-text h1 { font-size:1.65rem; }
    .pill { font-size:.7rem; padding:3px 9px; }
    .wizard-step { min-width:72px; padding:7px 10px; }
    header { padding:16px 14px 0; }
    .trust-strip { display:none; }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}
