/* ================================================
   Rezoluti — BPO Financeiro para Médicos
   Landing Page Styles
   ================================================ */

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Top Bar Gradient --- */
.top-bar {
    background: linear-gradient(90deg, #AF172A 0%, #8B1222 100%);
}

/* --- Form Card Shadow --- */
.card-shadow {
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.05);
}

/* --- CTA Pulse Animation (Vinho — CTAs gerais) --- */
.pulse-cta {
    animation: pulse-brand 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-brand {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(175, 23, 42, 0.45);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(175, 23, 42, 0);
    }
}

/* --- CTA Pulse Animation (Dark — botão do formulário #0F172A) --- */
.pulse-cta-dark {
    animation: pulse-dark 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dark {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(15, 23, 42, 0);
    }
}

/* --- Select Arrow Custom --- */
select.custom-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* --- FAQ Accordion --- */
.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item .faq-content.hidden {
    max-height: 0;
}

.faq-item.open .faq-content {
    max-height: 500px;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

/* --- CTA Section Background Blobs --- */
.cta-blob-left {
    position: absolute;
    top: -40px;
    left: 15%;
    width: 280px;
    height: 280px;
    background: #AF172A;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}

.cta-blob-right {
    position: absolute;
    bottom: -60px;
    right: 15%;
    width: 360px;
    height: 360px;
    background: #AF172A;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.10;
    pointer-events: none;
}

/* --- Form Field Error State --- */
.field-has-error input,
.field-has-error select {
    border-color: #F87171 !important;
    background-color: #FEF2F2 !important;
}

/* --- Cookie Banner --- */
.cookie-banner {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Focus States (Acessibilidade) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #AF172A;
    outline-offset: 2px;
    border-radius: 4px;
}
