/* ===== Design base moderno: gradiente, cards, inputs, botões ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Cores base – romântico e vivo */
  --bg1:#2a1233;          /* fundo topo (lilás escuro) */
  --bg2:#0f0b28;          /* fundo base (violeta profundo) */
  --card:#2b1a3f;         /* card 1 */
  --card-2:#3a1f56;       /* card 2 (degradê nos cards) */
  --text:#fff7fb;         /* texto principal (quase branco rosado) */
  --muted:#e6cfee;        /* texto secundário */

  /* Ações / destaques */
  --primary:#ff6fb5;      /* rosa principal */
  --primary-2:#ff9a8b;    /* pêssego rosado (para degradê do botão) */
  --accent:#ffe38b;       /* dourado suave para destaques */
  --danger:#ff4c71;       /* alerta */

  /* Sombra/raio */
  --shadow: 0 12px 36px rgba(255, 100, 180, .22);
  --radius: 18px;
}





*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text); min-height:100%;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(255,153,204,.18) 0%, transparent 60%),
    radial-gradient(900px 650px at 110% 0%, rgba(255,224,130,.18) 0%, transparent 55%),
    radial-gradient(700px 520px at -10% 100%, rgba(205,128,255,.16) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 100%);
  background-attachment: fixed;
}


/* Layout container */
.container{ max-width: 1180px; margin:0 auto; padding:24px; }

