/* =====================================================
   IGOR DA MORINGA - STYLE.CSS
   Design focado em público +50 anos
   Cores: Verde Floresta (#1B4332) e Marrom Terra
   ===================================================== */

/* ========== VARIÁVEIS CSS ========== */
:root {
    --verde-floresta: #1B4332;
    --verde-escuro: #14532d;
    --verde-medio: #166534;
    --verde-claro: #22c55e;
    --verde-bg: #f0fdf4;
    
    --marrom-terra: #8B5A2B;
    --marrom-escuro: #6B4423;
    --marrom-claro: #D2B48C;
    --marrom-bg: #fdf8f6;
    
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 28px;
    
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #333;
    background-color: #f3f4f6;
}

/* ========== HEADER ========== */
.header-main {
    background: linear-gradient(135deg, var(--verde-floresta) 0%, var(--verde-escuro) 100%);
    box-shadow: var(--shadow);
}

/* ========== BARRA DE PROGRESSO ========== */
.progress-bar-fill {
    background: linear-gradient(90deg, var(--verde-claro) 0%, var(--verde-medio) 100%);
}

/* ========== ETAPAS ========== */
.step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.step.active {
    display: block;
}

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

/* ========== CARDS ========== */
.card-main {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid #e5e7eb;
}

/* ========== BOTÕES ========== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-floresta) 100%);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 700;
    padding: 16px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.3);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--marrom-terra) 0%, var(--marrom-escuro) 100%);
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 700;
    padding: 16px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
    width: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-back-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-back-full:hover {
    background: #e5e7eb;
}

/* ========== ÍCONE CIRCULAR ========== */
.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--verde-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-medio);
    flex-shrink: 0;
}

/* ========== FORMULÁRIO ========== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--font-size-base);
    border: 2px solid #d1d5db;
    border-radius: var(--radius);
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--verde-medio);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

.privacy-notice {
    display: flex;
    align-items: center;
    background: var(--verde-bg);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--verde-escuro);
}

/* ========== BENEFÍCIOS ========== */
.benefits-box {
    background: var(--verde-bg);
    border: 2px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 16px;
}

/* ========== DECISÃO ========== */
.decision-box {
    background: var(--marrom-bg);
    border: 2px solid var(--marrom-claro);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

/* ========== VALORES ========== */
.value-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-floresta) 100%);
    color: white;
    padding: 20px 16px;
    border-radius: var(--radius);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Botões compactos para grid 5x2 */
.value-btn-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-floresta) 100%);
    color: white;
    padding: 12px 4px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 0;
}

.value-btn-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.value-btn-compact.selected {
    background: var(--verde-escuro);
    border-color: var(--verde-claro);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.4);
}

.value-btn-compact.popular {
    border-color: gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.value-btn:hover {
    transform: scale(1.05);
}

.value-btn.selected {
    background: var(--verde-escuro);
    border-color: var(--verde-claro);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.4);
}

.value-btn.popular {
    border-color: gold;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: gold;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

.custom-value-box {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 16px;
}

.custom-value-input {
    flex: 1;
    padding: 12px 16px;
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--verde-medio);
    border-radius: var(--radius);
    background: white;
}

.custom-value-input:focus {
    outline: none;
    border-color: var(--verde-escuro);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.selected-value-box {
    background: var(--verde-bg);
    border: 3px solid var(--verde-medio);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

/* ========== CHECKOUT PIX ========== */
.timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef3c7;
    color: #92400e;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
}

.timer-box.urgent {
    background: #fee2e2;
    color: #dc2626;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.amount-box {
    background: var(--verde-bg);
    padding: 10px 16px;
    border-radius: var(--radius);
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
}

.qr-code-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--verde-bg) 0%, #dcfce7 100%);
    border: 3px solid var(--verde-medio);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pix-code-box {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 16px;
}

.pix-code-input {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-family: monospace;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    margin-bottom: 12px;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--verde-medio);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--verde-escuro);
}

.copy-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--verde-medio);
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
}

.payment-status {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.payment-status.success {
    background: var(--verde-bg);
    border-color: var(--verde-medio);
}

.payment-status.error {
    background: #fee2e2;
    border-color: #fca5a5;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========== ÁREA DE MEMBROS ========== */
.welcome-banner {
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-floresta) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--verde-bg);
    border: 2px solid var(--verde-medio);
    color: var(--verde-escuro);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.pdf-icon {
    width: 56px;
    height: 56px;
    background: #fee2e2;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--verde-medio);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--verde-escuro);
}

.youtube-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.video-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #d1d5db;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-title {
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    color: #b91c1c;
}

.footer-card {
    background: #f3f4f6;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.instagram:hover {
    color: #e1306c;
}

.social-link.whatsapp:hover {
    color: #25d366;
}

/* ========== FOOTER ========== */
.footer-main {
    background: #1f2937;
    color: white;
    padding: 20px 0;
    margin-top: 32px;
}

/* ========== UTILITÁRIOS ========== */
.hidden {
    display: none !important;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 640px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-xl: 22px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 20px;
    }
    
    .value-btn {
        padding: 16px 12px;
    }
    
    .qr-code-box {
        width: 180px;
        height: 180px;
    }
}
