/* ==========================================================================
   TRAKTOFY — form.css
   Estilo compartilhado para formulários públicos (questionário, atualização, etc.)
   Design System TRAKTOFY — Preto profundo & Dourado metálico.
   ========================================================================== */

/* Prevenir zoom automático em inputs no mobile */
@media screen and (max-width: 768px) {
    select,
    textarea,
    input[type="text"],
    input[type="password"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="date"],
    input[type="month"],
    input[type="time"],
    input[type="week"],
    input[type="number"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    input[type="tel"] {
        font-size: 16px !important;
    }
}

:root {
    /* Paleta da marca */
    --bg:        #0a0805;
    --bg-2:      #080706;
    --surface:   #13100c;
    --surface-2: #1c1813;
    --fg:        #f0ede4;
    --muted:     #c8c0a8;
    --faint:     #b0a860;
    --border:    #3d2e14;
    --border-soft: rgba(var(--gold-rgb),.22);
    --border-strong: #6a5224;

    --gold:        #f0c040;
    --gold-bright: #ffd700;
    --gold-deep:   #c9921a;
    --gold-rgb:    240, 192, 64;

    --success: #6fb98c;
    --danger:  #d96b5c;
    --focus:   #ffd700;

    --input-bg: #0a0906;
    --input-border: rgba(var(--gold-rgb),.60);

    /* borda dourada suave e sempre visível para cards de opção (padrão dos mockups) */
    --border-gold: rgba(var(--gold-rgb),.65);
    --border-gold-soft: rgba(var(--gold-rgb),.45);

    --grad-gold: linear-gradient(180deg,#fff4b0 0%,#f5d45a 13%,#e8b830 28%,#f0c040 42%,#c9921a 56%,#a66e14 70%,#e8b830 86%,#fff4b0 100%);
    --grad-gold-btn: linear-gradient(to bottom,#f5d45a 0%,#f0c040 35%,#c9921a 75%,#8a5e10 100%);
    --grad-gold-h: linear-gradient(100deg,#a66e14 0%,#e8b830 26%,#fff4b0 52%,#e8b830 78%,#a66e14 100%);
    --r-sm:   10px;
    --r:      14px;
    --r-lg:   18px;
    --r-pill: 999px;

    --display: 'Oswald','Arial Narrow',Archivo,system-ui,sans-serif;
    --body: 'Poppins',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
    --serif: 'Cinzel',Georgia,'Times New Roman',serif;

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.4);
    --shadow-md: 0 4px 10px -2px rgba(0,0,0,.45), 0 0 0 1px rgba(var(--gold-rgb),.05);
    --shadow-lg: 0 10px 24px -4px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--gold-rgb),.06);

    --check-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1205' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5 11-11'/%3E%3C/svg%3E");
}

/* ==========================================================================
   TEMA CLARO (neutro) — formulários públicos
   ========================================================================== */
[data-theme="claro"] {
    --bg:        #f5f6f8;
    --bg-2:      #eceef2;
    --surface:   #ffffff;
    --surface-2: #f0f1f5;
    --fg:        #1c1e24;
    --muted:     #5b6270;
    --faint:     #8a8f9a;
    --border:    #d8dbe2;
    --border-soft: rgba(180,140,40,.22);
    --border-strong: #b8a458;

    --gold:        #b48c28;
    --gold-bright: #d4a838;
    --gold-deep:   #8a6a18;
    --gold-rgb:    180, 140, 40;

    --success: #2e8b57;
    --danger:  #c0392b;
    --focus:   #d4a838;

    --input-bg: #ffffff;
    --input-border: rgba(180,140,40,.55);
    --border-gold: rgba(180,140,40,.55);
    --border-gold-soft: rgba(180,140,40,.35);

    --grad-gold: linear-gradient(180deg,#f5e6b0 0%,#e8c870 13%,#d4a838 28%,#b48c28 42%,#8a6a18 56%,#6a5014 70%,#d4a838 86%,#f5e6b0 100%);
    --grad-gold-btn: linear-gradient(to bottom,#e8c870 0%,#b48c28 35%,#8a6a18 75%,#5a4010 100%);
    --grad-gold-h: linear-gradient(100deg,#8a6a18 0%,#d4a838 26%,#f5e6b0 52%,#d4a838 78%,#8a6a18 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.08);
    --shadow-md: 0 4px 10px -2px rgba(0,0,0,.10), 0 0 0 1px rgba(180,140,40,.05);
    --shadow-lg: 0 10px 24px -4px rgba(0,0,0,.12), 0 0 0 1px rgba(180,140,40,.06);
}

/* ==========================================================================
   TEMA ROSA (feminino) — formulários públicos
   ========================================================================== */
[data-theme="rosa"] {
    --bg:        #fdf5f7;
    --bg-2:      #f9e9ee;
    --surface:   #ffffff;
    --surface-2: #fceef3;
    --fg:        #3d2a32;
    --muted:     #8a6b76;
    --faint:     #b89aa3;
    --border:    #e9c9d2;
    --border-soft: rgba(214,51,108,.22);
    --border-strong: #d17896;

    --gold:        #d6336c;
    --gold-bright: #e64980;
    --gold-deep:   #b02555;
    --gold-rgb:    214, 51, 108;

    --success: #2e8b57;
    --danger:  #c0392b;
    --focus:   #e64980;

    --input-bg: #ffffff;
    --input-border: rgba(214,51,108,.55);
    --border-gold: rgba(214,51,108,.55);
    --border-gold-soft: rgba(214,51,108,.35);

    --grad-gold: linear-gradient(180deg,#ffd0e0 0%,#f783a8 13%,#e64980 28%,#d6336c 42%,#b02555 56%,#8a1d44 70%,#e64980 86%,#ffd0e0 100%);
    --grad-gold-btn: linear-gradient(to bottom,#f783a8 0%,#d6336c 35%,#b02555 75%,#7a1840 100%);
    --grad-gold-h: linear-gradient(100deg,#b02555 0%,#e64980 26%,#ffd0e0 52%,#e64980 78%,#b02555 100%);

    --shadow-sm: 0 1px 2px 0 rgba(176,37,85,.10);
    --shadow-md: 0 4px 10px -2px rgba(176,37,85,.12), 0 0 0 1px rgba(214,51,108,.05);
    --shadow-lg: 0 10px 24px -4px rgba(176,37,85,.14), 0 0 0 1px rgba(214,51,108,.06);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-y: auto;
    /* overflow-x no html (e não no body) — colocar overflow-x: hidden no body
       quebra position:fixed no iOS Safari, fazendo o fundo sumir/rolar. */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    padding: 24px 16px;
    /* Fundo preto base — a imagem vem do body::before (fixo, compatível com iOS) */
    background-color: #000000;
    text-size-adjust: 100%;
    overscroll-behavior-y: contain;
    -webkit-text-size-adjust: 100%;
}

button, a, input, select, textarea, [role="button"], label, .btn, .opt, .opt-num, .chk, .photo-card, .tarefa-acao, .kanban-card-action {
    touch-action: manipulation;
}

/* Camada de fundo fixa — funciona em iOS Safari, Android e desktop.
   (background-attachment: fixed é bugado/ignorado no iOS, então usamos
   um pseudo-elemento position:fixed que é suportado em todo lugar.)
   Notas de compatibilidade mobile:
   - top/right/bottom/left em vez de `inset` (Safari < 14.5 não suporta `inset`)
   - z-index: 0 (z-index negativo em pseudo-elemento do body é frágil em mobile)
   - background-size: cover no mobile via media query (contain deixa a imagem
     minúscula em telas retrato) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000000 url('../assets/img/background.webp') no-repeat center top / contain;
    pointer-events: none;
}
body::after {
    content: none;
}

/* Logo / header só na etapa de boas-vindas */
body:not(.is-step-welcome) .header {
    display: none;
}

/* No mobile (retrato) `contain` deixa a imagem minúscula — a largura da tela
   é pequena e a imagem é escalada para caber inteira, virando uma faixa no
   topo com o resto preto. Usamos `cover` para preencher a tela inteira. */
@media (max-width: 768px) {
    body::before {
        background-size: cover;
        background-position: center center;
    }
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* ==========================================================================
   Container / Card
   ========================================================================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    /* container totalmente transparente — só o background.png aparece atrás */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
    margin-bottom: 24px;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Cabeçalho com a marca
   ========================================================================== */
.header {
    text-align: center;
    padding: 44px 30px 28px;
    border-bottom: none;
    background: transparent;
    position: relative;
}

.header .brand-logo {
    width: 140px;
    max-width: 50%;
    height: auto;
    margin: 0 auto 14px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
    color: var(--gold);
}

.header .brand-logo-inline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .brand-logo-inline svg {
    width: 100%;
    height: auto;
    display: block;
}

.header .brand-logo-img {
    /* logo customizada via upload — mantém object-fit/filter do .brand-logo */
}

.header .brand-logo.brand-wordmark {
    width: auto; max-width: none; gap: 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.header .brand-wordmark-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 10px; background: var(--bg); border: 1px solid var(--gold-a25);
    font-family: var(--display); font-size: 1.5rem; font-weight: 700;
    color: var(--gold);
}

.header .brand-wordmark-text {
    font-family: var(--display); font-size: 1.5rem; font-weight: 600;
    letter-spacing: .06em; text-transform: lowercase;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.header h1 {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fg);
    margin-bottom: 6px;
}

.header p {
    font-family: var(--display);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ornamento divisório (flourish — ◈ entre duas réguas afiladas) */
.flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px auto 0;
    color: var(--gold);
    opacity: .85;
    max-width: 220px;
}
.flourish::before, .flourish::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 85%);
}
.flourish::after { background: linear-gradient(90deg, var(--gold) 15%, transparent); }
.flourish .dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.22), 0 0 8px rgba(var(--gold-rgb),.4);
}
/* ==========================================================================
   Progress Bar
   ========================================================================== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 28px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background .3s ease;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: var(--gold);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all .3s ease;
}

.progress-step.active .step-circle {
    background: var(--grad-gold-btn);
    color: #1a1205;
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 0 0 4px rgba(var(--gold-rgb),.18);
}

.progress-step.completed .step-circle {
    background: rgba(111,185,140,.15);
    color: var(--success);
    border-color: rgba(111,185,140,.5);
}

.progress-step.completed .step-circle::after {
    content: '\2713';
    position: absolute;
    font-size: 16px;
    font-weight: 700;
}

/* esconder o número quando concluído (mostra só o check) */
.progress-step.completed .step-circle {
    font-size: 0;
}

.step-label {
    font-family: var(--display);
    font-size: 11px;
    color: var(--faint);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color .3s ease;
}

.progress-step.active .step-label {
    color: var(--gold-bright);
    font-weight: 600;
}
.progress-step.completed .step-label {
    color: var(--success);
}

/* ==========================================================================
   Form Steps
   ========================================================================== */
form {
    padding: 40px 30px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.form-step {
    display: none;
    animation: fadeIn .5s ease;
}
.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    font-family: var(--display);
    color: var(--gold-bright);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
    background: var(--grad-gold-h);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,244,210,.20));
}

.step-description {
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.info-box {
    background: rgba(var(--gold-rgb),.06);
    border-left: 3px solid var(--gold);
    padding: 16px 18px;
    border-radius: var(--r-sm);
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--fg);
    line-height: 1.6;
}

.info-box strong { color: var(--gold-bright); }

/* ==========================================================================
   Form Groups
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Field / Label / Input — Design System
   ========================================================================== */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    width: 100%;
    max-width: 100%;
}
.field:last-child {
    margin-bottom: 0;
}

.field label,
.form-group > label,
label.field-label {
    font-family: var(--display);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
}

/* input nativo estilizado (mantém semântica) */
.input,
input[type="text"].input,
input[type="number"].input,
input[type="time"].input,
input[type="email"].input,
input[type="tel"].input,
input[type="date"].input,
textarea.input {
    font-family: var(--body);
    font-size: 15px;
    color: var(--fg);
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--r);
    padding: 13px 15px;
    width: 100%;
    max-width: 100%;
    transition: border-color .18s, box-shadow .18s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
    line-height: 1.4;
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--faint);
}
.input:hover,
input[type="text"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="time"]:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--gold-deep);
}

