.text-hero-sub {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

section[id] {
    scroll-margin-top: 90px;
}

/* === Formulário Multi-Step === */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}
.step-dot.active {
    background: var(--color-accent, #f97316);
    color: #fff;
    border-color: var(--color-accent, #f97316);
    transform: scale(1.1);
}
.step-dot.completed {
    background: var(--color-primary, #16a34a);
    color: #fff;
    border-color: var(--color-primary, #16a34a);
}

.form-group {
    position: relative;
}
.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f9fafb;
    transition: all 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--color-primary, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: #fff;
}
.input-error {
    border-color: #dc3545 !important;
    background: #fef2f2 !important;
}
.input-error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* === Formulário Home (mini) === */
.home-step { display: none; }
.home-step.active { display: block; }

.step-dot-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}
.step-dot-mini.active {
    background: var(--color-accent, #f97316);
    color: #fff;
    border-color: var(--color-accent, #f97316);
    transform: scale(1.1);
}
.step-dot-mini.done {
    background: var(--color-primary, #16a34a);
    color: #fff;
    border-color: var(--color-primary, #16a34a);
}

.form-input-home {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.2s;
    outline: none;
}
.form-input-home:focus {
    border-color: var(--color-primary, #16a34a);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: #fff;
}
.form-input-home.input-error {
    border-color: #fecaca !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}
.form-input-home.input-error::placeholder {
    color: #b91c1c !important;
}

/* Success circle animation */
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes successCheck {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}
.success-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
}
.success-circle svg polyline {
    stroke-dasharray: 50;
    animation: successCheck 0.4s 0.3s ease forwards;
    stroke-dashoffset: 50;
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Danger Shake */
@keyframes dangerShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake {
    animation: dangerShake 0.35s ease-in-out;
}

/* Termos (checkbox) em erro — shake + realce vermelho, sem texto */
.terms-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
    margin: -8px -10px;
}
.terms-error span {
    color: #b91c1c !important;
}

/* === Modal Premium === */
.modal-premium-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-premium-overlay.open {
    opacity: 1;
}
.modal-premium-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    max-width: 430px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-premium-overlay.open .modal-premium-card {
    transform: none;
}
.modal-premium-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.modal-premium-icon.erro {
    background: #fee2e2;
    color: #dc3545;
}
.modal-premium-icon.ok {
    background: #dcfce7;
    color: #16a34a;
}
.modal-premium-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.modal-premium-msg {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 6px;
}
.modal-premium-list {
    text-align: left;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 12px 12px 28px;
    margin: 12px 0 18px;
    font-size: 0.85rem;
    color: #b91c1c;
    display: block;
}
.modal-premium-list li {
    margin: 4px 0;
}
.modal-premium-list.hidden {
    display: none;
}
.modal-premium-btn {
    background: var(--color-accent, #f97316);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}
.modal-premium-btn:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
}
.modal-premium-btn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.4);
    outline-offset: 2px;
}

/* 2. Transforma o body em um container Flexbox vertical */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ocupa no mínimo 100% da altura da janela visível */
}

/* === Setas Laterais (Detalhe da Notícia) === */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-foreground, #1f2937);
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.nav-arrow:hover {
    background: var(--color-primary, #16a34a);
    color: #fff;
    border-color: var(--color-primary, #16a34a);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
}

.nav-arrow-left {
    left: 24px;
}

.nav-arrow-right {
    right: 24px;
}

@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }
}