/* RESET E CONFIGURAÇÃO GLOBAL */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* VARIÁVEIS DE CORES BASEADAS NA NOVA IDENTIDADE VISUAL AZUL */
:root {
    --bg-beige: #f6f3ee;
    --primary-blue: #0056b3; 
    --light-blue: #e6f2fa;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --border-light: #e6e0d8;
    
    /* Cores dos Ícones dos Cards */
    --blue-icon: #0056b3;
    --blue-bg: #e6f2fa;
    --yellow-icon: #d97706;
    --yellow-bg: #fdf3e8;
}

body {
    background: url('https://i.postimg.cc/fyBBtNB4/Whats-App-Image-2026-07-08-at-14-46-54.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    padding: 5px 10px; 
    min-height: 100vh;
}

.page-container { max-width: 1020px; margin: 5px auto 0 auto; position: relative; }

/* HEADER E WIDGETS DE TOPO */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 6px; padding-top: 5px; } 

.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { height: 65px; width: auto; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

.top-widgets { display: flex; gap: 15px; color: #ffffff; font-weight: 600; font-size: 0.65rem; text-shadow: 0 2px 4px rgba(0,0,0,0.7);}
.widget { display: flex; align-items: center; gap: 4px; }
.widget i { color: #ffffff; font-size: 0.8rem; }

.rating-box { display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.7);}
.rating-box p { font-size: 0.55rem; color: #ffffff; line-height: 1.2; font-weight: 600;}
.stars { color: #f59e0b; font-weight: bold; font-size: 0.6rem; display: flex; align-items: center; gap: 2px; margin-left: 6px;}

/* COLUNA ESQUERDA E DIREITA COM MAIS RESPIRO */
.main-content { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 15px; align-items: stretch; } 

.left-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; position: relative;}
.left-top-content { position: relative; z-index: 1; }

/* TEXTOS DA ESQUERDA - COMPACTOS */
.hero-text-wrapper { max-width: 520px; position: relative; z-index: 2; margin-bottom: 8px; text-shadow: 0 2px 6px rgba(0,0,0,0.8); } 
.tag-blue { color: #ffffff; font-weight: 800; text-transform: uppercase; font-size: 0.6rem; margin-bottom: 6px; letter-spacing: 1px; }

h1 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 8px; font-weight: 800; color: #ffffff; max-width: 500px;}
.highlight-blue { color: #66b2ff; }
.highlight-dark { color: #ffffff; }
.subtitle { color: #f0f0f0; font-size: 0.7rem; line-height: 1.3; font-weight: 600; }

/* GRID DE 3 CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; margin-bottom: 10px; max-width: 530px; position: relative; z-index: 2;}
.card-wrapper { text-align: center; }
.card { background: rgba(255,255,255,0.95); border: 1px solid #eaeaea; padding: 8px 6px; border-radius: 10px; transition: all 0.3s ease; height: 100%; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05);}
.card.active { border-color: var(--primary-blue); background: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 86, 179, 0.2); border-width: 2px;}

.card-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.95rem; margin: 0 auto 6px auto; transition: 0.3s;}
.card-icon-blue-light { background: var(--light-blue); color: var(--primary-blue); }
.card.active .card-icon-blue-light { background: var(--primary-blue); color: #fff; }
.card-icon-dark-blue { background: #e6f2fa; color: #003366; }
.card.active .card-icon-dark-blue { background: #003366; color: #fff; }
.card-icon-yellow { background: var(--yellow-bg); color: var(--yellow-icon); }
.card.active .card-icon-yellow { background: var(--yellow-icon); color: #fff; }

.card h3 { font-size: 0.7rem; margin-bottom: 4px; font-weight: 800; color: var(--text-dark);}
.card p { font-size: 0.55rem; color: var(--text-gray); line-height: 1.2; font-weight: 600;}

/* BANNER WHATSAPP */
.whatsapp-banner { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.95); border: 1px solid #eaeaea; padding: 6px 10px; border-radius: 10px; max-width: 450px; transition: all 0.3s ease; margin-bottom: 10px;}
.whatsapp-banner:hover { border-color: var(--primary-blue); box-shadow: 0 4px 15px rgba(0, 86, 179, 0.15);}
.whats-info { display: flex; align-items: center; gap: 8px; }
.whats-info i { font-size: 1.2rem; color: #25d366; }
.whats-info p { font-size: 0.65rem; color: var(--text-gray); line-height: 1.2; font-weight: 500;}
.whats-info strong { color: var(--text-dark); font-weight: 800;}
.whats-link { color: var(--primary-blue); text-decoration: none; font-weight: 800; font-size: 0.75rem; white-space: nowrap; transition: 0.2s;}

/* SEÇÃO DE LOGOS */
.operators-section { margin-bottom: 8px; }
.operators-section h3 { font-size: 0.7rem; margin-bottom: 8px; font-weight: 800; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.7);}

/* GRADE DE OPERADORAS DA VITRINE 3x3 */
.logos-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logo-pill { background: rgba(255,255,255,0.95); padding: 4px 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; height: 100px; border: 1px solid #eaeaea; box-shadow: 0 2px 5px rgba(0,0,0,0.02); width: 100%;}
.logo-pill img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; transform: scale(1.15); }

/* ZOOM DA MEDSÊNIOR AJUSTADO */
.medsenior-logo {
    transform: scale(2.6) !important;
}

/* FOOTER ESQUERDO */
.left-bottom-content { margin-top: auto; position: relative; z-index: 2; padding-top: 4px; }
.footer-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 8px; padding-bottom: 4px; text-shadow: 0 2px 4px rgba(0,0,0,0.7);}
.f-widget { display: flex; align-items: flex-start; gap: 4px; font-size: 0.55rem; color: #ffffff; line-height: 1.2; font-weight: 600;}
.f-widget i { font-size: 0.75rem; color: #ffffff; margin-top: 2px;}

/* COLUNA DIREITA - FORMULÁRIO COMPACTO */
.form-card { 
    background: #ffffff; color: var(--text-dark); padding: 12px; border-radius: 14px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); border: none;
    position: relative; z-index: 3; overflow: visible;
}

.form-header-img { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-card h2 { font-size: 1.1rem; color: var(--text-dark); font-weight: 800; margin-bottom: 2px;}
.form-sub { font-size: 0.7rem; color: var(--text-gray); font-weight: 500;}

.selection-box { display: flex; gap: 8px; margin-bottom: 10px; }
.select-btn { flex: 1; padding: 10px 6px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all 0.3s ease; color: var(--text-gray); font-weight: 600; font-size: 0.65rem;}
.select-btn i { font-size: 1.05rem; color: #aaa; transition: 0.3s; }
.select-btn:hover { border-color: var(--primary-blue); background: var(--light-blue); color: var(--primary-blue);}
.select-btn.active { border-color: var(--primary-blue); background: var(--light-blue); border-width: 2px; box-shadow: 0 4px 10px rgba(0, 86, 179, 0.1); color: var(--primary-blue);}
.select-btn.active i { color: var(--primary-blue); }

.form-divider { height: 1px; background: #eaeaea; margin-bottom: 8px; }

/* ALTERNAÇÃO DOS FORMULÁRIOS PRINCIPAIS */
.dynamic-form { display: none; opacity: 0; }
.dynamic-form.active-form { display: block; opacity: 1; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* CARROSSEL */
.carousel-viewport { position: relative; width: 100%; overflow: visible; padding-top: 2px; min-height: 200px; }
.carousel-slide { width: 100%; position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }
.carousel-slide.active-slide { position: relative; opacity: 1; pointer-events: auto; transform: translateX(0); z-index: 2; }
.carousel-slide.prev-slide { transform: translateX(-100%); z-index: 1; }
.carousel-slide.next-slide { transform: translateX(100%); z-index: 1; }

.btn-voltar-slide { background: none; border: none; color: #888; font-size: 0.65rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; transition: 0.2s; }
.btn-voltar-slide:hover { color: var(--primary-blue); }

/* VALIDAÇÃO DE CAMPOS E ESPAÇAMENTOS REDUZIDOS */
.input-group { position: relative; margin-bottom: 16px; } 
.error-border { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important; }
.error-text { color: #ef4444; font-size: 0.6rem; font-weight: 600; display: none; position: absolute; bottom: -14px; left: 4px; z-index: 5;}
.show-error .error-text { display: block; }

/* CAIXAS DE OPÇÃO (Possui Plano) */
.radio-box-group { display: flex; gap: 6px; }
.flex-col { flex-direction: column; gap: 6px; }
.radio-box { flex: 1; border: 1px solid #dcdcdc; border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.7rem; font-weight: 600; transition: all 0.2s ease; background: #fff; color: var(--text-gray);}
.radio-box input { display: none; }
.custom-radio { width: 14px; height: 14px; border: 2px solid #ccc; border-radius: 50%; display: inline-block; position: relative; transition: 0.2s; }
.radio-box:hover { border-color: var(--primary-blue); background: #fcfcfc;}
.radio-box.selected { border-color: var(--primary-blue); background: var(--light-blue); color: var(--primary-blue); box-shadow: 0 2px 6px rgba(0, 86, 179, 0.08);}
.radio-box.selected .custom-radio { border-color: var(--primary-blue); background: var(--primary-blue);}
.radio-box.selected .custom-radio::after { content: ''; position: absolute; width: 6px; height: 6px; background: #fff; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ESTILOS DE TEXTO E INPUTS COMPACTOS */
.input-label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 0.7rem; color: var(--text-dark); }
.highlight-label { font-size: 0.75rem; color: var(--text-dark); margin-bottom: 8px; font-weight: 800;}
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 12px; }
.mt-10 { margin-top: 8px; }
.text-blue { color: var(--primary-blue); }
.text-light-gray { color: #888; }
.fw-normal { font-weight: 500; }

.input-field { width: 100%; padding: 10px; border: 1px solid #dcdcdc; border-radius: 8px; font-size: 0.75rem; outline: none; background: #fff; transition: 0.3s; color: var(--text-dark); font-weight: 500;}
.input-field::placeholder, .input-field-icon::placeholder { color: #aaa; }
.input-field:focus, .input-field-icon:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1); }

/* INPUT COM ICONE DENTRO */
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon i { position: absolute; left: 12px; font-size: 0.85rem; color: #888; }
.input-field-icon { width: 100%; padding: 10px 10px 10px 32px; border: 1px solid #dcdcdc; border-radius: 8px; font-size: 0.75rem; outline: none; transition: 0.3s; color: var(--text-dark); font-weight: 500;}

/* RANGE SLIDER ESTILIZADO */
.slider-section { background: #fff; padding: 0; margin-bottom: 10px;}
.slider-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px;}
.slider-value { font-size: 1.1rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 4px;}
.styled-slider { -webkit-appearance: none; width: 100%; height: 5px; background: linear-gradient(to right, var(--primary-blue) 20%, #e0e0e0 20%); border-radius: 5px; outline: none; margin-bottom: 6px; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-blue); cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: 0.1s; }
.styled-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider-limits { display: flex; justify-content: space-between; font-size: 0.6rem; color: #888; font-weight: 600;}

/* BOTOES DAS OPERADORAS NO FORMULARIO */
.operadoras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.op-btn { background: #fff; border: 1px solid #dcdcdc; padding: 4px; border-radius: 8px; cursor: pointer; font-size: 0.75rem; color: var(--text-gray); transition: all 0.2s ease; font-weight: 600; display: flex; align-items: center; justify-content: center; height: 96px;}
.op-btn img { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; }
.op-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: #fcfcfc; box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
.op-btn.selected { background: var(--light-blue); color: var(--primary-blue); border-color: var(--primary-blue); border-width: 2px; box-shadow: 0 3px 10px rgba(0, 86, 179, 0.15);}

/* BOTOES DE IDADE NA GRADE DE 5 */
.age-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 5px; }
.age-btn { background: #fff; border: 1px solid #dcdcdc; border-radius: 6px; padding: 4px 0; font-size: 0.6rem; font-weight: 600; cursor: pointer; color: var(--text-gray); transition: 0.2s; display:flex; justify-content:center; align-items:center; text-align:center;}
.age-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: var(--light-blue); }
.age-btn:active { transform: scale(0.95); }

.age-badges-container { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; min-height: 26px; background: #f9f9f9; border-radius: 6px; padding: 4px; border: 1px dashed #dcdcdc;}
.age-badges-container:empty::before { content: 'Nenhuma idade adicionada.'; color: #aaa; font-size: 0.6rem; font-style: italic; align-self: center; margin-left: 4px;}
.age-badge { background: var(--primary-blue); color: #fff; padding: 3px 6px; border-radius: 8px; font-size: 0.6rem; font-weight: 600; display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); animation: popIn 0.2s ease;}
.age-badge i { cursor: pointer; background: rgba(255,255,255,0.2); border-radius: 50%; width: 14px; height: 14px; display: flex; justify-content: center; align-items: center; font-size: 0.5rem; transition: 0.2s;}
.age-badge i:hover { background: rgba(255,255,255,0.5); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* BOTAO FINAL DE COTAÇÃO */
.cta-btn-blue { width: 100%; padding: 12px; background: var(--primary-blue); color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 0px;}
.cta-btn-blue:hover { background: #004494; box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3); transform: translateY(-2px);}

.form-footer-center { margin-top: 12px; text-align: center; color: #888; font-size: 0.6rem; display: flex; justify-content: center; align-items: center; gap: 4px; font-weight: 500;}

/* BOTÃO WHATSAPP FLUTUANTE */
.floating-whatsapp { text-decoration: none; position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: #25d366; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.6rem; box-shadow: 0 6px 15px rgba(37,211,102,0.4); cursor: pointer; transition: 0.3s; z-index: 9999; }
.floating-whatsapp:hover { transform: scale(1.1); }

/* MODAL DE SUCESSO */
.success-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 100000;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.3s ease;
}
.success-modal-overlay.active { opacity: 1; pointer-events: auto; }
.success-modal-content {
    background: #fff; padding: 30px 20px; border-radius: 14px;
    text-align: center; max-width: 320px; width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eaeaea;
}
.success-modal-overlay.active .success-modal-content { transform: scale(1); }
.fechar-modal-btn { margin-top: 20px; width: 100%; padding: 12px; background: #f0f2f5; color: #1a1a1a; border: 1px solid #dcdcdc; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s;}
.fechar-modal-btn:hover { background: #e4e6e9; border-color: #ccc;}

/* ========================================================
   RESPONSIVIDADE - TABLETS E CELULARES
======================================================== */
@media (max-width: 992px) {
    .header { flex-direction: column; gap: 10px; text-align: center; padding-bottom: 15px; }
    .logo-img { height: 75px; margin: 0 auto; } 
    .rating-box { display: none !important; }
    .top-widgets { justify-content: center; flex-wrap: wrap; }
    .main-content { display: flex; flex-direction: column; gap: 15px; }
    .left-col, .right-col, .left-top-content { display: contents; }
    
    .hero-text-wrapper { 
        order: 1; max-width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; margin-top: 8px;
    }
    .hero-text-wrapper h1 { font-size: 1.6rem; max-width: 100%;}
    
    .form-card { order: 2; width: 100%; max-width: 550px; margin: 0 auto 15px auto; z-index: 10; }
    
    .cards-grid { order: 3; max-width: 100%; grid-template-columns: repeat(3, 1fr); margin-bottom: 15px; }
    
    /* DESCENDO AS OPERADORAS NO MOBILE */
    .operators-section { order: 4; text-align: center; width: 100%; }
    .logos-row { justify-content: center; }
    
    .whatsapp-banner { order: 5; margin: 0 auto 15px auto; width: 100%; }
    
    .left-bottom-content { order: 6; display: flex; flex-direction: column; align-items: center; width: 100%; }
    
    .footer-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: center; width: 100%; justify-content: center; }
    .f-widget { justify-content: center; flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
    .logo-img { height: 60px; } 
    .cards-grid { grid-template-columns: 1fr; gap: 8px; }
    .footer-bar { grid-template-columns: 1fr; }
    .top-widgets { display: none; }
    .hero-text-wrapper h1 { font-size: 1.4rem; }
    .age-grid { grid-template-columns: repeat(5, 1fr); }
    
    .operadoras-grid { grid-template-columns: repeat(2, 1fr); }
    .op-btn { height: 96px; }
    .op-btn img { max-height: 75px; }
    
    .logos-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .logo-pill { height: 80px; }
    .logo-pill img { max-height: 65px; }
}

@media (min-width: 993px) {
    .floating-whatsapp { display: none !important; }
}