.input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="time"]:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.20), 0 0 14px rgba(var(--gold-rgb),.10);
    outline: none;
}

.input[aria-invalid="true"],
.form-group.error .input,
.field.error .input {
    border-color: var(--danger);
}
.input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(217,107,92,.18);
}

/* Corrige fundo branco do autocomplete do navegador nos formulários públicos */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active,
.input:autofill,
.input:autofill:hover,
.input:autofill:focus,
.input:autofill:active,
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:active,
input[type="text"]:autofill,
input[type="text"]:autofill:hover,
input[type="text"]:autofill:focus,
input[type="text"]:autofill:active,
input[type="number"]:-webkit-autofill,
input[type="number"]:-webkit-autofill:hover,
input[type="number"]:-webkit-autofill:focus,
input[type="number"]:-webkit-autofill:active,
input[type="number"]:autofill,
input[type="number"]:autofill:hover,
input[type="number"]:autofill:focus,
input[type="number"]:autofill:active,
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:active,
input[type="email"]:autofill,
input[type="email"]:autofill:hover,
input[type="email"]:autofill:focus,
input[type="email"]:autofill:active,
input[type="tel"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill:hover,
input[type="tel"]:-webkit-autofill:focus,
input[type="tel"]:-webkit-autofill:active,
input[type="tel"]:autofill,
input[type="tel"]:autofill:hover,
input[type="tel"]:autofill:focus,
input[type="tel"]:autofill:active,
input[type="date"]:-webkit-autofill,
input[type="date"]:-webkit-autofill:hover,
input[type="date"]:-webkit-autofill:focus,
input[type="date"]:-webkit-autofill:active,
input[type="date"]:autofill,
input[type="date"]:autofill:hover,
input[type="date"]:autofill:focus,
input[type="date"]:autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
textarea:autofill,
textarea:autofill:hover,
textarea:autofill:focus,
textarea:autofill:active {
    -webkit-text-fill-color: var(--fg) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    background-color: var(--input-bg) !important;
    color: var(--fg) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group.error .opt,
.field.error .opt {
    border-color: var(--danger);
}

textarea.input {
    resize: vertical;
    min-height: 100px;
}

input[type="time"].input {
    min-width: 0;
    flex-shrink: 1;
    color-scheme: dark;
}

.outros-input {
    margin-top: 10px;
}

.field .err,
.error-message {
    font-size: 12px;
    color: var(--danger);
    display: none;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}
.field.has-error .err,
.form-group.error .error-message,
.field.error .error-message,
.chk-grid.error .error-message,
.opt-group.error .error-message,
.opt-num-grid.error .error-message,
.opt-num-group.error .error-message,
[data-min].error .error-message,
[data-max].error .error-message {
    display: block;
}

.field .hint {
    font-size: 12px;
    color: var(--faint);
}

/* ==========================================================================
   OPTION CARD — radio customizado (Design System .opt)
   Card horizontal com ícone opcional, título, descrição e chevron
   ========================================================================== */
.opt-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opt {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--r);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s, color .18s;
    user-select: none;
    position: relative;
}

.opt:hover {
    border-color: var(--gold);
    background: var(--surface-2);
}

.opt input[type="radio"],
.opt input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* estado ativo = borda 1.5px dourada viva + halo + sombra */
.opt:has(input:checked),
.opt.active {
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.30), 0 0 16px rgba(var(--gold-rgb),.18), 0 8px 22px rgba(0,0,0,.4);
    background: var(--surface-2);
}

