/* ===================================
   RESET E VARIÁVEIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Branco e Vermelho */
    --primary-red: #E30613;
    --dark-red: #CC0000;
    --light-red: #FF0F1F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --black: #000000;
    
    /* Gradientes */
    --gradient-red: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    --gradient-light: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(227, 6, 19, 0.1);
    --shadow-md: 0 4px 12px rgba(227, 6, 19, 0.15);
    --shadow-lg: 0 8px 24px rgba(227, 6, 19, 0.2);
    --shadow-xl: 0 16px 48px rgba(227, 6, 19, 0.25);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   BARRA DE PROGRESSO
   =================================== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--light-gray);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.progress-bar {
    height: 100%;
    width: 20%;
    background: var(--gradient-red);
    transition: width var(--transition-slow);
}

/* ===================================
   INDICADOR DE ETAPAS
   =================================== */
.step-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 999;
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-normal);
    border: 3px solid transparent;
}

.step.active {
    background: var(--gradient-red);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
    border-color: var(--white);
}

.step.completed {
    background: var(--primary-red);
    color: var(--white);
}

/* ===================================
   SEÇÕES DE PÁGINA
   =================================== */
.page-section {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* ===================================
   HERO SECTION (ETAPA 1)
   =================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    min-height: 500px;
}

.hero-content {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-text {
    display: block;
    font-size: 72px;
    font-weight: 900;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-subtitle {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-icon {
    font-size: 280px;
    color: var(--primary-red);
    opacity: 0.15;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   BOTÕES
   =================================== */
.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--light-red) 0%, var(--primary-red) 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Animação Pulsante para o botão principal */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(227, 6, 19, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
    }
}

/* ===================================
   BENEFÍCIOS (ETAPA 1)
   =================================== */
.benefits {
    margin-top: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--light-gray);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    transition: all var(--transition-normal);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.benefit-card p {
    color: var(--medium-gray);
    font-size: 16px;
    line-height: 1.6;
}

/* ===================================
   FORMULÁRIO (ETAPA 2)
   =================================== */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-gray);
}

.form-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.form-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 35px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 16px;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.error-message {
    display: block;
    color: var(--primary-red);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* ===================================
   LOADING E APROVAÇÃO
   =================================== */
.loading-overlay,
.approval-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.active,
.approval-overlay.active {
    display: flex;
}

.loading-content,
.approval-content {
    text-align: center;
    background: var(--white);
    padding: 60px 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 6px solid var(--light-gray);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.loading-content p {
    color: var(--medium-gray);
    font-size: 16px;
}

.approval-icon {
    font-size: 100px;
    color: var(--primary-red);
    margin-bottom: 25px;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.approval-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.approval-content p {
    font-size: 18px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* ===================================
   PLANOS (ETAPA 3)
   =================================== */
.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 18px;
    margin-bottom: 50px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 3px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-red);
}

.plan-card.popular {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-red);
    color: var(--white);
    padding: 8px 45px;
    font-weight: 700;
    font-size: 12px;
    transform: rotate(45deg);
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
}

.plan-header h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.plan-badge {
    display: inline-block;
    background: var(--light-red);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.plan-price {
    text-align: center;
    margin-bottom: 30px;
}

.price-range {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.price-period {
    display: block;
    color: var(--medium-gray);
    font-size: 15px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    color: var(--dark-gray);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-features i {
    color: var(--primary-red);
    font-size: 18px;
}

.btn-plan {
    width: 100%;
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--light-red) 0%, var(--primary-red) 100%);
}

/* ===================================
   PROCEDIMENTOS (ETAPA 4)
   =================================== */
#planSelectedTitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-red);
}

.timeline {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-red);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    border: 2px solid var(--light-gray);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.timeline-content p {
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.6;
}

.caution-info {
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, #FFF5F5 0%, var(--white) 100%);
    padding: 25px 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-red);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.caution-info i {
    font-size: 28px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.caution-info p {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   FINAL / WHATSAPP (ETAPA 5)
   =================================== */
.final-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-gray);
}

.final-icon {
    font-size: 120px;
    color: var(--primary-red);
    margin-bottom: 30px;
    animation: bounceIn 1s ease;
}

.final-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.final-subtitle {
    font-size: 20px;
    color: var(--medium-gray);
    margin-bottom: 40px;
}

.whatsapp-info {
    text-align: left;
    background: var(--off-white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 35px;
}

.whatsapp-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.whatsapp-list {
    list-style: none;
}

.whatsapp-list li {
    padding: 12px 0;
    color: var(--dark-gray);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-list i {
    color: var(--primary-red);
    font-size: 20px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #25D366;
    color: var(--white);
    padding: 20px 50px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: #20BA5A;
}

.btn-whatsapp i {
    font-size: 28px;
}

.whatsapp-note {
    font-size: 16px;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-note i {
    color: var(--primary-red);
    font-size: 18px;
}

.whatsapp-note strong {
    color: var(--dark-gray);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablets */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        display: none;
    }
    
    .logo-text {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .step-indicator {
        padding: 12px 20px;
        gap: 10px;
    }
    
    .step {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-section {
        padding: 100px 15px 40px;
    }
    
    .logo-text {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 35px 25px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .final-content {
        padding: 40px 30px;
    }
    
    .final-title {
        font-size: 32px;
    }
    
    .final-subtitle {
        font-size: 18px;
    }
    
    .btn-whatsapp {
        padding: 18px 40px;
        font-size: 18px;
    }
    
    .step-indicator {
        top: 10px;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .step {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-width: 2px;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .logo-text {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-primary {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .loading-content,
    .approval-content {
        padding: 40px 30px;
    }
    
    .approval-icon {
        font-size: 80px;
    }
    
    .final-content {
        padding: 30px 20px;
    }
    
    .whatsapp-info {
        padding: 20px;
    }
}
