/* ==========================================================================
   PERSONAL CAR SILVA — MICRO-MODAL DE CAPTURA RÁPIDA DE WHATSAPP
   Design de Alto Padrão Automotivo & Tipografia Otimizada (Legibilidade Total)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BOTÃO FLUTUANTE CIRCULAR DE WHATSAPP (CANTO INFERIOR DIREITO)
   -------------------------------------------------------------------------- */
.btn-whatsapp-circular {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 99995;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 3px 10px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp-circular i {
    color: #ffffff;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-whatsapp-circular:hover {
    color: #ffffff;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.58), 0 5px 14px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp-circular:hover i {
    transform: scale(1.05);
}

.btn-whatsapp-circular:active {
    transform: scale(0.96);
}

/* Pulso animado suave ao redor do botão */
.btn-whatsapp-circular .whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.6;
    animation: waCircularPulse 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    pointer-events: none;
}

@keyframes waCircularPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   2. OVERLAY & BACKDROP DO MICRO-MODAL
   -------------------------------------------------------------------------- */
.whatsapp-quick-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background-color: rgba(10, 15, 29, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.whatsapp-quick-modal * {
    box-sizing: border-box;
}

.whatsapp-quick-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Card Branco Centralizado */
.whatsapp-quick-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 485px;
    padding: 40px 36px 32px;
    position: relative;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.whatsapp-quick-modal.active .whatsapp-quick-card {
    transform: translateY(0) scale(1);
}

/* Botão Fechar (X) no topo direito */
.modal-close-x {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
    z-index: 10;
}

.modal-close-x:hover,
.modal-close-x:focus {
    color: #0b2e4c;
    background-color: #f1f5f9;
    outline: none;
}

/* Ícone Circular no Topo */
.wa-modal-icon-badge {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.18);
}

.wa-modal-icon-badge i {
    font-size: 38px !important;
}

.wa-modal-icon-badge.success {
    background: #e8f8ef;
    color: #22c55e;
}

.wa-modal-icon-badge.success i {
    font-size: 34px !important;
}

/* Títulos Elegantes (Playfair Display / Serif Refinado) */
.wa-modal-title {
    color: #0d2e4c;
    font-family: 'Playfair Display', Georgia, 'Outfit', serif;
    font-size: 27px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.wa-modal-subtitle {
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 26px;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   3. FORMULÁRIO DE ENTRADA (ETAPA 1)
   -------------------------------------------------------------------------- */
.wa-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.wa-form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 15.5px;
    color: #0d2e4c;
    letter-spacing: 0.2px;
}

.wa-form-input {
    width: 100%;
    height: 54px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid #e7e2d8;
    background-color: #faf8f5;
    color: #1e293b;
    font-size: 16.5px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.wa-form-input::placeholder {
    color: #94a3b8;
    font-size: 16px;
}

.wa-form-input:focus {
    outline: none;
    border-color: #0d2e4c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(13, 46, 76, 0.14);
}

.wa-form-input.is-invalid {
    border-color: #ef4444;
    background-color: #fff5f5;
}

.wa-form-error {
    display: none;
    color: #dc2626;
    font-size: 13.5px;
    margin-top: 6px;
    font-weight: 500;
}

/* Botão Azul Marinho de Envio */
.btn-wa-submit {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 24px;
    border-radius: 40px;
    border: none;
    background: #0f3b57;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(15, 59, 87, 0.28);
    margin-top: 22px;
    letter-spacing: 0.3px;
}

.btn-wa-submit i {
    font-size: 22px !important;
}

.btn-wa-submit:hover {
    background: #09273c;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(15, 59, 87, 0.38);
}

.btn-wa-submit:active {
    transform: translateY(0);
}

.btn-wa-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Selo de Proteção LGPD */
.wa-lgpd-caption {
    font-size: 13.5px;
    color: #64748b;
    margin-top: 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

.wa-lgpd-caption i {
    font-size: 13px !important;
    color: #64748b;
}

/* --------------------------------------------------------------------------
   4. TELA DE CONFIRMAÇÃO / SUCESSO (ETAPA 2)
   -------------------------------------------------------------------------- */
.wa-success-box {
    background: #f7f4ed;
    border: 1.5px solid #ebe5da;
    border-radius: 16px;
    padding: 24px 20px;
    margin: 20px 0;
    text-align: center;
}

.wa-success-text {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

.wa-success-text strong {
    color: #0b2e4c;
    font-weight: 800;
    font-size: 17.5px;
    text-transform: uppercase;
}

.wa-success-phone {
    margin-top: 14px;
    font-weight: 800;
    color: #0099cc;
    font-size: 26px;
    letter-spacing: 0.5px;
}

.wa-success-subtext {
    color: #475569;
    font-size: 15.5px;
    line-height: 1.55;
    margin: 0 0 24px;
}

/* Ações de Sucesso (2 Botões) */
.wa-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botão 1: Verde WhatsApp */
.btn-wa-direct-chat {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    border: 1px solid #25D366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 17px;
    padding: 15px 24px;
    border-radius: 40px;
    text-decoration: none !important;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    letter-spacing: 0.3px;
}

.btn-wa-direct-chat i {
    font-size: 22px !important;
}

.btn-wa-direct-chat:hover {
    background: #1ebc57;
    border-color: #1ebc57;
    color: #ffffff !important;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-wa-direct-chat:active {
    transform: translateY(0);
}

/* Botão 2: Fechar esta janela (Borda sutil) */
.btn-wa-close-secondary {
    width: 100%;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 40px;
    border: 1.5px solid #dcd7ce;
    background: transparent;
    color: #0b2e4c;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-wa-close-secondary:hover {
    background-color: #f1ede4;
    border-color: #c9c3b8;
    color: #061c30;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVIDADE MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    /* No mobile, o botão WhatsApp flutua acima da barra de botões fixos */
    .btn-whatsapp-circular {
        bottom: 75px;
        right: 18px;
        width: 58px;
        height: 58px;
        font-size: 32px;
    }

    .whatsapp-quick-card {
        padding: 32px 22px 26px;
        border-radius: 22px;
        max-width: 95%;
    }

    .wa-modal-icon-badge {
        width: 68px;
        height: 68px;
        margin-bottom: 16px;
    }

    .wa-modal-icon-badge i {
        font-size: 34px !important;
    }

    .wa-modal-title {
        font-size: 23px;
    }

    .wa-modal-subtitle {
        font-size: 14.5px;
        margin-bottom: 20px;
    }

    .wa-form-group {
        margin-bottom: 16px;
    }

    .wa-form-label {
        font-size: 14.5px;
    }

    .wa-form-input {
        height: 50px;
        font-size: 16px; /* Evita auto-zoom no iOS */
        padding: 12px 16px;
    }

    .btn-wa-submit,
    .btn-wa-direct-chat {
        font-size: 16px;
        min-height: 52px;
        padding: 14px 18px;
    }

    .wa-lgpd-caption {
        font-size: 12.5px;
        margin-top: 15px;
    }

    .wa-success-box {
        padding: 20px 16px;
    }

    .wa-success-text {
        font-size: 15.5px;
    }

    .wa-success-phone {
        font-size: 23px;
    }

    .wa-success-subtext {
        font-size: 14.5px;
    }

    .btn-wa-close-secondary {
        min-height: 48px;
        font-size: 15px;
    }
}