/* selo de check no canto superior direito para reforçar seleção */
.opt::after,
.opt-num::after,
.photo-card::after {
    content: '\2714';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #1a1205;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 0 8px rgba(var(--gold-rgb),.45);
    z-index: 2;
}

.opt:has(input:checked)::after,
.opt.active::after,
.opt-num:has(input:checked)::after,
.opt-num.active::after,
.photo-card:has(input:checked)::after,
.photo-card.active::after {
    opacity: 1;
    transform: scale(1);
}

.opt .ic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold);
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--gold-rgb),.12) 0%, transparent 70%),
        var(--input-bg);
    box-shadow: inset 0 0 8px rgba(0,0,0,.5);
    transition: background .18s ease, box-shadow .18s ease;
}
.opt:has(input:checked) .ic,
.opt.active .ic {
    background: var(--grad-gold);
    color: #1a1205;
    box-shadow: 0 0 10px rgba(var(--gold-rgb),.4);
}
.opt .ic svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(var(--gold-rgb),.25));
}
/* Ícones fill-based (assets/icons/svg) — sobrescreve o stroke padrão acima */
.opt .ic svg.opt-icon {
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
    filter: none;
}

/*
 * Ícones que já trazem anel circular no próprio SVG (ex: 003, 008, 012, 019).
 * Remove a borda/fundo do container para não ficar “círculo dentro de círculo”
 * e amplia o desenho para ocupar o espaço do selo.
 */
.opt .ic.has-ring {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.opt:has(input:checked) .ic.has-ring,
.opt.active .ic.has-ring {
    background: transparent;
    color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(var(--gold-rgb),.35);
    filter: drop-shadow(0 0 4px rgba(var(--gold-rgb),.35));
}
.opt .ic.has-ring svg,
.opt .ic.has-ring svg.opt-icon {
    width: 40px;
    height: 40px;
}

.opt .txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.opt .ttl {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: .06em;
    color: var(--gold);
    line-height: 1.25;
    transition: color .18s ease;
}
.opt:has(input:checked) .ttl,
.opt.active .ttl {
    color: var(--gold-bright);
}
.opt .desc {
    display: block;
    font-size: 12.5px;
    color: var(--gold-bright);
    opacity: .7;
    line-height: 1.4;
    margin-top: 3px;
}

.opt .arr {
    color: var(--gold);
    font-size: 22px;
    flex: none;
    line-height: 1;
    transition: transform .18s ease, color .18s ease;
}
.opt:has(input:checked) .arr,
.opt.active .arr {
    transform: translateX(2px);
    color: var(--gold-bright);
}

/* variante sem ícone (texto simples) */
.opt.text-only .ic { display: none; }
.opt.text-only { gap: 12px; }

/* variante compacta (só texto, sem chevron) */
.opt.compact { padding: 12px 14px; }
.opt.compact .arr { display: none; }
.opt.compact .ttl { font-size: 14px; }

/* ==========================================================================
   CHECKBOX ROW — Design System .chk
   Linha com ícone pequeno, label e caixa de seleção customizada
   ========================================================================== */
.chk-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 11px;
}

.chk {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--r);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    user-select: none;
    position: relative;
}

.chk:hover {
    border-color: var(--gold);
    background: var(--surface-2);
}

.chk input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.chk:has(input:checked),
.chk.active {
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.25), 0 0 14px rgba(var(--gold-rgb),.15);
    background: var(--surface-2);
}

.chk .ic-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.3px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--gold-rgb),.12) 0%, transparent 70%),
        var(--input-bg);
    box-shadow: inset 0 0 8px rgba(0,0,0,.5);
}
.chk .ic-sm svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(var(--gold-rgb),.25));
}

.chk .lab {
    flex: 1;
    font-family: var(--display);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--gold-bright);
    line-height: 1.2;
}

