:root {--primary: #4169E1;--gold: #FFD700;--blue-tag: #00BFFF;--dark: #121212;--border: #e8e8e8;}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { height: 100vh; background: #fff; overflow: hidden; }

.main-wrapper { display: flex; height: 100vh; }
/*Icones alinhados e reajir aos cliques*/
.opt-btn { display: flex; align-items: center; justify-content: center; gap: 10px; /* Espaço entre ícone e texto */}
.opt-btn i { font-size: 0.9rem; color: var(--primary); /* Cor azul padrão */ transition: 0.3s;}
.opt-btn.selected i { color: #ffffff; /* Ícone fica branco quando selecionado */}

/* Form Area */
.form-section { width: 60%; padding: 40px 8%; overflow-y: auto; background: #fff; }
.logo { font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.highlight { color: var(--primary); }

/* Steps Navigation */
.step { display: none; }
.step.active { display: block; animation: slideUp 0.4s ease forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Progress Bar */
.progress-container { width: 100%; height: 6px; background: #eee; border-radius: 10px; margin: 20px 0 40px; }
.progress-bar { height: 100%; width: 20%; background: var(--primary); transition: 0.5s; border-radius: 10px; }

/* Grid and Inputs */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; font-size: 0.9rem; }
.input-group input { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }

/* Options Grid (Objetivos, Experiência, etc) */
.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.options-grid.col-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
    border: 2px solid #f0f0f0; padding: 15px; border-radius: 12px;
    text-align: center; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.option-card i { font-size: 1.2rem; color: var(--primary); }
.option-card span { font-size: 0.85rem; font-weight: 500; }
.option-card.selected { border-color: var(--primary); background: #f0f4ff; }

/* Step 3 - Badges e Galeria */
.info-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.badge-item { background: #f0f2f5; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: #555; border: 1px solid #e0e0e0; }
.gym-photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.gym-photos-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.schedule-box { background: #f9f9f9; padding: 20px; border-radius: 12px; border-left: 4px solid var(--primary); margin-bottom: 20px; }

/* Step 4 - Pagamento e Planos */
.payment-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0; }
.payment-card input { display: none; }
.payment-design { border: 2px solid #f0f0f0; padding: 15px; border-radius: 12px; text-align: center; cursor: pointer; transition: 0.3s; height: 100%; }
.payment-card input:checked + .payment-design { border-color: var(--primary); background: #f0f4ff; }
.info-box-alert { display: none; background: #fff8e1; color: #b78103; padding: 15px; border-radius: 10px; font-size: 0.85rem; margin-top: 15px; border: 1px solid #ffe082; }

.plan-row { border: 1px solid #eee; padding: 18px; border-radius: 12px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; position: relative; }
.plan-row.selected { border: 2px solid var(--primary); background: #f0f4ff; }
.discount-tag { position: absolute; top: -10px; left: 15px; background: #FF4500; color: white; padding: 2px 8px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; }
.discount-tag.gold { background: var(--gold); color: #000; }
.discount-tag.blue { background: var(--blue-tag); }
/* Box Laranja para Dinheiro */
.info-box-orange {
    display: none; /* Escondido por padrão */
    background: #fff4e6;
    border-left: 5px solid #fd7e14;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    color: #d9480f;
    font-size: 0.85rem;
    align-items: center;
    gap: 15px;
}

/* Esta classe será adicionada pelo JavaScript */
.info-box-orange.active {
    display: flex; 
    animation: fadeIn 0.3s ease;
}

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

/* Grid de Pagamento com ícones */
.payment-options-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.pay-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.pay-content i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #666;
}

.pay-card input { display: none; }

/* Selecionado (Azul Padrão) */
.pay-card:has(input:checked) {
    border-color: var(--primary);
    background: #f0f4ff;
}
.pay-card:has(input:checked) i { color: var(--primary); }

/* Cores dos Botões */
.btn-primary.btn-reserve {
    background-color: #28a745 !important; /* Verde */
}

/* Apenas quando o input com valor 'cash' for selecionado, o card dele fica verde */
.payment-card input[value="cash"]:checked + .payment-design {
    border-color: #28a745 !important;
    background: #f0fff4 !important;
    color: #28a745 !important;
}

.payment-card input[value="cash"]:checked + .payment-design i {
    color: #28a745 !important;
}

/* Estilos para Pix e Cartão (Mantendo o padrão Azul) */
.payment-card input[value="pix"]:checked + .payment-design,
.payment-card input[value="card"]:checked + .payment-design {
    border-color: var(--primary) !important;
    background: #f0f4ff !important;
    color: var(--primary) !important;
}

.payment-card input[value="pix"]:checked + .payment-design i,
.payment-card input[value="card"]:checked + .payment-design i {
    color: var(--primary) !important;
}

video/* Estado inicial do Plano */
.plan-row {
    border: 2px solid #eee; /* Borda padrão */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover: Borda Verde ao passar o mouse */
.plan-row:hover {
    border-color: #32CD32; /* Verde Lima/Forte */
    transform: translateY(-2px); /* Leve efeito de flutuar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Selecionado: Borda Azul */
.plan-row.selected {
    border-color: var(--primary) !important; /* Azul */
    background-color: #f0f4ff;
}

/* Garantir que o hover não mude a cor se já estiver selecionado azul */
.plan-row.selected:hover {
    border-color: var(--primary) !important;
}

/* Imagem Lateral */
.image-section { width: 40%; position: relative; background: #000; }
.bg-image { position: absolute; width: 100%; height: 100%; opacity: 0; transition: 1s ease; }
.bg-image.active { opacity: 0.6; }
.bg-image img { width: 100%; height: 100%; object-fit: cover; }
.overlay-text { position: absolute; bottom: 10%; left: 10%; color: white; z-index: 10; }

/* Final Success */
.success-content { text-align: center; padding: 30px 0; }
.icon-circle { width: 70px; height: 70px; background: #32CD32; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }
.ticket { background: #f8f9fa; padding: 20px; border-radius: 15px; margin: 20px 0; border: 1px dashed #ccc; }
.ticket-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.ticket-total { border-top: 1px solid #ddd; padding-top: 10px; font-weight: 800; color: var(--primary); font-size: 1.1rem; }

/* Buttons */
.actions { display: flex; gap: 15px; margin-top: 30px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 16px 30px; border-radius: 12px; cursor: pointer; font-weight: 600; flex: 2; transition: 0.3s; }
.btn-sec { background: #f0f0f0; color: #666; border: none; padding: 16px 20px; border-radius: 12px; cursor: pointer; flex: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(65,105,225,0.3); }

/*CSS para mudar as frases das imagens */ 
.plan-benefits {
    list-style: none;
    margin-top: 8px;
    padding: 0;
}

.plan-benefits li {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-benefits li i {
    font-size: 0.7rem;
    color: var(--primary); /* Ou var(--gold) para o plano anual */
}

.discount-tag.gold {
    background: linear-gradient(45deg, #d4af37, #f9e29c);
    color: #000;
    font-weight: 800;
}
/* O traço em cima do preço antigo */
.price-old {
    display: block;
    text-decoration: line-through; /* Cria o risco horizontal */
    text-decoration-color: #e74c3c; /* Cor vermelha suave para destacar o desconto */
    color: #999;
    font-size: 0.85rem;
    margin-bottom: -2px;
}

.price-current {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #1a1a1a; /* Cor forte para o preço atual */
}

/* Ajuste para o valor mensal (R$ 195,50) não quebrar a linha */
.plan-value {
    text-align: right;
    white-space: nowrap;
    min-width: 110px;
}
/* HOVER VERDE / SELEÇÃO AZUL */
.plan-row { border: 2px solid #eee; transition: 0.3s; padding: 20px; border-radius: 12px; margin-bottom: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.plan-row:hover { border-color: #32CD32; }
.plan-row.selected { border-color: var(--primary) !important; background: #f0f4ff; }

.overlay-text { transition: opacity 0.3s ease; }
.info-box-alert { display: none; background: #fff3cd; padding: 10px; border-radius: 8px; margin-top: 10px; color: #856404; font-size: 0.85rem; }
/* Botões do Step 2 */
.options-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.opt-btn {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.opt-btn:hover { border-color: #32CD32; }
.opt-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* Planos */
.plan-row:hover { border-color: #32CD32; }
.plan-row.selected { border-color: var(--primary) !important; background: #f0f4ff; }
.plan-benefits { list-style: none; padding: 0; margin-top: 5px; font-size: 0.8rem; color: #666; }
.plan-benefits i { color: #32CD32; margin-right: 5px; }

/* Classe que será aplicada dinamicamente via JS */
/* Efeito de texto dourado */
.gold-status {
    background: linear-gradient(to right, #BF953F, #B38728, #B38728, #B38728, #AA771C);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
    display: inline-block;
}

/* Efeito no quadrado .ticket quando for Black Diamond */
.ticket.gold-theme {
    border: 2px solid #d4af37 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background-color: #fffdf5; /* Tom champagne suave */
}
/* Opcional: Um brilho suave no card do ticket se for Gold */
.ticket-container.gold-theme {
    border: 2px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Animação do ciclo de cores premium */
@keyframes colorCycle {
    0%   { color: #2ecc71; } /* Verde */
    33%  { color: #4169E1; } /* Azul Royal */
    66%  { color: #e67e22; } /* Laranja */
    100% { color: #2ecc71; } /* Volta ao Verde */
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.overlay-text h3 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.9); /* Sombra pesada para leitura */
    
    /* Aplicação da animação */
    animation: colorCycle 8s infinite ease-in-out;
}

.overlay-text p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 300;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.8);
}

/* AJUSTES PARA CELULAR (Telas até 768px) */
@media (max-width: 768px) {
    
    /* 1. Inverte a ordem para a imagem não empurrar o formulário para baixo */
    .container {
        display: flex;
        flex-direction: column-reverse; /* Formulário em cima, imagem embaixo */
        height: auto;
        overflow-y: auto;
    }

    .form-section {
        width: 100%;
        padding: 20px;
        min-height: 100vh; /* Garante que o formulário ocupe a tela toda */
    }

    /* 2. Esconde ou diminui a seção de imagem no mobile para não poluir */
    .image-section {
        display: none; /* Em formulários complexos, esconder a imagem ajuda na conversão */
    }

    /* 3. Títulos menores para não quebrar linha de forma feia */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    /* 4. Ajuste dos botões 40/60 no celular */
    .step-buttons {
        flex-direction: row; /* Mantém lado a lado, ou 'column' se preferir um sobre o outro */
        gap: 10px;
    }

    .btn-secondary {
        flex: 0 0 35%; /* Reduzi um pouco para dar mais espaço ao principal */
        font-size: 0.9rem;
    }

    .btn-primary {
        flex: 1;
        font-size: 0.9rem;
    }

    /* 5. Inputs e Selects precisam de fontes maiores (mínimo 16px) 
       para o iOS não dar zoom automático ao clicar */
    input, select, textarea {
        font-size: 16px !important;
        padding: 12px;
    }
}