/* Topbar / Navbar */
.topbar{ display:flex; gap:16px; align-items:center; justify-content:space-between; margin-bottom:22px; }
.topbar h1{ margin:0; font-size:26px; letter-spacing:.2px; font-weight:800; }
.nav{ display:flex; gap:10px; flex-wrap:wrap }
.nav a{
  background: linear-gradient(180deg, #0e1840 0%, #0c1433 100%);
  border:1px solid #1f2a55; color:#cfe2ff; border-radius:12px;
  padding:10px 14px; text-decoration:none; font-weight:600; font-size:14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.nav a:hover{ border-color:#2c3a77; transform: translateY(-1px); transition:.2s }

/* Cards */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:16px; }
.card{
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border:1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  padding:18px; box-shadow: var(--shadow);
}
.card h3{ margin:0 0 8px 0; font-size:18px; }
.footer{ opacity:.7; margin-top:24px; text-align:center; }

/* Botões com brilho romântico */
.btn{
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 26px rgba(255, 120, 180, .35);
}
.btn.secondary{
  background: linear-gradient(180deg, #3a235a 0%, #2b1f4a 100%);
  border:1px solid rgba(255, 170, 220, .28);
  color:#ffe9f7;
}

/* Borda luminosa nos cards ao passar o mouse */
.card{
  position: relative;
  transition: border-color .2s, transform .2s;
  border:1px solid rgba(255,255,255,.07);
}
.card:hover{
  border-color: rgba(255, 170, 220, .35);
  transform: translateY(-1px);
}

/* Tabela com cabeçalho rosé */
.table thead th{
  background: linear-gradient(180deg, #3b235a 0%, #2c1f49 100%);
  color:#ffe9f7;
  border-bottom:1px solid rgba(255, 180, 220, .25);
}
.table tr:hover td{ background: rgba(255, 130, 200, .06); }

/* -------- Form modern -------- */
.form{
  background: linear-gradient(160deg, var(--card) 0%, var(--card-2) 100%);
  border:1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  box-shadow: var(--shadow); padding:22px; max-width: 980px; margin: 0 auto;
}
.form .row{ display:grid; grid-template-columns: repeat(12, 1fr); gap:14px; }
.form .col-6{ grid-column: span 6; } .form .col-4{ grid-column: span 4; } .form .col-8{ grid-column: span 8; } .form .col-12{ grid-column: span 12; }

.label{ display:block; font-weight:700; font-size:13px; color:#cbd8ff; margin-bottom:8px; }
.input, .textarea, .select{
  width:100%; border-radius:12px; color:var(--text);
  background: #0e1733; border:1px solid #243264; padding:12px 12px; outline:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.input:focus, .textarea:focus, .select:focus{
  border-color:#4f7cff; box-shadow: 0 0 0 3px rgba(79,124,255,.2);
}
.textarea{ min-height: 90px; resize: vertical; }

/* Radio cards (tarifas) */
.tarifas{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
.radio-card{ position:relative; }
.radio-card input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.radio-ui{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background: #0e1733; border:1.5px solid #27366f; border-radius:14px; padding:14px 16px;
  transition: .18s ease-in-out; box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.radio-ui .name{ font-weight:800; letter-spacing:.2px; }
.radio-ui .value{ font-weight:900; color:#cfe2ff; }
.radio-card input:checked + .radio-ui{
  border-color:#5a8cff; box-shadow: 0 0 0 4px rgba(90,140,255,.18);
  background: linear-gradient(180deg, #132152 0%, #0f1a42 100%);
}

/* Stepper (quantidade) */
.stepper{ display:flex; align-items:center; border:1px solid #243264; border-radius:12px; overflow:hidden; width:max-content; }
.stepper button{
  background:#0e1733; border:none; width:40px; height:40px; color:#cfe1ff; font-size:20px; cursor:pointer;
}
.stepper input{
  width:80px; height:40px; background:#0e1733; border:none; color:#eaf0ff; text-align:center; font-weight:800; font-size:16px;
}

/* Avisos */
.alert{
  background: #24131c; border:1px solid #5e1f32; color:#ffd7df;
  padding:12px 14px; border-radius:12px; margin-bottom:14px;
}

/* Responsivo */
@media (max-width:740px){
  .form .col-6, .form .col-4, .form .col-8, .form .col-12{ grid-column: span 12; }
}

.topbar img{ filter: drop-shadow(0 6px 18px rgba(255,120,180,.22)); }
.topbar{ gap:18px; }

/* ==== GLASSMORPHISM & MODERN TOUCH === */

body {
  backdrop-filter: blur(18px);
}

/* Cards com efeito de vidro */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow:
    0 8px 25px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  transition: all .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgba(255,120,180,0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Gradiente interno mais suave */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* Botões vibrantes */
.btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(255,120,180,0.35);
  transition: all .25s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255,120,180,0.45);
}

/* Secondary (modo vidro suave) */
.btn.secondary {
  background: rgba(255,255,255,0.08);
  color: #ffe9f7;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn.secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* Header */
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:28px;
}
.topbar h1 {
  font-size: 28px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255,120,180,0.2);
}

/* Tabela com efeito de vidro */
.table {
  width:100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow:hidden;
}
.table thead th {
  background: rgba(255,255,255,0.08);
  color: #ffe9f7;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table tr:hover td {
  background: rgba(255,255,255,0.04);
}

/* Footer */
.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  opacity: .8;
}

/* Animação suave de fade-in */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(8px);}
  to {opacity: 1; transform: translateY(0);}
}
.card, .form, .table {
  animation: fadeIn .6s ease;
}

/* ======= BOTÕES ROSA BONITOS (links viram botões) ======= */
a.btn, .btn {                           /* uso: <a class="btn"> ou <button class="btn"> */
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:14px; border:none; text-decoration:none;
  font-weight:800; letter-spacing:.2px; font-size:15px; color:#fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 10px 24px rgba(255,120,180,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
a.btn:hover, .btn:hover { transform: translateY(-2px) scale(1.02); filter:brightness(1.06); }
a.btn.secondary, .btn.secondary {
  color:#ffe9f7; background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18); box-shadow:none;
}
a.btn.secondary:hover, .btn.secondary:hover { background: rgba(255,255,255,.16); }

/* “link-botão” compacto (chips) */
a.chip { display:inline-block; padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:#ffe9f7; font-weight:700; text-decoration:none; }
a.chip:hover { background: rgba(255,255,255,.16); }

/* ======= CARDS E LAYOUT ======= */
.cards { gap:22px; }
.card { background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.09); border-radius:18px; padding:22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px); }
.card.full { grid-column: 1 / -1; }        /* ocupa a largura da grid inteira */

/* ======= TABELAS COM PRESENÇA ======= */
.table-wrap { margin-top:10px; }
.table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden;
  border-radius:14px; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.table thead th {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  color:#fff7fb; border-bottom:1px solid rgba(255,255,255,.18);
  padding:14px 12px; text-align:left; font-weight:800; letter-spacing:.3px;
}
.table td { padding:12px; border-bottom:1px solid rgba(255,255,255,.08); }
.table tbody tr:nth-child(odd) td { background: rgba(255,255,255,.04); }
.table tbody tr:hover td { background: rgba(255,255,255,.08); }
.table tfoot th, .table tfoot td {
  background: rgba(255,255,255,.06); font-weight:800;
}

/* ======= TIPOGRAFIA DO TÍTULO ======= */
.topbar h1{
  font-size:30px; font-weight:900;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin:0;
}

/* ===== Hambúrguer + Drawer responsivo ===== */
.hamburger{
  display:none; position:relative; width:42px; height:42px; border-radius:12px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  cursor:pointer; align-items:center; justify-content:center;
}
.hamburger span{
  position:absolute; width:22px; height:2.6px; background:#ffe9f7; border-radius:3px;
  transition:.22s ease;
}
.hamburger span:nth-child(1){ transform: translateY(-7px); }
.hamburger span:nth-child(2){ transform: translateY(0); }
.hamburger span:nth-child(3){ transform: translateY(7px); }
.menu.open ~ .hamburger span{ } /* reservado se quiser animar em X */

.backdrop{
  position: fixed; inset:0; background: rgba(0,0,0,.45); backdrop-filter: blur(3px);
  z-index: 998;
}

/* Nav padrão (desktop) já herda .nav/.chip existentes */
/* Drawer (mobile) */
@media (max-width: 899px){
  .hamburger{ display:flex; z-index:1001; }
  .nav.menu{
    position: fixed; top:0; right:0; height:100vh; width:min(86%, 320px);
    display:flex; flex-direction:column; gap:12px; padding:22px;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
    border-left:1px solid rgba(255,255,255,.16);
    box-shadow: -10px 0 26px rgba(0,0,0,.35);
    transform: translateX(100%); transition: transform .26s ease;
    backdrop-filter: blur(12px); z-index:1000;
  }
  .nav.menu.open{ transform: translateX(0); }
}

/* Grids mais soltas no mobile */
@media (max-width: 740px){
  .cards{ grid-template-columns: 1fr; }
  .card{ padding:18px; }
  .table td, .table th{ padding:12px; }
}

/* Garantir que hidden realmente some */
[hidden]{ display:none !important; }

/* Garantir clique correto: z-index */
.hamburger{ z-index: 1001; }
.nav.menu{ z-index: 1000; }
.backdrop{ z-index: 998; }

/* Evita overlay bloquear cliques quando escondido */
.backdrop[hidden]{ display:none !important; pointer-events:none !important; }

@media (max-width: 768px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding:18px; }
  .topbar h1.brand { font-size: 20px; line-height: 1.2; }
  .hamburger { right: 12px; top: 12px; }
  table.table { font-size: 14px; }
  .btn, .chip { font-size: 14px; padding: 10px 14px; }
}

/* --- Fix específico para Safari/iPhone no index (z-index e cliques) --- */
[hidden]{ display:none !important; }

.hamburger{ z-index: 1002; }         /* botão sempre no topo */
.nav.menu{ z-index: 1001; }          /* drawer acima do overlay */
.backdrop{ z-index: 1000; }          /* overlay abaixo do drawer */

/* Evita que o overlay capture eventos quando escondido */
.backdrop[hidden]{ display:none !important; pointer-events:none !important; }

/* Em alguns Safari o container cria “stacking context”:
   forçamos o drawer a aceitar cliques quando aberto */
.nav.menu{ pointer-events: none; }
.nav.menu.open{ pointer-events: auto; }
.nav.menu a{ pointer-events: auto; }  /* links sempre clicáveis */