/* caixa de marcação customizada (substitui o checkbox nativo) */
.box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1.5px solid var(--gold);
    flex: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: var(--input-bg);
    box-shadow: inset 0 0 6px rgba(0,0,0,.5);
    transition: background .18s ease, box-shadow .18s ease;
}
.box svg {
    width: 14px;
    height: 14px;
    stroke: #241a05;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: none;
}
/* estado ligado = gradiente dourado metálico + check visível */
.chk:has(input:checked),
.chk.active {
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.25), 0 0 14px rgba(var(--gold-rgb),.15);
    background: var(--surface-2);
}
.chk:has(input:checked) .ic-sm,
.chk.active .ic-sm {
    background: var(--grad-gold);
    color: #1a1205;
    box-shadow: 0 0 10px rgba(var(--gold-rgb),.4);
}
.chk:has(input:checked) .lab,
.chk.active .lab {
    color: var(--gold-bright);
}
.chk:has(input:checked) .box,
.chk.active .box {
    background: var(--grad-gold);
    box-shadow: 0 0 8px rgba(var(--gold-rgb),.4);
}
.chk:has(input:checked) .box svg,
.chk.active .box svg {
    display: block;
}

/* variante sem ícone */
.chk.text-only .ic-sm { display: none; }
.chk.text-only { gap: 10px; }

/* ==========================================================================
   NUMBERED OPTION GRID — Design System .opt-num
   Grade de seleção numérica (dias, horas, etc.)
   ========================================================================== */
.opt-num-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.opt-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--r);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s;
    user-select: none;
    position: relative;
}
.opt-num input[type="radio"],
.opt-num input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.opt-num:hover {
    border-color: var(--gold);
}

.opt-num:has(input:checked),
.opt-num.active {
    border: 1.5px solid var(--gold);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.30), 0 0 14px rgba(var(--gold-rgb),.18), 0 8px 22px rgba(0,0,0,.4);
}
.opt-num .nic {
    color: var(--gold);
    margin-bottom: 4px;
    transition: color .18s ease;
}
.opt-num:has(input:checked) .nic,
.opt-num.active .nic {
    color: var(--gold-bright);
}
.opt-num .nic svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.opt-num .nic svg.opt-num-icon {
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
}

.opt-num b {
    font-family: var(--display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--fg);
    transition: color .18s ease, filter .18s ease;
}

.opt-num:has(input:checked) b,
.opt-num.active b {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.35)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

/* variante gold = número em gradiente dourado metálico */
.opt-num.gold b {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.35)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

.opt-num span {
    font-family: var(--display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--gold-bright);
    opacity: .8;
    text-transform: uppercase;
    margin-top: 2px;
    transition: color .18s ease;
}
.opt-num:has(input:checked) span,
.opt-num.active span {
    color: var(--gold-bright);
    opacity: 1;
}

/* ==========================================================================
   CUSTOM SELECT — dropdown construído do zero (sem <select> nativo)
   ========================================================================== */
.select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 15px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--r);
    color: var(--fg);
    font-family: var(--body);
    font-size: 15px;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
    min-height: 44px;
    box-sizing: border-box;
    text-align: left;
}
.select-trigger:hover {
    border-color: var(--gold-deep);
}

.select.open .select-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb),.18);
}

.select-trigger .select-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-trigger .select-value.is-placeholder {
    color: var(--faint);
}

.select-trigger .select-caret {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--gold);
    transition: transform .2s ease;
}
.select.open .select-caret {
    transform: rotate(180deg);
}
.select-trigger .select-caret svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.select-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: var(--r);
    box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(var(--gold-rgb),.10);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: 280px;
    overflow-y: auto;
}
.select.open .select-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    color: var(--fg);
    font-family: var(--body);
    font-size: 14px;
    transition: background .14s ease, color .14s ease;
    border-bottom: 1px solid rgba(var(--gold-rgb),.06);
}
.select-option:last-child { border-bottom: none; }
.select-option:hover {
    background: rgba(var(--gold-rgb),.08);
    color: var(--gold-bright);
}

.select-option.selected {
    background: rgba(var(--gold-rgb),.12);
    color: var(--gold);
    font-weight: 600;
}

.select-option .check {
    width: 16px;
    height: 16px;
    color: var(--gold);
    opacity: 0;
    flex: none;
}
.select-option.selected .check { opacity: 1; }
.select-option .check svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* scroll bar dourada no painel */
.select-panel::-webkit-scrollbar { width: 8px; }
.select-panel::-webkit-scrollbar-track { background: var(--bg); }
.select-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.select-panel::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ==========================================================================
   File Upload
   ========================================================================== */
input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    border-radius: var(--r-sm);
    overflow: hidden;
    max-width: 200px;
}

.file-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Success Message (caixa final antes do envio)
   ========================================================================== */
.success-message {
    background: linear-gradient(135deg, rgba(var(--gold-rgb),.12) 0%, rgba(166,124,30,.08) 100%);
    border: 1px solid var(--border-soft);
    color: var(--fg);
    padding: 24px;
    border-radius: var(--r);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-gold-h);
    border-radius: var(--r) var(--r) 0 0;
    opacity: .7;
}

.success-message h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.success-message p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.success-message strong {
    color: var(--gold-bright);
}

/* ==========================================================================
   Botões — sistema unificado da marca
   Base: contorno dourado, fundo transparente
   Primário: gradiente dourado metálico preenchido
   ========================================================================== */
.form-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 20px;
    padding-top: 25px;
    border-top: none;
}

/* Largura mínima consistente para os botões de navegação em desktop —
   garante que o CTA mantenha o mesmo tamanho em todas as etapas,
   independente do texto (SIM VAMOS LÁ / PRÓXIMO PASSO / CONCLUÍDO).
   No mobile o .btn já é width:100% via media query abaixo. */
@media (min-width: 769px) {
    .form-navigation .btn {
        min-width: 260px;
    }
}

/* Botão "voltar" — texto discreto embaixo do botão principal */
.btn-back {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 20px;
    letter-spacing: .02em;
    opacity: .7;
    transition: opacity .2s, color .2s;
    text-transform: lowercase;
    order: 2;
}
.btn-back:hover {
    opacity: 1;
    color: var(--gold);
}
#nextBtn, #submitBtn { order: 1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 1.5px solid var(--gold);
    border-radius: 6px;
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    color: var(--gold);
    transition: filter .15s ease, background .15s ease, border-color .15s ease,
                color .15s ease, box-shadow .15s ease, transform .12s ease;
    text-decoration: none;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.btn:hover {
    background: rgba(var(--gold-rgb),.10);
    color: var(--gold);
    text-decoration: none;
}

