/* ===========================================
   TESTE 72H - Nova Lig | Typeform Style
   Premium Dark Theme
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #007CFF;
    --primary-light: #3b9dff;
    --primary-dark: #0060cc;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0a0e1a;
    --bg-card: #111827;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0f4ff;
    --text-muted: #6b7280;
    --text-sub: #9ca3af;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Progress Bar ---- */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    z-index: 100;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    border-radius: 0 2px 2px 0;
}

/* ---- Header ---- */
.tf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 99;
    background: linear-gradient(to bottom, rgba(10,14,26,0.95) 0%, transparent 100%);
}

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

.tf-logo img {
    height: 32px;
    width: auto;
    filter: brightness(1.1);
}

.tf-progress-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ---- Main Container ---- */
.tf-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.tf-container::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,124,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.tf-container::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Slides ---- */
.tf-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 120px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.tf-slide.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.tf-slide.exit-up {
    opacity: 0;
    transform: translateY(-40px);
}

.tf-slide.enter-down {
    opacity: 0;
    transform: translateY(60px);
}

/* ---- Slide Content ---- */
.slide-inner {
    width: 100%;
    max-width: 640px;
    animation: none;
}

.slide-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.slide-label .step-num {
    background: rgba(0,124,255,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(0,124,255,0.25);
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.slide-question {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.slide-subtext {
    font-size: 0.95rem;
    color: var(--text-sub);
    font-family: var(--font-body);
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ---- Input Fields ---- */
.tf-input-wrap {
    position: relative;
    margin-bottom: 24px;
}

.tf-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    color: var(--text);
    font-size: 1.5rem;
    font-family: var(--font-main);
    font-weight: 500;
    padding: 8px 0 12px;
    outline: none;
    transition: border-color 0.2s;
    caret-color: var(--primary);
}

.tf-input::placeholder { color: rgba(255,255,255,0.2); font-weight: 400; }

.tf-input:focus {
    border-bottom-color: var(--primary);
}

.tf-input-underline {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-input:focus ~ .tf-input-underline {
    width: 100%;
}

/* ---- Choice Cards ---- */
.tf-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tf-choices.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.tf-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.tf-choices.horizontal .tf-choice {
    flex: 1;
    min-width: 160px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 18px;
}

.tf-choice:hover {
    border-color: rgba(0,124,255,0.4);
    background: rgba(0,124,255,0.06);
}

.tf-choice.selected {
    border-color: var(--primary);
    background: rgba(0,124,255,0.1);
}

.choice-key {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.tf-choice.selected .choice-key {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.choice-icon {
    font-size: 1.5rem;
}

.choice-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.choice-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

/* ---- Address Grid ---- */
.tf-address-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin-bottom: 16px;
}

.tf-address-grid.full { grid-template-columns: 1fr; }
.tf-address-grid.thirds { grid-template-columns: 1.5fr 1fr 1fr; }

.tf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tf-field-label {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tf-input-sm {
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 500;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    caret-color: var(--primary);
}

.tf-input-sm::placeholder { color: rgba(255,255,255,0.18); }

.tf-input-sm:focus {
    border-color: var(--primary);
    background: rgba(0,124,255,0.04);
}

/* ---- Checkbox ---- */
.tf-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 28px;
    user-select: none;
}

.tf-checkbox-wrap:hover {
    border-color: rgba(0,124,255,0.3);
}

.tf-checkbox-wrap.checked {
    border-color: var(--primary);
    background: rgba(0,124,255,0.06);
}

.tf-checkbox-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    margin-top: 1px;
}

.tf-checkbox-wrap.checked .tf-checkbox-box {
    background: var(--primary);
    border-color: var(--primary);
}

.tf-checkbox-check {
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
    color: #fff;
    font-size: 0.75rem;
}

.tf-checkbox-wrap.checked .tf-checkbox-check {
    opacity: 1;
    transform: scale(1);
}

.tf-checkbox-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.tf-checkbox-label a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ---- CTA Button ---- */
.tf-btn-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 28px;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.tf-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,124,255,0.35);
}

.tf-btn:active {
    transform: translateY(0);
}

.tf-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.tf-btn .btn-arrow {
    transition: transform 0.2s;
}

.tf-btn:hover .btn-arrow { transform: translateX(3px); }

.tf-btn-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.tf-btn-hint kbd {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.72rem;
    font-family: var(--font-body);
}

.tf-btn.back-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    font-weight: 600;
    padding: 14px 20px;
}

.tf-btn.back-btn:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    box-shadow: none;
    transform: none;
}

/* ---- Error Message ---- */
.tf-error {
    font-size: 0.82rem;
    color: var(--danger);
    font-family: var(--font-body);
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
}

.tf-error.show { display: flex; }

/* ---- Welcome Slide ---- */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.2);
    color: #34d399;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.welcome-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.welcome-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-sub {
    font-size: 1.1rem;
    color: var(--text-sub);
    font-family: var(--font-body);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.welcome-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.welcome-feat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text-sub);
}

.welcome-btn {
    font-size: 1.1rem;
    padding: 18px 36px;
    border-radius: 14px;
}

/* ---- Success Slide ---- */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16,185,129,0.12);
    border: 2px solid rgba(16,185,129,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 28px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
    50% { box-shadow: 0 0 0 16px rgba(16,185,129,0); }
}

.success-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.success-sub {
    font-size: 1rem;
    color: var(--text-sub);
    font-family: var(--font-body);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.success-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.success-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
}

.success-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.success-step-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-sub);
}

.success-step-text strong { color: var(--text); }

.success-wpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.success-wpp-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ---- Navigation Arrows (bottom) ---- */
.tf-nav-arrows {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 50;
}

.tf-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.tf-arrow-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border-color: rgba(255,255,255,0.2);
}

.tf-arrow-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ---- Spinner ---- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .tf-header { padding: 0 20px; }
    .tf-slide { padding: 80px 20px 100px; }
    .tf-choices.horizontal { flex-direction: column; }
    .tf-address-grid.thirds { grid-template-columns: 1fr 1fr; }
    .tf-nav-arrows { bottom: 20px; right: 20px; }
    .tf-btn-hint { display: none; }
}

/* ---- Scrollable content if needed ---- */
.slide-inner.scrollable {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 8px;
}

.slide-inner.scrollable::-webkit-scrollbar { width: 4px; }
.slide-inner.scrollable::-webkit-scrollbar-track { background: transparent; }
.slide-inner.scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
