/* Agente afiliado: afiliado.php e afiliado-painel.php (23/11/2026). Cores da casa: azul #004b64, vermelho #ab1e22, tinta #102d43. */
.ga { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); background: #f4f6f8; }
.ga__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ga__grid > * { min-width: 0; }
.ga h2 { font-size: clamp(22px, 2.6vw, 28px); color: #004b64; margin: 0 0 14px; }
.ga__passos { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.ga__passos li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 14px 16px; color: #4a5568; font-size: 15px; line-height: 1.45; }
.ga__passos li::before { content: counter(p); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #004b64; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ga__passos strong { color: #102d43; }
.ga__aviso { line-height: 1.5; background: #fff8e6; border-left: 4px solid #f2b705; padding: 12px 14px; border-radius: 6px; color: #5c4a10; font-size: 14px; margin: 0; }
.ga__card { background: #fff; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(13, 63, 103, .35); padding: clamp(18px, 3vw, 28px); overflow-wrap: anywhere; }
.ga label { display: block; font-size: 14px; font-weight: 600; color: #33475b; margin-bottom: 12px; }
.ga label span { color: #8a97a5; font-weight: 400; }
.ga input[type=text], .ga input[type=email], .ga input[type=tel], .ga input:not([type]), .ga textarea { display: block; width: 100%; margin-top: 5px; min-height: 46px; padding: 9px 12px; border: 1px solid #c9d3dd; border-radius: 6px; font-size: 16px; background: #fff; color: #1f2937; }
.ga textarea { min-height: 80px; }
.ga [aria-invalid="true"] { border-color: #ab1e22; }
.ga__duplo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.ga__armadilha { position: absolute !important; left: -9999px; }
.ga__aceite { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; }
.ga label.ga__aceite span { color: #33475b; line-height: 1.45; }
.ga__aceite input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.ga__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 18px; border: 0; border-radius: 8px; background: #ab1e22; color: #fff !important; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.ga__btn:hover { filter: brightness(1.1); }
.ga__btn:focus-visible, .ga a:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.ga__btn--azul { background: #004b64; }
.ga__btn--whats { background: #1e9e57; }
.ga__erros { background: #fdecec; border-left: 4px solid #ab1e22; padding: 10px 14px; margin-bottom: 14px; border-radius: 4px; color: #7a1417; font-size: 14px; }
.ga__erros ul { margin: 0; padding-left: 18px; }
.ga__ok { background: #e9f7ef; border-left: 4px solid #1e9e57; padding: 14px 16px; border-radius: 6px; color: #14532d; margin: 0; }

/* Painel */
.ga__painel { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.ga__link { display: flex; gap: 8px; flex-wrap: wrap; }
.ga__link input { flex: 1 1 240px; min-width: 0; font-size: 15px !important; background: #f4f6f8 !important; }
.ga__link .ga__btn { width: auto; flex: 1 1 auto; }
.ga__tot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ga__tot div { background: #fff; border-radius: 10px; padding: 14px; }
.ga__tot dt { font-size: 13px; color: #6b7785; font-weight: 600; }
.ga__tot dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: #102d43; }
.ga__tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ga__tab th, .ga__tab td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e3e8ee; }
.ga__tab th { color: #6b7785; font-weight: 600; font-size: 13px; }
.ga__tab td:last-child, .ga__tab th:last-child { text-align: right; white-space: nowrap; }
.ga__st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef2f6; color: #33475b; white-space: nowrap; }
.ga__st--pago { background: #e3f5ea; color: #1b6b3a; }
.ga__st--canc { background: #fdecec; color: #7a1417; }
.ga__mini { line-height: 1.5; font-size: 13px; color: #6b7785; margin: 8px 0 0; }

@media (max-width: 900px) { .ga__grid { grid-template-columns: minmax(0, 1fr); } .ga__tot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .ga__duplo { grid-template-columns: minmax(0, 1fr); }
    .ga__tab--ped thead { display: none; }
    .ga__tab--ped tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid #e3e8ee; }
    .ga__tab--ped td { border: 0; padding: 0; }
    .ga__tab--ped td:nth-child(1) { color: #6b7785; font-size: 13px; }
    .ga__tab--ped td:nth-child(2) { grid-column: 1; grid-row: 2; font-weight: 600; }
    .ga__tab--ped td:nth-child(3) { grid-column: 1; grid-row: 3; }
    .ga__tab--ped td:nth-child(4) { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 700; }
}