.btn:active { transform: translateY(2px); }

.btn:disabled,
.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: saturate(.5);
}

/* Primário = CTA dourado metálico preenchido */
.btn-primary {
    background: var(--grad-gold-btn);
    color: #1a1205;
    font-weight: 600;
    border-color: var(--gold);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 4px 6px rgba(0,0,0,.3), 0 0 18px rgba(var(--gold-rgb),.25);
}
.btn-primary::before {
    content: "";
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg,rgba(255,255,255,.30),transparent 40%);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    background: var(--grad-gold-btn);
    filter: brightness(1.1);
    color: #1a1205;
    text-decoration: none;
}
.btn-primary:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,.3), 0 2px 3px rgba(0,0,0,.3);
}

/* Secundário = contorno dourado */
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-secondary:hover {
    background: rgba(var(--gold-rgb),.10);
    color: var(--gold);
    text-decoration: none;
}

/* Success = contorno verde, preenchido no hover */
.btn-success {
    background: transparent;
    color: var(--success);
    border-color: var(--success);
    display: none;
    font-weight: 600;
    animation: pulse 2.5s infinite;
}
.btn-success:hover {
    background: var(--success);
    color: #06140c;
    font-weight: 600;
    text-decoration: none;
}
.btn-success:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,.3);
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(111,185,140,.4); }
    50%  { box-shadow: 0 0 0 8px rgba(111,185,140,0); }
    100% { box-shadow: 0 0 0 0 rgba(111,185,140,0); }
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */
.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(217,107,92,.15);
}

.form-group.error .error-message {
    display: block;
}

/* ==========================================================================
   Rodapé da marca
   ========================================================================== */
.form-footer {
    text-align: center;
    padding: 22px 30px 28px;
    border-top: none;
    background: transparent;
}

.form-footer .brand-mark {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: .14em;
    opacity: 0.7;
    background: var(--grad-gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,244,210,.20));
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    body { padding: 12px; }
    .container { width: 100%; }
    .header { padding: 32px 20px 22px; }
    .header .brand { font-size: 1.4rem; }
    .header h1 { font-size: 1.15rem; }
    .header p { font-size: 0.78rem; }
    .progress-bar { padding: 20px 10px; justify-content: flex-start; }
    .progress-step { min-width: 60px; }
    .step-circle { width: 35px; height: 35px; font-size: 13px; }
    .step-label { font-size: 10px; }
    form { padding: 30px 20px; padding-bottom: 25px; }
    .form-step h2 { font-size: 1.15rem; }
    .step-description { font-size: 0.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-navigation { flex-direction: column; }
    .btn { width: 100%; }
    .form-navigation { gap: 10px; margin-bottom: 18px; }
}

@media (max-width: 480px) {
    body { padding: 8px; }
    .container { width: calc(100% - 16px); border-radius: var(--r); }
    .header { padding: 26px 16px 20px; }
    .header .brand { font-size: 1.2rem; }
    .header h1 { font-size: 1.05rem; }
    .header p { font-size: 0.72rem; }
    .progress-step { min-width: 50px; }
    .step-circle { width: 30px; height: 30px; font-size: 12px; }
    .step-label { font-size: 9px; }
    form { padding: 22px 16px; padding-bottom: 18px; }
    .form-step h2 { font-size: 1.05rem; }
    .info-box { font-size: 0.82rem; padding: 13px 14px; }
    input[type="text"],
    input[type="number"],
    input[type="time"],
    textarea,
    select {
        padding: 12px 14px;
        font-size: 16px;
    }
    .btn { padding: 14px 20px; font-size: 0.9rem; min-height: 52px; }
    .btn-success { font-size: 0.95rem; padding: 14px 20px; }
    .form-navigation { margin-bottom: 14px; }
    .success-message { padding: 20px 18px; margin-bottom: 8px; }
    .radio-label, .checkbox-label { padding: 11px 14px; }
    .radio-label span, .checkbox-label span { font-size: 0.9rem; }

    .opt, .opt-num, .chk, .photo-card {
        min-height: 52px;
    }

    .opt-num-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .opt-num-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-step { min-width: 44px; }
    .step-circle { width: 34px; height: 34px; font-size: 13px; }
    .step-label { font-size: 10px; }
}

/* ==========================================================================
   Progress bar segmentado (estilo mockups — barras finas)
   Para formulários com muitas etapas (ex: anamnese com 18 passos)
   ========================================================================== */
.progress-segments {
    display: flex;
    gap: 3px;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border-bottom: none;
}
.progress-segments i {
    height: 5px;
    flex: 1;
    min-width: 0;
    border-radius: 4px;
    background: #2c2820;
    transition: background .3s, box-shadow .3s;
}
.progress-segments i.done {
    background: var(--grad-gold-h);
    box-shadow: 0 0 10px rgba(var(--gold-rgb),.6);
}
.progress-segments i.active {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(var(--gold-rgb),.5);
}

@media (max-width: 768px) {
    .progress-segments {
        padding: 16px 16px;
        gap: 2px;
    }
    .progress-segments i {
        height: 4px;
        border-radius: 3px;
    }
}

/* ==========================================================================
   Eyebrow (categoria da pergunta — "Agora sobre / Treino")
   ========================================================================== */
.scr-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 8px;
    text-align: left;
}
.scr-eyebrow .ey-ic {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.3px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold);
}
.scr-eyebrow .ey-ic svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}
.scr-eyebrow .ey-ic.has-ring {
    border: none;
    background: transparent;
}
.scr-eyebrow .ey-ic.has-ring svg,
.scr-eyebrow .ey-ic.has-ring svg.fill-icon {
    width: 34px;
    height: 34px;
}
.scr-eyebrow .ey-tx {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.scr-eyebrow .ey-k {
    font-family: var(--display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}
.scr-eyebrow .ey-l {
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fg);
}

/* Eyebrow compacto — ícone pequeno sem círculo + texto em uma linha só (telas de continuação) */
.scr-eyebrow.sm {
    gap: 8px;
    margin: 4px 0 10px;
}
.scr-eyebrow.sm .ey-ic {
    width: auto;
    height: auto;
    border: none;
    color: var(--gold);
}
.scr-eyebrow.sm .ey-ic svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.8;
}
.scr-eyebrow.sm .ey-tx {
    flex-direction: row;
    flex-wrap: wrap;
}
.scr-eyebrow.sm .ey-k,
.scr-eyebrow.sm .ey-l {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--gold);
}
.scr-eyebrow.sm .ey-l2 {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--fg);
}

/* Título de seção — sem ícone, texto grande bicolor em uma linha (abre uma nova seção do fluxo) */
.scr-section-title {
    text-align: center;
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 21px;
    letter-spacing: .01em;
    margin: 4px 0 6px;
}
.scr-section-title .w { color: var(--fg); }
.scr-section-title .g {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

/* Pergunta menor (usada logo abaixo de um scr-section-title) */
.scr-question-sm {
    text-align: center;
    color: var(--fg);
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 14px;
}

/* Linha de destaque com ícone + rótulo pequeno (ex.: "Musculação / Crossfit") */
.scr-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold);
    font-family: var(--display);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.scr-tag svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Divisor dourado decorativo */
.scr-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--gold);
    opacity: .85;
    margin: 10px 0 14px;
}
.scr-divider::before,
.scr-divider::after {
    content: "";
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 85%);
}
.scr-divider::after {
    background: linear-gradient(90deg, var(--gold) 15%, transparent);
}
.scr-divider span {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Pergunta grande com texto metal/silver */
.scr-question {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 23px;
    line-height: 1.15;
    text-align: center;
    margin: 10px 0 6px;
    letter-spacing: -.01em;
}
.scr-question .metal {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.scr-question .silver {
    background: linear-gradient(180deg, #fff 0%, #e4e4e4 40%, #b2b2b2 58%, #dcdcdc 76%, #f7f7f7 90%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.scr-help-text {
    text-align: center;
    font-size: 13px;
    color: var(--fg);
    margin-bottom: 16px;
    line-height: 1.45;
    opacity: .85;
}

/* Info box (estilo mockup) */
.scr-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--border-gold-soft);
    border-radius: var(--r);
    padding: 14px 16px;
    background: rgba(var(--gold-rgb),.05);
    margin-bottom: 14px;
}
.scr-info .ic-i {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    border: 1.3px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--gold-bright);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 15px;
}
.scr-info .ic-i.has-ring {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
}
.scr-info .ic-i.has-ring svg,
.scr-info .ic-i.has-ring svg.info-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
    stroke: none;
}

/* Checkbox com ícone que já tem anel no SVG */
.chk .ic-sm.has-ring {
    border: none;
    background: transparent;
    box-shadow: none;
}
.chk:has(input:checked) .ic-sm.has-ring,
.chk.active .ic-sm.has-ring {
    background: transparent;
    color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(var(--gold-rgb),.35);
}
.chk .ic-sm.has-ring svg,
.chk .ic-sm.has-ring svg.step-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
    stroke: none;
    filter: none;
}
.scr-info p {
    font-size: 13.5px;
    color: var(--gold-bright);
    line-height: 1.5;
    opacity: .9;
}
.scr-info p b {
    color: var(--gold);
    font-weight: 600;
}

/* SVGs dentro do ícone de info — sizing consistente via CSS (sem inline styles) */
.scr-info .ic-i svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* ==========================================================================
   Utilitários de espaçamento para steps — substituem inline styles repetidos
   ========================================================================== */
.scr-mt { margin-top: 20px; }      /* primeiro bloco de conteúdo após a pergunta */
.scr-mt-sm { margin-top: 14px; }   /* blocos de informação secundários */
.scr-info-mb { margin-bottom: 14px; } /* variante com margem inferior (tela final) */

/* Textarea alto — respostas longas (restrições, histórico médico) */
textarea.input-lg { min-height: 140px; }
/* ==========================================================================
   Tela final (etapa de parabéns) — estilos dedicados sem inline
   ========================================================================== */
.trophy-badge {
    text-align: center;
    margin-bottom: 8px;
}
.trophy-badge svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(var(--gold-rgb),.7));
}
.scr-question.scr-question-xl { font-size: 28px; }
.success-message.success-message-left {
    margin-top: 28px;
    text-align: left;
}

/* Char counter */
.char-count {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    color: var(--faint);
    text-align: right;
    margin-top: 2px;
}

/* Label forte — variante da field-label com peso/destaque maior
   (usada em telas screen-style onde a label é a única identificação do campo) */
.field-label.field-label-strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Bloco de entrega programada (tela final da anamnese) */
.delivery-eta {
    text-align: center;
    margin-top: 28px;
}
.delivery-eta .eta-headline {
    font-family: var(--display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
}
.delivery-eta .eta-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.delivery-eta .eta-sub svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* Opt grid (número em grid) */
.opt-num-grid {
    display: grid;
    gap: 10px;
}
.opt-num-grid.cols-1 { grid-template-columns: 1fr; }
.opt-num-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-num-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.opt-num-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.opt-num-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.opt-num-grid .opt-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--r);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s;
    position: relative;
}
.opt-num-grid .opt-num:hover {
    border-color: var(--gold);
}
.opt-num-grid .opt-num:has(input:checked),
.opt-num-grid .opt-num.active {
    border: 1.5px solid var(--gold);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.30), 0 0 14px rgba(var(--gold-rgb),.18), 0 8px 22px rgba(0,0,0,.4);
}
.opt-num-grid .opt-num input[type="radio"],
.opt-num-grid .opt-num input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.opt-num-grid .opt-num .nic {
    color: var(--gold);
    margin-bottom: 4px;
    transition: color .18s ease;
}
.opt-num-grid .opt-num:has(input:checked) .nic,
.opt-num-grid .opt-num.active .nic {
    color: var(--gold-bright);
}
.opt-num-grid .opt-num .nic svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}
.opt-num-grid .opt-num .nic svg.opt-num-icon {
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
}
.opt-num-grid .opt-num b {
    font-family: var(--display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--fg);
    transition: color .18s ease, filter .18s ease;
}
.opt-num-grid .opt-num:has(input:checked) b,
.opt-num-grid .opt-num.active b {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.opt-num-grid .opt-num span {
    font-family: var(--display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--gold-bright);
    opacity: .8;
    text-transform: uppercase;
    transition: color .18s ease, opacity .18s ease;
}
.opt-num-grid .opt-num:has(input:checked) span,
.opt-num-grid .opt-num.active span {
    color: var(--gold-bright);
    opacity: 1;
}

/* Variante "CTA" do opt-num — cartão retangular com ícone + texto à esquerda
   e chevron à direita (ex.: "Quero que o time indique"), ocupando 2 colunas */
.opt-num-grid .opt-num.opt-num-cta {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 14px 16px;
}
.opt-num-grid .opt-num.opt-num-cta .nic {
    margin-bottom: 0;
    flex: none;
}
.opt-num-grid .opt-num.opt-num-cta .txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.opt-num-grid .opt-num.opt-num-cta .ttl {
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--gold);
    line-height: 1.25;
}
.opt-num-grid .opt-num.opt-num-cta .desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}
.opt-num-grid .opt-num.opt-num-cta .arr {
    color: var(--gold);
    font-size: 20px;
    flex: none;
}

