/* Variaveis & Design System */
:root {
    /* Cores da Advocacia (Premium e Confiável) */
    --primary: #0B1B3D; /* Azul marinho adv */
    --primary-light: #1E3A70;
    --accent: #D4AF37; /* Dourado */
    --accent-hover: #b8962d;
    
    /* Específicas do projeto */
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Outros */
    --border-color: #e2e8f0;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}
/* App Container (Mobile First & Centered) */
.app-container {
    background-color: transparent;
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Header */
.warning-banner {
    background-color: var(--warning);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-bottom: -5px;
}
.app-header {
    background-color: var(--primary);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}
.firm-logo {
    max-height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* Filtro para deixar a logo branca caso seja escura */
    filter: brightness(0) invert(1);
}
.progress-section {
    margin-top: 20px;
}
.progress-container {
    height: 6px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 25%;
    border-radius: 10px;
    transition: width 0.5s ease;
}
.step-indicator {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}
/* Main Form Container */
.form-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}
.step-header {
    margin-bottom: 24px;
    text-align: center;
}
.step-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.step-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.step-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Grid de Cards (Etapa 1) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.option-card input[type="checkbox"] {
    display: none;
}
.option-card:hover {
    border-color: var(--primary-light);
    background-color: #f1f5f9;
}
/* Selected state via CSS HAS selector if supported, but let's use JS class toggle for compatibility */
.option-card.selected {
    border-color: var(--primary);
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(11, 27, 61, 0.1);
}
.option-card .emoji {
    font-size: 1.8rem;
}
.option-card p {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}
/* Formulário e Inputs */
.form-group {
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group {
    flex: 1;
}
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}
input[type="text"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: #f8fafc;
}
textarea {
    resize: vertical;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 27, 61, 0.1);
    background-color: #fff;
}
.hint-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-block;
}
/* Dynamic Blocks Customization */
.dynamic-block {
    background: #f1f5f9;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 25px;
    border-left: 4px solid var(--accent);
    animation: fadeIn 0.4s ease forwards;
}
.dynamic-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Radio Cards (For custom inputs) */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.radio-card:hover {
    border-color: var(--primary);
}
.radio-card input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}
/* Upload Slots */
.upload-slots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.upload-slot {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}
.upload-slot:hover {
    border-color: var(--primary);
    background-color: #f1f5f9;
}
.upload-slot.success {
    border-color: var(--success);
    background-color: #ecfdf5;
    border-style: solid;
}
.upload-slot input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.upload-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}
.upload-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.success .upload-icon {
    color: var(--success);
}
.success .upload-title {
    color: var(--success);
}
/* Confirm Step & Summary */
.summary-box {
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}
.summary-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}
.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.summary-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.summary-value {
    font-weight: 600;
    color: var(--primary);
}
/* Custom Checkbox */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.consent-label input {
    display: none;
}
.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}
.consent-label input:checked + .custom-checkbox {
    background-color: var(--primary);
    border-color: var(--primary);
}
.consent-label input:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Nav Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.btn-primary, .btn-secondary, .btn-calendly, .btn-whatsapp {
    padding: 16px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--primary); /* Dourado escuro / Marinho */
    width: auto;
    flex: 1;
}
.btn-primary:not(:disabled):hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.btn-primary:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    flex: 0 0 auto;
    width: auto;
}
.btn-secondary:hover {
    background-color: #f1f5f9;
}
/* Loading */
.loading-container {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(11, 27, 61, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-container h3 {
    color: var(--primary);
    margin-bottom: 10px;
}
/* Result UI Elements */
.result-container {
    background-color: transparent;
    animation: fadeIn 0.5s ease;
}
.status-banner {
    background-color: var(--primary);
    color: white;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}
.status-banner.amber {
    background-color: var(--warning);
}
.banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.banner-text h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.banner-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}
.result-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
}
.section-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}
.rights-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}
.right-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    background: #fff;
}
.right-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.right-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.right-area-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    background: #f1f5f9;
    color: var(--text-muted);
    border-radius: 4px;
    letter-spacing: 0.5px;
}
/* Probability Bar */
.prob-container {
    margin-top: 15px;
    margin-bottom: 15px;
}
.prob-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.prob-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.prob-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-in-out;
}
/* Colors for probabilities */
.prob-Alta .prob-fill { background-color: var(--success); width: 85%; }
.prob-Alta .prob-label { color: var(--success); }
.prob-Média .prob-fill { background-color: var(--warning); width: 50%; }
.prob-Média .prob-label { color: var(--warning); }
.prob-Baixa .prob-fill { background-color: var(--danger); width: 20%; }
.prob-Baixa .prob-label { color: var(--danger); }
.right-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.5;
}
.docs-list h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.docs-list ul {
    list-style-type: none;
    font-size: 0.9rem;
}
.docs-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 4px;
}
.docs-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8em;
}
/* Financial Impact */
.financial-impact-card {
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 25px 20px;
    margin-bottom: 30px;
}
.financial-impact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.impact-values {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.impact-item {
    flex: 1;
}
.impact-item .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 5px;
}
.impact-item .value {
    font-size: 1.4rem;
    font-weight: 700;
}
.value.success {
    color: #34d399; /* emerald-400 */
}
.impact-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.impact-total .label {
    font-weight: 500;
}
.impact-total .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
/* CTA Dupla */
.final-ctas {
    text-align: center;
}
.cta-message {
    background-color: #fffbeb; /* amber-50 */
    border: 1px solid #fde68a;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-align: left;
}
.cta-message .highlight-text {
    color: var(--warning); /* Escurecendo um pouco */
    color: #b45309; /* amber-700 */
    margin-bottom: 10px;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn-calendly {
    background-color: var(--primary);
    color: white;
}
.btn-calendly:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 27, 61, 0.2);
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* --- Paywall UI --- */
.paywall-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    max-width: 500px;
    margin: 0 auto;
}
.paywall-header {
    margin-bottom: 25px;
}
.paywall-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.paywall-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.paywall-price-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(11, 27, 61, 0.2);
}
.paywall-price-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}
.paywall-price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}
.paywall-qr-container {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    display: inline-block;
    margin-bottom: 20px;
}
.paywall-qr-container img {
    width: 200px;
    height: 200px;
    display: block;
}
.paywall-copy-paste {
    margin-bottom: 20px;
    text-align: left;
}
.paywall-copy-paste p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.copy-paste-box {
    display: flex;
    gap: 10px;
}
.copy-paste-box input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.copy-paste-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.copy-paste-box button:hover {
    background: var(--primary-light);
}
.paywall-expiration {
    font-size: 0.9rem;
    color: #eab308;
    font-weight: 600;
    margin-bottom: 20px;
}
.paywall-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 15px;
    border-radius: var(--radius-md);
    font-weight: 500;
}
.paywall-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(22, 101, 52, 0.2);
    border-left-color: #166534;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
