/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --primary-color: #0066cc;
    --primary-dark: #003399;
    --secondary-color: #28a745;
    
    /* Cores de Fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    
    /* Cores de Texto */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    
    /* Bordas e Sombras */
    --border-radius: 12px;
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Transições */
    --transition-normal: 0.3s ease;
    
    /* Tipografia */
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    /* CORREÇÃO: Inicia com opacidade 0, mas a classe .ready controlará a transição */
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
}

/* CORREÇÃO: Classe que será adicionada via JS para ativar a visibilidade */
body.ready {
    opacity: 1;
}


/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none; /* Inicia escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex; /* Mostra quando a classe .show é adicionada */
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.hero-content {
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), #20c997);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

/* ===== TRIAL FORM ===== */
.trial-form-container {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid #eee;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #3385d6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.form-icon i {
    font-size: 2rem;
    color: white;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text-secondary);
}

/* ===== FORM STEPS ===== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.step-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input.valid { border-color: var(--secondary-color); }
.form-group input.invalid { border-color: #dc3545; }

.field-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.field-feedback.valid { color: var(--secondary-color); }
.field-feedback.invalid { color: #dc3545; }

/* ===== FORM ACTIONS & FOOTER ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), #20c997);
    color: white;
    flex: 1;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid #e9ecef;
}

.btn-next { flex: 1; }

.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.badge-item i { color: var(--secondary-color); }

/* ===== SUCCESS MODAL ===== */
.success-animation .checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-animation .checkmark {
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

.success-info { margin: 2rem 0; }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-item i { font-size: 1.5rem; margin-top: 0.25rem; }

.next-steps {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .trial-form-container { margin-top: 3rem; }
    .form-actions { flex-direction: column; }
}

@media (max-width: 768px) {
    .hero-title, .hero-subtitle { text-align: center; }
}