/* ═══════════════════════════════════════════════════════════════════
   FortPlanos — Cotador Embutido (R7) para páginas operadora × cidade
   Estilo idêntico ao comparador do pilar (planos-de-saude-{cidade}/)
   ═══════════════════════════════════════════════════════════════════ */

.cotador-card {
    background: linear-gradient(135deg, #ffffff 0%, #F8FAFC 100%);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 20px;
    padding: 32px;
    margin-top: 24px;
}
.cotador-passos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.cotador-passo {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    transition: all 0.25s;
}
.cotador-passo.disabled { opacity: 0.55; pointer-events: none; }
.cotador-passo.active { border-color: var(--primary, #eb6b0f); box-shadow: 0 4px 18px rgba(235,107,15,0.15); }
.cotador-passo.complete { border-color: var(--success, #10b981); }
.cotador-passo .passo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary, #0b386a);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}
.cotador-passo.active .passo-numero { background: var(--primary, #eb6b0f); }
.cotador-passo.complete .passo-numero { background: var(--success, #10b981); }
.cotador-passo h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0 0 4px;
}
.cotador-passo p {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    margin: 0 0 12px;
    line-height: 1.45;
}
.cot-faixa-grupo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.cot-faixa-cell {
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 4px 4px 5px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    transition: border-color 0.15s, background 0.15s;
}
.cot-faixa-cell.preenchida {
    background: var(--secondary-light, #e0e7ff);
    border-color: var(--secondary, #0b386a);
}
.cot-faixa-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, #475569);
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.cot-faixa-cell.preenchida .cot-faixa-label { color: var(--secondary, #0b386a); }
.cot-faixa-counter {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2px;
}
.cot-faixa-btn {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 5px;
    width: 22px;
    height: 24px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    color: var(--primary, #eb6b0f);
    font-family: inherit;
    padding: 0;
    transition: all 0.12s;
}
.cot-faixa-btn:hover:not(:disabled) { background: var(--primary, #eb6b0f); color: #fff; border-color: var(--primary, #eb6b0f); }
.cot-faixa-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cot-faixa-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 5px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text, #0f172a);
    background: #fff;
    font-family: inherit;
    padding: 0 2px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.cot-faixa-input::-webkit-outer-spin-button,
.cot-faixa-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cot-faixa-input:focus { outline: 2px solid var(--primary, #eb6b0f); outline-offset: 1px; }
.cot-faixa-resumo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 6px 10px;
    background: #fff;
    border: 1px dashed var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 12px;
}
.cot-faixa-resumo strong { color: var(--primary, #eb6b0f); font-size: 13px; }
.cot-faixa-limpar {
    background: transparent;
    border: 0;
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    text-decoration: underline;
}
.cot-faixa-limpar:hover { color: var(--primary, #eb6b0f); }
.cot-acomodacao-grupo { display: flex; flex-direction: column; gap: 8px; }
.cot-acomodacao-btn {
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary, #475569);
    text-align: left;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cot-acomodacao-btn:hover { background: var(--secondary-light, #e0e7ff); color: var(--secondary, #0b386a); border-color: var(--secondary, #0b386a); }
.cot-acomodacao-btn[aria-pressed="true"] { background: var(--primary, #eb6b0f); color: #fff; border-color: var(--primary, #eb6b0f); }
.cot-acomodacao-btn .ic { font-size: 16px; }
.cot-hospital-select {
    width: 100%;
    background: var(--bg-light, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    font-family: inherit;
    cursor: pointer;
}
.cot-hospital-select:focus { outline: none; border-color: var(--primary, #eb6b0f); }
.cot-cta-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.btn-cot-comparar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eb6b0f 0%, #f59e0b 100%);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 36px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(235,107,15,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.btn-cot-comparar:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(235,107,15,0.4); }
.btn-cot-comparar:disabled { opacity: 0.5; cursor: not-allowed; }
.cot-resultados { margin-top: 24px; }
.cot-loader { text-align: center; padding: 40px; color: var(--text-muted, #64748b); font-weight: 600; }
.cot-loader::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border, #e5e7eb);
    border-top-color: var(--primary, #eb6b0f);
    border-radius: 50%;
    animation: cot-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}
@keyframes cot-spin { to { transform: rotate(360deg); } }
.cot-resultado-card {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s;
}
.cot-resultado-card:hover { border-color: var(--primary, #eb6b0f); box-shadow: 0 4px 16px rgba(235,107,15,0.1); }
.cot-resultado-card.destaque { border-color: var(--primary, #eb6b0f); background: linear-gradient(135deg, #fff 0%, rgba(235,107,15,0.04) 100%); }
.cot-rank {
    background: var(--secondary, #0b386a);
    color: #fff;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
}
.cot-resultado-card.destaque .cot-rank { background: linear-gradient(135deg, #eb6b0f 0%, #f59e0b 100%); }
.cot-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
}
.cot-info .cot-meta {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}
.cot-info .cot-meta strong { color: var(--secondary, #0b386a); }
.cot-info .cot-hospitais {
    font-size: 13px;
    color: var(--text-secondary, #475569);
}
.cot-preco { text-align: right; }
.cot-preco .preco-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary, #eb6b0f);
    line-height: 1;
}
.cot-preco .preco-label {
    font-size: 11px;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}
.cot-actions {
    grid-column: 2 / -1;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.btn-cot-detalhar, .btn-cot-cotar {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--secondary, #0b386a);
    transition: all 0.15s;
    font-family: inherit;
}
.btn-cot-detalhar:hover { background: var(--secondary-light, #e0e7ff); border-color: var(--secondary, #0b386a); }
.btn-cot-cotar {
    background: linear-gradient(135deg, #eb6b0f 0%, #f59e0b 100%);
    color: #fff;
    border-color: var(--primary, #eb6b0f);
}
.btn-cot-cotar:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(235,107,15,0.3); }
.cot-lista-detalhe {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--bg-light, #f9fafb);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary, #475569);
    display: none;
}
.cot-lista-detalhe.aberta { display: block; }
.cot-lista-detalhe strong { color: var(--text-primary, #0f172a); }
.cot-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border, #e5e7eb);
    font-size: 13px;
}
.cot-breakdown-row:last-child { border-bottom: 0; }
.cot-breakdown-row span:first-child { color: var(--text-secondary, #475569); }
.cot-breakdown-row span:last-child { color: var(--text-primary, #0f172a); }
.cot-breakdown-row.cot-breakdown-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid var(--primary, #eb6b0f);
    border-bottom: 0;
    font-size: 14px;
}
.cot-breakdown-row.cot-breakdown-total span:first-child { color: var(--primary, #eb6b0f); font-weight: 700; }
.cot-breakdown-row.cot-breakdown-total span:last-child strong { color: var(--primary, #eb6b0f); font-size: 16px; }
.cot-vazio {
    background: var(--bg-light, #f9fafb);
    border: 1px dashed var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: var(--text-secondary, #475569);
}
.cot-vazio button {
    margin-top: 12px;
    background: var(--secondary, #0b386a);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.cot-disclaimer {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    font-size: 12.5px;
    color: #7c2d12;
    line-height: 1.6;
    text-align: center;
}
.cot-disclaimer strong { color: #9a3412; }
.cot-disclaimer a { color: #c2410c; font-weight: 700; }

@media (max-width: 760px) {
    .cotador-passos { grid-template-columns: 1fr; }
    .cotador-card { padding: 20px; }
    .cot-resultado-card { grid-template-columns: 50px 1fr; }
    .cot-preco { grid-column: 2 / -1; text-align: left; margin-top: 4px; }
    .cot-actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .cot-faixa-grupo { grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .cot-faixa-cell { padding: 3px 2px 4px; gap: 2px; }
    .cot-faixa-label { font-size: 10px; }
    .cot-faixa-btn { width: 18px; height: 22px; font-size: 13px; }
    .cot-faixa-input { font-size: 12px; }
}