/* chk grid (checkboxes em grid) */
.chk-grid {
    display: grid;
    gap: 10px;
}
.chk-grid.cols-1 { grid-template-columns: 1fr; }
.chk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.chk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   CHECKBOX CARD — variante vertical grande (ícone em cima, rótulo no meio,
   caixa de marcação embaixo). Usada quando há poucas opções e se quer
   destaque maior (ex.: escolha entre "Dieta" e "Treino").
   ========================================================================== */
.chk.card {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 22px 14px 18px;
    text-align: center;
    /* fundo escuro claramente visível sobre o container, com halo dourado
       sutil interno para dar profundidade e consistência entre os cards */
    background:
        radial-gradient(ellipse 90% 60% at center 30%, rgba(var(--gold-rgb),.06) 0%, transparent 70%),
        var(--surface);
    box-shadow: inset 0 0 24px rgba(0,0,0,.45);
}
.chk.card .ic-sm {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.chk.card .ic-sm svg {
    width: 28px;
    height: 28px;
}
.chk.card .lab {
    flex: none;
    font-size: 15px;
}
.chk.card .box { margin: 0 auto; }

/* ==========================================================================
   SHAPE CARDS — objetivo detalhado (silhuetas masculino/feminino em WebP)
   ========================================================================== */
.shape-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.opt.shape-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px 12px 10px;
    min-height: 132px;
}
.opt.shape-card .shape-fig {
    flex: none;
    width: 112px;
    height: 148px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 40%, rgba(var(--gold-rgb),.08) 0%, transparent 70%),
        rgba(0,0,0,.35);
    overflow: hidden;
}
.opt.shape-card .shape-img {
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 0 12px rgba(var(--gold-rgb),.35));
    opacity: 1;
    transition: transform .2s ease, filter .2s ease;
}
.opt.shape-card .txt {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.opt.shape-card .arr {
    display: none;
}
.opt.shape-card:has(input:checked) .shape-fig,
.opt.shape-card.active .shape-fig {
    background:
        radial-gradient(ellipse 80% 70% at 50% 40%, rgba(var(--gold-rgb),.18) 0%, transparent 72%),
        rgba(0,0,0,.25);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.35), 0 0 16px rgba(var(--gold-rgb),.2);
}
.opt.shape-card:has(input:checked) .shape-img,
.opt.shape-card.active .shape-img {
    filter: drop-shadow(0 0 14px rgba(var(--gold-rgb),.45));
    opacity: 1;
    transform: scale(1.04);
}

/* Telas um pouco mais largas: silhueta maior */
@media (min-width: 380px) {
    .opt.shape-card {
        min-height: 164px;
        padding: 14px 16px 14px 12px;
        gap: 16px;
    }
    .opt.shape-card .shape-fig {
        width: 128px;
        height: 168px;
    }
}
@media (min-width: 480px) {
    .opt.shape-card .shape-fig {
        width: 144px;
        height: 188px;
    }
    .opt.shape-card {
        min-height: 188px;
    }
}

/* ==========================================================================
   MUSCLE GROUP CARDS — ilustração full-bleed (viewBox cropado nos SVGs)
   O desenho ocupa quase toda a largura do card (~50vw − gap), não um selo 18–90px.
   ========================================================================== */
.muscle-grid {
    gap: 10px;
    align-items: stretch;
}
.chk.muscle-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
    min-height: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 35%, rgba(var(--gold-rgb),.09) 0%, transparent 68%),
        var(--surface);
    box-shadow: inset 0 0 28px rgba(0,0,0,.45);
}
/* Área da figura: quase o card inteiro */
.chk.muscle-card .muscle-fig {
    display: block;
    width: 100%;
    /* altura generosa em qualquer largura de coluna */
    aspect-ratio: 1 / 1.15;
    min-height: 150px;
    max-height: 220px;
    margin: 0;
    padding: 14px 10px 4px;
    box-sizing: border-box;
    color: var(--gold);
    border: none;
    background: transparent;
    box-shadow: none;
    flex: 1 1 auto;
}
.chk.muscle-card .muscle-fig svg,
.chk.muscle-card .muscle-fig svg.grupo-icon,
.chk.muscle-card .muscle-fig img.grupo-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
    filter: drop-shadow(0 0 12px rgba(var(--gold-rgb),.32));
}
.chk.muscle-card .lab {
    flex: 0 0 auto;
    text-align: center;
    font-size: 13px;
    letter-spacing: .06em;
    line-height: 1.25;
    min-height: 2.6em;
    padding: 6px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 100%);
}
.chk.muscle-card .box {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 2;
}
.chk.muscle-card:has(input:checked),
.chk.muscle-card.active {
    border: 1.5px solid var(--gold);
    box-shadow:
        0 0 0 1px rgba(var(--gold-rgb),.28),
        0 0 18px rgba(var(--gold-rgb),.2),
        inset 0 0 28px rgba(0,0,0,.45);
}
.chk.muscle-card:has(input:checked) .muscle-fig,
.chk.muscle-card.active .muscle-fig {
    color: var(--gold-bright);
}
.chk.muscle-card:has(input:checked) .muscle-fig svg,
.chk.muscle-card.active .muscle-fig svg,
.chk.muscle-card:has(input:checked) .muscle-fig img.grupo-img,
.chk.muscle-card.active .muscle-fig img.grupo-img {
    filter: drop-shadow(0 0 14px rgba(var(--gold-rgb),.5));
}

/* Em telas um pouco mais largas, deixa a figura ainda maior */
@media (min-width: 420px) {
    .chk.muscle-card .muscle-fig {
        min-height: 180px;
        max-height: 260px;
        padding: 16px 14px 6px;
    }
    .chk.muscle-card .lab {
        font-size: 14px;
    }
}

/* ==========================================================================
   Campo com ícone à esquerda dentro do input (nome, peso, altura, idade...)
   ========================================================================== */
.field-ic {
    position: relative;
}
.field-ic > svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    z-index: 2;
}
.field-ic .input {
    padding-left: 42px;
    position: relative;
    width: 100%;
}
.field-ic textarea.input {
    padding-top: 16px;
}
.field-ic textarea.input ~ svg,
.field-ic svg.ic-textarea {
    top: 28px;
    transform: none;
}

