/* ===============================
   BASE
================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #f7fbff, #eef3f8);
    font-family: 'Inter', Arial, sans-serif;
    color: #333;
}

/* ===============================
   CONTAINER (3D CARD)
================================ */
.container {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f1f5fa);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.container:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 60px rgba(0,0,0,0.12),
        0 10px 20px rgba(0,0,0,0.08);
}

/* ===============================
   TÍTULOS
================================ */
h1 {
    margin-top: 0;
    color: #0a58ca;
}

.subtitle {
    color: #555;
    margin-bottom: 24px;
    font-size: 14px;
}

/* ===============================
   CAMPOS OBRIGATÓRIOS
================================ */
.campo-obrigatorio {
    position: relative;
    margin-bottom: 22px;
}

.campo-obrigatorio label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.asterisco {
    color: #e74c3c;
}

/* ===============================
   INPUTS (3D + ANIMAÇÃO)
================================ */
input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background: #f9fbfd;
    font-size: 15px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #0a58ca;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(10,88,202,0.15),
        inset 0 2px 4px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* ===============================
   VALIDAÇÃO VISUAL
================================ */
input:valid:not(:placeholder-shown) {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.15);
}

input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

/* ===============================
   MENSAGEM DE ERRO
================================ */
.mensagem-erro,
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

input:invalid:not(:focus):not(:placeholder-shown) + .mensagem-erro,
input:invalid:not(:focus):not(:placeholder-shown) + .error-message {
    display: block;
}

/* ===============================
   STATUS DO CEP
================================ */
#cepStatus {
    display: block;
    margin-top: 6px;
    min-height: 18px;
    font-size: 14px;
    transition: color 0.3s ease;
}

#cepStatus.carregando {
    color: #0a58ca;
    animation: pulse 1s infinite;
}

#cepStatus.sucesso {
    color: #2ecc71;
}

#cepStatus.erro {
    color: #e74c3c;
}

@keyframes pulse {
    0% { opacity: .5; }
    50% { opacity: 1; }
    100% { opacity: .5; }
}

/* ===============================
   INFO CAMPOS OCULTOS
================================ */
.hidden-fields-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: #666;
}

.hidden-fields-info span {
    color: #2ecc71;
    font-weight: bold;
}

/* ===============================
   BOTÕES (PUSH EFFECT)
================================ */
button,
.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #0a58ca, #084298);
    box-shadow: 0 8px 16px rgba(10,88,202,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(10,88,202,0.45);
}

button:active,
.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(10,88,202,0.4);
}

button:disabled,
.btn-submit:disabled {
    background: #9aa7bd;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===============================
   BOTÃO WHATSAPP
================================ */
.whatsapp-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 22px;
    background: linear-gradient(145deg, #25d366, #1ebc59);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 6px 14px rgba(37,211,102,0.4);
    transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
}

/* ===============================
   TEXTO AUXILIAR
================================ */
small {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.requerido-texto {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.requerido-texto .asterisco {
    color: #e74c3c;
}

/* ===============================
   UTILIDADES
================================ */
.hidden {
    display: none;
}

.lgpd-float {
    text-decoration: none;
    position: fixed;
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.45;
    transition: all 0.25s ease;
    backdrop-filter: blur(3px);
}

.lgpd-float:hover {
    opacity: 0.95;
    transform: scale(1.05);
}

.lgpd-tooltip {
    position: absolute;
    bottom: 48px;
    right: 0;
    width: max-content;
    max-width: 260px;
    background: rgba(0,0,0,0.85);
    color: #ddd;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.lgpd-float:hover .lgpd-tooltip {
    opacity: 1;
    transform: translateY(0);
}
