/* =========================================================
   Página /servicos-rapidos/contratar/
   Usa as variáveis e botões do style.css; classes próprias com prefixo ct-.
   ========================================================= */

.ct-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.ct-badges li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.ct-page { padding-top: 1.5rem; }

/* como funciona */
.ct-how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: ct;
}
.ct-how li {
  counter-increment: ct;
  background: var(--orange-bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}
.ct-how li::before {
  content: counter(ct);
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}
.ct-how b { display: block; margin-bottom: 0.1rem; }

/* layout */
.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.ct-step { margin-bottom: 2.5rem; scroll-margin-top: 110px; }
.ct-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange);
  font-size: 1.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 1.1rem;
}
.ct-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* filtros */
.ct-search { margin-bottom: 0.75rem; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ct-chip {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}
.ct-chip:hover { border-color: var(--orange); }
.ct-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.ct-chip:focus-visible, .ct-qty button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* itens do catálogo */
.ct-cat {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}
.ct-items { display: grid; gap: 0.65rem; }
.ct-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ct-item.is-sel { border-color: var(--orange); background: var(--orange-bg-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.ct-item h3 { font-size: 1.02rem; margin: 0; }
.ct-item p { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--text-muted); }
.ct-price { text-align: right; white-space: nowrap; }
.ct-price b { font-family: var(--font-heading); font-size: 1.25rem; color: var(--dark); }
.ct-price small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.ct-act { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }
.ct-extra { font-size: 0.8rem; color: var(--text-muted); }
.ct-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.ct-qty button {
  width: 38px; height: 38px;
  border: 0;
  background: var(--gray-bg);
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
}
.ct-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.ct-qty span { min-width: 38px; text-align: center; font-weight: 700; }
.ct-empty { padding: 1rem; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }

/* formulário */
.ct-gap { margin-top: 1rem; }
.ct-opt { font-weight: 400; color: var(--text-muted); }
.ct-cep-row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: end; }
.ct-check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; margin: 1.1rem 0; }
.ct-check input { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; padding: 0; }
.ct-check a { color: var(--orange-dark); text-decoration: underline; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-photos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.ct-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.ct-fine { font-size: 0.82rem; color: var(--text-muted); margin: 0.75rem 0 0; }
#cep-msg .form-status { margin-top: 0.75rem; }
#form-msg .form-status { margin: 0.75rem 0 1rem; }
.form-status a { text-decoration: underline; font-weight: 700; }

/* resumo */
.ct-summary {
  position: sticky;
  top: 110px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.ct-summary h2 { font-size: 1.15rem; color: var(--orange); margin-bottom: 0.6rem; }
.ct-summary ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.ct-summary li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.ct-summary li span:first-child { color: var(--text-muted); }
.ct-total { display: flex; justify-content: space-between; margin-top: 0.8rem; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }
.ct-total span:last-child { color: var(--orange); }

/* resultado do envio */
.ct-done { border: 2px solid #1E7A3D; border-radius: var(--radius); padding: 1.5rem; background: #F1FAF4; }
.ct-done h2 { color: #1E7A3D; }
.ct-proto { display: inline-block; font: 700 1.25rem/1 ui-monospace, Menlo, Consolas, monospace; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; margin: 0.25rem 0 1rem; }

/* barra fixa no celular */
.ct-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  padding-right: 6.5rem; /* espaço para o botão flutuante do WhatsApp */
  background: var(--dark);
  color: var(--white);
}
.ct-bar b { font-family: var(--font-heading); font-size: 1.15rem; }
.ct-bar small { color: #D9D9D9; }
body:has(.ct-bar) .whatsapp-float { bottom: 5.4rem; }

@media (max-width: 900px) {
  .ct-layout { grid-template-columns: 1fr; }
  .ct-summary { position: static; }
  .ct-how { grid-template-columns: 1fr 1fr; }
  .ct-bar { display: flex; }
  .ct-page { padding-bottom: 5rem; }
}
@media (max-width: 520px) {
  .ct-how { grid-template-columns: 1fr; }
  .ct-cep-row { grid-template-columns: 1fr; }
}
