:root {
    --primary-blue: #162460;
    --accent-orange: #f04e23;
    --bg-light: #f4f6f9;
    --text-dark: #333;
    --text-gray: #666;
    --border-color: #e5e5e5;
    --font-main: 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-dark); background-color: var(--bg-light); }

/* Busca Premium */
#hero { background: var(--primary-blue); color: #fff; text-align: center; padding: 60px 20px; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 900; }
.busca-premium { display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 10px; margin: 30px auto 0; gap: 10px; max-width: 700px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.input-wrapper { display: flex; align-items: center; padding: 12px; background: #fff; border-radius: 8px; flex: 1; }
.input-wrapper .material-icons { color: var(--primary-blue); margin-right: 10px; }
.input-wrapper input { border: none; background: transparent; outline: none; font-size: 1.1rem; width: 100%; color: #333; }
.btn-busca { background: var(--accent-orange); color: #fff; border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; border-radius: 8px; cursor: pointer; text-transform: uppercase; }

/* MODIFICADO: Ajuste na caixa de feedback para caber o endereço */
.feedback-text { margin-top: 15px; min-height: 24px; font-weight: normal; font-size: 0.95rem; line-height: 1.4; }
.feedback-text strong { font-weight: bold; font-size: 1.05rem; }

/* NOVO: Link de pular CEP */
.link-pular-cep { color: #ccc; text-decoration: underline; font-size: 0.85rem; transition: 0.3s; }
.link-pular-cep:hover { color: #fff; }

@media(min-width: 768px) {
    .busca-premium { flex-direction: row; border-radius: 50px; padding: 8px 8px 8px 25px; align-items: center; gap: 0; }
    .input-wrapper { padding: 5px; }
    .divisor { display: block; width: 2px; height: 30px; background: #e5e5e5; margin: 0 15px; }
    .btn-busca { border-radius: 50px; padding: 15px 40px; margin-left: 10px; }
}

/* Secao Planos & Tabs */
#planos { padding: 40px 15px; background: #f9f9f9; }
.titulo-secao { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto 30px; }
.titulo-secao h2 { color: var(--primary-blue); font-size: 2.2rem; font-weight: 900; }
.ofertas-validas { text-align: right; font-size: 0.9rem; color: #555; }
.ofertas-validas strong { color: #000; text-decoration: underline; cursor: pointer; }

.tabs-nav { display: flex; border-bottom: 2px solid #ddd; max-width: 1200px; margin: 0 auto 40px; gap: 40px; }
.tab-btn { background: none; border: none; padding: 15px 10px; font-size: 1.1rem; color: var(--text-gray); cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; }
.tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Cards */
.cards-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; max-width: 1200px; margin: 0 auto; }
.plan-card { background: #fff; border-radius: 16px; padding: 30px 20px 0; width: 100%; max-width: 280px; position: relative; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.destaque-card { border: 2px solid var(--primary-blue); }
.destaque-card.laranja { border-color: var(--accent-orange); }

.tag-melhor-oferta { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.75rem; font-weight: bold; padding: 6px 20px; border-radius: 20px; white-space: nowrap; }
.tag-melhor-oferta.azul { background: var(--primary-blue); }
.tag-melhor-oferta.laranja { background: var(--accent-orange); }

.card-categoria { font-size: 0.7rem; color: var(--text-gray); font-weight: bold; margin-top: 10px; text-transform: uppercase; }
.card-categoria.centralizado { text-align: center; }
.card-titulo { font-size: 1.8rem; color: var(--primary-blue); font-weight: 900; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.card-titulo.centralizado { justify-content: center; font-size: 2.2rem; }
.card-titulo span { font-size: 0.75rem; font-weight: bold; text-align: left; line-height: 1.1; }

.brand-logo { color: var(--accent-orange); font-weight: 900; font-size: 1.2rem; }
.brand-logo span { font-size: 0.9rem; }
.plano-tipo { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }

.card-features { margin-bottom: 15px; }
.card-features p { font-size: 0.8rem; color: var(--text-gray); display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.card-features .material-icons { font-size: 1.1rem; color: var(--text-gray); }
.list-style.mt-15 { margin-top: 15px; }
.list-style p { margin-bottom: 8px; }

.card-apps p { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 8px; }
.app-icons { display: flex; gap: 8px; margin-bottom: 15px; }
.app-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 14px; cursor: pointer; transition: transform 0.2s; }
.app-icon:hover { transform: scale(1.1); }
.app-icon.skeelo { background: #00d26a; }
.app-icon.reforca { background: #2962ff; }
.app-icon.aya { background: #1b3b2b; }
.app-icons.small img { width: 20px; height: 20px; border-radius: 50%; }

.btn-mais-detalhes { background: none; border: none; color: var(--accent-orange); font-size: 0.9rem; font-weight: bold; display: flex; align-items: center; gap: 5px; cursor: pointer; margin-bottom: 15px; }

.card-pricing { margin-top: auto; margin-bottom: 20px; }
.old-price { font-size: 0.85rem; color: var(--text-gray); font-weight: bold; }
.old-price s { text-decoration-thickness: 2px; text-decoration-color: var(--accent-orange); }
.new-price { font-size: 1rem; color: var(--text-dark); font-weight: bold; }
.new-price span { font-size: 2.2rem; font-weight: 900; }
.price-condition { font-size: 0.65rem; color: #888; margin-top: 5px; line-height: 1.2; }

.btn-aproveitar { background: var(--accent-orange); color: #fff; border: none; padding: 15px; width: calc(100% + 40px); margin-left: -20px; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 0 0 15px 15px; transition: 0.3s; }
.btn-aproveitar:hover { background: #d03d0c; }

/* Modais */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 9999; padding: 15px; }
.modal-content { background: #fff; border-radius: 12px; position: relative; width: 100%; max-height: 90vh; overflow-y: auto; }
.large-modal { max-width: 600px; padding: 0; }
.small-modal { max-width: 400px; padding: 20px; }

.close-btn { position: absolute; top: 15px; right: 15px; background: none; border: 1px solid #ccc; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; }

.modal-header-detalhes { padding: 30px 30px 10px; border-bottom: 1px solid #eee; }
.modal-header-detalhes h4 { font-size: 0.8rem; color: var(--text-gray); font-weight: bold; }
.modal-header-detalhes h2 { font-size: 1.8rem; color: var(--primary-blue); font-weight: 900; }
.modal-body-detalhes { padding: 20px 30px; }
.modal-body-detalhes .list-style p { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-gray); display: flex; align-items: center; gap: 10px;}
.modal-legal-text { font-size: 0.75rem; color: #888; margin-top: 5px; margin-bottom: 20px; line-height: 1.4; }

.modal-footer-detalhes { background: #f4f6f8; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 12px 12px; }
.modal-footer-detalhes .price-info { font-size: 0.9rem; color: var(--text-gray); }
.modal-footer-detalhes .price-info s { text-decoration-thickness: 2px; text-decoration-color: var(--text-gray); }
.modal-footer-detalhes .price-info span { font-size: 2.2rem; font-weight: 900; color: var(--text-dark); }
.modal-footer-detalhes .btn-aproveitar { width: auto; margin: 0; border-radius: 8px; padding: 12px 30px; }

.modal-app-header { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.modal-app-header h3 { font-size: 1.1rem; color: var(--text-dark); }
.modal-app-body { display: flex; gap: 15px; align-items: center; }
.modal-app-body .app-icon-large { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: bold; flex-shrink: 0;}
.modal-app-body h4 { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; }
.modal-app-body p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.4; }
.modal-app-footer { margin-top: 20px; text-align: left; }
.link-saiba-mais { color: var(--accent-orange); font-weight: bold; text-decoration: none; display: flex; align-items: center; font-size: 0.95rem; }

/* Formulario */
#contato { padding: 40px 15px; background: #fff; text-align: center; }
#contato form { max-width: 600px; margin: 20px auto 0; text-align: left; }
.input-group { margin-bottom: 15px; width: 100%; }
.input-group label { display: block; font-size: 0.85rem; font-weight: bold; color: var(--text-gray); margin-bottom: 5px; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; }
.row { display: flex; gap: 15px; }
.btn-geo { background: #e2e8f0; border: none; padding: 10px; border-radius: 8px; width: 100%; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items:center; gap: 10px; margin-top: 10px;}
.btn-submit { background: #25D366; color: #fff; width: 100%; padding: 15px; border: none; border-radius: 8px; font-size: 1.2rem; font-weight: bold; margin-top: 20px; cursor: pointer; }

@media(max-width: 768px) {
    .modal-footer-detalhes { flex-direction: column; gap: 15px; text-align: center; }
    .modal-footer-detalhes .btn-aproveitar { width: 100%; }
    .titulo-secao { flex-direction: column; text-align: center; gap: 10px; }
    .ofertas-validas { text-align: center; }
    .tabs-nav { gap: 10px; justify-content: space-between; }
    .tab-btn { padding: 10px 5px; font-size: 0.9rem; }
}

.fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }