/**
 * Estilos Compartilhados para Redirectors
 * Design moderno e responsivo para páginas de captura
 * Versão consolidada e livre de conflitos
 */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ===== PARTÍCULAS DE FUNDO ===== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* ===== CONTAINER PRINCIPAL ===== */
.main-container {
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    transition: all 0.5s ease;
}

/* ===== TELA DE LOADING ===== */
.loading-screen {
    display: block;
}

.car-icon {
    font-size: 60px;
    color: #fff;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.secure-badge {
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    animation: secureGlow 2s ease-in-out infinite alternate;
}

@keyframes secureGlow {
    from { box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }
    to { box-shadow: 0 0 25px rgba(0, 255, 136, 0.4); }
}

/* ===== BARRA DE PROGRESSO ===== */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff6b6b, #4ecdc4);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    animation: gradientMove 2s ease-in-out infinite,
               progressMove 5s linear forwards;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes progressMove {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== TEXTO DE STATUS ===== */
.status-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 25px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== TELA DO QUIZ ===== */
.quiz-screen {
    display: none;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== FORMULÁRIOS ===== */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== MENSAGENS DE ERRO ===== */
.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* ===== BOTÕES ===== */
.submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    text-align: center;
    z-index: 100;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
    .main-container {
        padding: 30px 20px;
    }
    
    .car-icon {
        font-size: 50px;
    }
    
    .quiz-title {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 15px;
        width: 95%;
    }
    
    .quiz-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .footer {
        padding: 8px 15px;
    }
    
    .footer a {
        font-size: 11px;
        margin: 0 10px;
    }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
.fade-in-help {
    animation: fadeInHelp 0.5s ease-in;
}

@keyframes fadeInHelp {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== ESTADOS DE VALIDAÇÃO ===== */
.form-group input.error,
.form-group select.error {
    border: 2px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.form-group input.success,
.form-group select.success {
    border: 2px solid #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

/* ===== LOADING STATES ===== */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

/* ===== FINAL DO ARQUIVO ===== */