/* Linha de rótulo com ícone (peso / altura / idade) */
.field-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.field-label-row svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}
.field-label-row .field-label {
    margin-bottom: 0;
}

/* ==========================================================================
   Grade de fotos (avaliação física) — cartão com selo de câmera e rótulo
   ========================================================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--r);
    cursor: pointer;
    text-align: center;
    transition: border-color .18s, background .18s, box-shadow .18s;
    position: relative;
}
.photo-card:hover { border-color: var(--gold); background: var(--surface-2); }
.photo-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.photo-card:has(input:checked),
.photo-card.active {
    border: 1.5px solid var(--gold);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px rgba(var(--gold-rgb),.30), 0 0 16px rgba(var(--gold-rgb),.18), 0 8px 22px rgba(0,0,0,.4);
}
.photo-card .silhouette {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--r-sm);
    background:
        radial-gradient(circle at 50% 38%, rgba(var(--gold-rgb),.14) 0%, transparent 68%),
        var(--input-bg);
    border: 1px solid var(--border-gold-soft);
    display: grid;
    place-items: center;
    position: relative;
    color: var(--gold);
    box-shadow: inset 0 0 18px rgba(0,0,0,.5);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.photo-card .silhouette svg {
    width: 46%;
    height: 46%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .8;
    filter: drop-shadow(0 0 6px rgba(var(--gold-rgb),.25));
}
/* estado ligado = silhueta com brilho dourado interno mais intenso */
.photo-card:has(input:checked) .silhouette,
.photo-card.active .silhouette {
    background:
        radial-gradient(circle at 50% 38%, rgba(var(--gold-rgb),.26) 0%, transparent 68%),
        var(--input-bg);
    border-color: var(--gold);
    box-shadow: inset 0 0 22px rgba(var(--gold-rgb),.12), 0 0 12px rgba(var(--gold-rgb),.15);
}
.photo-card .cam-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad-gold-btn);
    display: grid;
    place-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,.5);
}
.photo-card .cam-badge svg {
    width: 16px;
    height: 16px;
    stroke: #1a1205;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.photo-card .lab {
    margin-top: 4px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fg);
}

/* Upload de foto dentro do photo-card */
.photo-card input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.photo-card .photo-preview {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-gold-soft);
    display: none;
    background: var(--surface-2);
}

.photo-card.has-photo .photo-preview {
    display: block;
}

.photo-card.has-photo .photo-placeholder,
.photo-card.has-photo .silhouette {
    display: none;
}

.photo-card .photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--r-sm);
    border: 1px dashed var(--border-gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-family: var(--body);
    font-size: 12px;
    color: var(--faint);
    background: var(--surface-2);
}
.photo-card:has(input:checked) .lab,
.photo-card.active .lab { color: var(--gold-bright); }

/* reforço visual: silhueta também brilha quando ativo */
.photo-card:has(input:checked) .silhouette,
.photo-card.active .silhouette {
    background:
        radial-gradient(circle at 50% 38%, rgba(var(--gold-rgb),.26) 0%, transparent 68%),
        var(--input-bg);
    border-color: var(--gold);
    box-shadow: inset 0 0 22px rgba(var(--gold-rgb),.12), 0 0 12px rgba(var(--gold-rgb),.15);
}

/* Welcome screen (etapa 1) */
.welcome-title {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 26px;
    line-height: 1.15;
    text-align: center;
    margin: 6px 0 10px;
}
.welcome-title .metal {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.welcome-title .silver {
    background: linear-gradient(180deg, #fff 0%, #e4e4e4 40%, #b2b2b2 58%, #dcdcdc 76%, #f7f7f7 90%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.welcome-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--fg);
    opacity: .85;
    margin-bottom: 4px;
    line-height: 1.55;
}
.welcome-subtitle .strong {
    display: block;
    margin-top: 2px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(244,226,160,.30)) drop-shadow(0 2px 4px rgba(0,0,0,.55));
}

/* Divisor simples — linha dourada única, sem losango (usado na tela de boas-vindas) */
.line-divider {
    width: 160px;
    height: 1px;
    margin: 20px auto;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    opacity: .8;
}
/* ==========================================================================
   Acessibilidade — melhor contraste em forced-colors
   ========================================================================== */
@media (forced-colors: active) {
    .container { border: 1px solid CanvasText; }
    .btn { border: 1.5px solid CanvasText; }
    .step-circle { border: 1.5px solid CanvasText; }
}

/* Screen-reader-only — visível para AT, invisível visualmente */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ==========================================================================
   Toast de validação — aviso flutuante quando falta preencher campos
   ========================================================================== */
.validation-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #2a1810 0%, #1a1208 100%);
    border: 1px solid var(--gold);
    color: var(--fg);
    padding: 14px 22px;
    border-radius: 12px;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 20px rgba(var(--gold-rgb),.3);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90vw;
    text-align: left;
}
.validation-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.validation-toast .vt-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #1a1205;
    font-weight: 700;
    font-size: 14px;
    flex: none;
}

/* Remove setas dos cards de opção e caret padrão de select */
.opt .arr,
.opt-num-grid .opt-num.opt-num-cta .arr,
.select-caret {
    display: none;
}

.photo-card .silhouette,
.photo-card .cam-badge {
    display: none;
}

/* Ícones SVG externos (fill-based) — assets/icons/svg */
.chk .ic-sm svg.step-icon,
.chk.card .ic-sm svg.step-icon,
.scr-info .ic-i svg.info-icon,
.field-label-row svg.field-icon,
.opt .ic svg.opt-icon,
.opt-num .nic svg.opt-num-icon,
.opt-num-grid .opt-num .nic svg.opt-num-icon,
.scr-eyebrow .ey-ic svg.fill-icon,
.scr-tag svg.fill-icon,
.delivery-eta .eta-sub svg.fill-icon,
svg.fill-icon {
    fill: currentColor;
    stroke: none;
    filter: none;
    stroke-width: 0;
}

.scr-eyebrow .ey-ic svg.fill-icon {
    width: 20px;
    height: 20px;
}

.scr-tag svg.fill-icon {
    width: 18px;
    height: 18px;
}

.delivery-eta .eta-sub svg.fill-icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    stroke: none;
}

.field-label-row svg.field-icon {
    color: var(--gold);
}

.photo-card .upload-icon {
    width: 46px;
    height: 46px;
    color: var(--gold);
    margin-bottom: 8px;
}

.photo-card .upload-icon svg.upload-icon-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: none;
}


