/* CSS Exclusivo para a Página de Rescisão - Tema Dark Mode Premium 2026 */
:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --glass-bg: rgba(24, 24, 27, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Efeito Glow / Orbs no Fundo */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5; /* Roxo vibrante */
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #0ea5e9; /* Azul ciano */
    bottom: -150px;
    right: -100px;
    animation: float 18s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    animation: float 25s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(40px) scale(1.1); }
    100% { transform: translateY(0px) scale(1); }
}

/* Navbar */
.navbar {
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Geral */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Calculadora Glassmorphism */
.calculator-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 80px;
}

/* Barra de Progresso */
.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Passos do Formulário */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.form-step h2 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 30px;
    color: #fff;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    width: 100%;
}

.row {
    display: flex;
    gap: 24px;
}

@media (max-width: 640px) {
    .row { flex-direction: column; gap: 0; }
    .hero h1 { font-size: 2.2rem; }
    .calculator-glass { padding: 24px; }
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cbd5e1;
}

input, select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Customização total da seta do dropdown para não grudar na borda */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(0, 0, 0, 0.25);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center; /* Exatamente 12px de distância da borda direita */
    background-size: 16px;
    padding-right: 40px; /* Impede que o texto do select passe por cima da seta */
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Personalizando o select no modo dark (Estilo nativo dificulta, mas ajudamos) */
select option {
    background-color: var(--bg-card);
    color: white;
}

/* Ajustes finos nos ícones nativos dos inputs para não ficarem colados na borda */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Deixa o ícone de calendário branco */
    cursor: pointer;
    margin-right: 8px; /* Mesma distância/padding do select */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin-right: 8px; /* Desgruda as setinhas de número da borda */
}

/* Botões */
button {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-next {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    margin-top: 10px;
}

.btn-next:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-calc {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px var(--success-glow);
}

.btn-calc:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 20px var(--success-glow);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    margin-top: 10px;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Telas de Resultado */
.result-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.result-highlight::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.result-highlight .label {
    display: block;
    color: #a7f3d0;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.result-highlight .value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    letter-spacing: -1px;
}

.charts-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    height: 280px;
}

.breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .breakdown { grid-template-columns: 1fr; }
    .result-highlight .value { font-size: 2.5rem; }
}

.card-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.card-breakdown h3 {
    font-size: 1rem;
    color: #e2e8f0;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px; /* Espaçamento forçado entre nome e valor */
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breakdown-list li span:first-child {
    flex: 1; /* O nome da verba ocupa todo o espaço que puder */
    line-height: 1.4;
}

.breakdown-list li .val {
    white-space: nowrap; /* O valor monetário nunca é quebrado */
    text-align: right;
}

.breakdown-list li:last-child {
    border-bottom: none;
}

.proventos li .val { color: var(--success); font-weight: 500; }
.descontos li .val { color: var(--danger); font-weight: 500; }
.neutral li .val { color: var(--accent); font-weight: 500; }

/* Timeline UI */
.timeline {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.timeline-icon {
    background: var(--accent);
    color: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #fff;
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Área Educativa SEO */
.seo-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-card, .faq-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

.content-card h2, .faq-section h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-box h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.1rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* FAQ com Details/Summary */
.faq-item {
    margin-bottom: 16px;
}

details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 20px;
    color: #fff;
    outline: none;
    list-style: none; /* Hide default arrow in some browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
}

details[open] summary::after {
    content: '−';
}

.details-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding-top: 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    color: #64748b;
    font-size: 0.85rem;
}
