/* ---- VARIÁVEIS DE COR - TEMA FUTURISTA PREMIUM (V2) ---- */
:root {
    --cor-fundo: #0A0618; /* Um tom de roxo/preto bem profundo */
    --cor-container: #1A142D; /* Roxo escuro para o painel */
    
    --cor-texto-principal: #F0F0F0; /* Branco levemente acinzentado */
    --cor-texto-secundario: #A0A0B0; /* Cinza-azulado para descrições */

    /* Paleta Vibrante */
    --cor-magenta: #E839F6;
    --cor-roxo: #8257E5;
    --cor-ciano: #00D2FF;
    --cor-amarelo-alerta: #F9ED32; /* Para erros e alertas */

    /* Gradientes */
    --gradiente-titulo: linear-gradient(90deg, var(--cor-magenta) 0%, var(--cor-ciano) 100%);
    --gradiente-botao: linear-gradient(90deg, var(--cor-magenta) 0%, var(--cor-roxo) 100%);
}

/* ---- RESET E CONFIGURAÇÕES GERAIS ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-fundo);
    /* Fundo com um gradiente radial sutil para dar profundidade */
    background-image: radial-gradient(circle at top left, rgba(130, 87, 229, 0.2), transparent 40%),
                      radial-gradient(circle at bottom right, rgba(232, 57, 246, 0.2), transparent 40%);
    color: var(--cor-texto-principal);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    min-height: 100vh;
}

/* ---- CONTAINER PRINCIPAL ---- */
.container {
    width: 100%;
    max-width: 800px;
    background-color: var(--cor-container);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 45px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); /* Sombra mais forte para efeito "flutuante" */
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- CABEÇALHO ---- */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--gradiente-titulo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--cor-texto-secundario);
    font-size: 1rem;
}

/* ---- ESTRUTURA DO FORMULÁRIO ---- */
fieldset {
    border: none;
    margin-bottom: 30px;
}

legend {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
    margin-bottom: 25px;
    padding-bottom: 10px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

fieldset h3 {
    color: var(--cor-ciano);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* ---- GRUPO DE CAMPOS DO FORMULÁRIO ---- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.05rem;
}

.description {
    font-size: 0.85rem;
    color: var(--cor-texto-secundario);
    margin-bottom: 10px;
}

/* ---- ESTILO DOS INPUTS E TEXTAREA ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #444; /* Borda cinza escura sutil */
    color: var(--cor-texto-principal);
    padding: 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--cor-roxo); /* Borda roxa ao focar */
    box-shadow: 0 0 10px rgba(130, 87, 229, 0.6); /* Brilho roxo */
}

/* ---- BOTÃO DE ENVIO ---- */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradiente-botao);
    border: none;
    color: var(--cor-texto-principal);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(232, 57, 246, 0.4);
}

/* ---- MENSAGENS DE ERRO ---- */
.form-group .error-message {
    color: var(--cor-amarelo-alerta);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 600;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--cor-amarelo-alerta);
}

.form-group.error .error-message {
    display: block;
}

/* ---- RESPONSIVIDADE ---- */
@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }
    .container {
        padding: 25px;
    }
    h1 {
        font-size: 2.1rem;
    }
    legend {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 0.9rem;
    }
    legend {
        font-size: 1.2rem;
    }
    label {
        font-size: 1rem;
    }
}