/* =========================================================
   Raptor Motos — Agendamento (página principal) · mobile-first
   Usa as cores, fontes, topo, menu e botões do style.css
   ========================================================= */

/* os botões são inline-flex; sem isto o atributo "hidden" não esconderia nada */
.page-agendar [hidden] {
  display: none !important;
}
/* <button> vem com fundo cinza/branco do navegador: o botão vazado precisa ser transparente */
.page-agendar button.btn {
  background-color: transparent;
  cursor: pointer;
}
.page-agendar button.btn--green {
  background-color: var(--verde);
}
/* aqui o conteúdo passa por baixo do topo: uma faixa escura com desfoque mantém logo e Menu legíveis */
.page-agendar .nav {
  background: rgba(6, 8, 6, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(243, 246, 236, 0.06);
}

/* ---------------- Topo da página ---------------- */
.bk {
  position: relative;
  padding: calc(var(--safe-t) + 92px) 0 56px;
  background:
    radial-gradient(ellipse 90% 42% at 50% 0%, rgba(96, 170, 0, 0.26), rgba(96, 170, 0, 0) 72%),
    var(--preto);
}
.bk .hero__tread {
  opacity: 0.05;
}
.bk__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas: "intro" "card" "how";
  gap: 26px;
  width: min(100% - 2 * var(--pad), 1180px);
  margin-inline: auto;
}
.bk__intro {
  grid-area: intro;
  text-align: center;
}
.bk__intro .eyebrow {
  margin-bottom: 14px;
}
.bk__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(66px, 20vw, 156px);
  line-height: 0.88;
  text-transform: uppercase;
}
.bk__title .line > span {
  animation: rise 0.9s var(--ease) both;
}
.bk__title .line:nth-child(2) > span {
  animation-delay: 0.1s;
}
.bk__lead {
  max-width: 32em;
  margin: 16px auto 0;
  color: var(--cinza);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------------- Cartão do passo a passo ---------------- */
.booking {
  grid-area: card;
  position: relative;
  min-width: 0;
  padding: 20px 18px 18px;
  border: 1px solid rgba(243, 246, 236, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(180, 245, 12, 0.07), rgba(180, 245, 12, 0) 160px),
    var(--preto-2);
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 84px;
  animation: fade-up 0.8s var(--ease) 0.2s both;
}
.booking__noscript {
  margin: 0;
  color: var(--cinza);
}
.booking__noscript a {
  color: var(--verde);
}
.booking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.booking__count {
  margin: 0;
  color: var(--cinza);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.booking__count b {
  color: var(--verde);
}
.booking__bar {
  display: flex;
  flex: 0 0 120px;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking__bar li {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(243, 246, 236, 0.14);
  transition: background 0.3s;
}
.booking__bar li.is-on {
  background: var(--verde);
}

/* passos */
.step__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 10.5vw, 54px);
  line-height: 0.95;
  text-transform: uppercase;
}
.step__title:focus {
  outline: none;
}
.step__hint,
.step__note {
  margin: 8px 0 0;
  color: var(--cinza);
  font-size: 14.5px;
  line-height: 1.4;
}
.step__note {
  margin-top: 16px;
}
.step.is-in {
  animation: step-in 0.4s var(--ease) both;
}
.step.is-back {
  animation: step-back 0.4s var(--ease) both;
}
@keyframes step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes step-back {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
.step__error {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 90, 0.12);
  color: #ffb4a9;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* opções em cartão (serviço e período) */
.opts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.opt input,
.chip-opt input,
.day input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt__box {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1.5px solid rgba(243, 246, 236, 0.14);
  border-radius: 18px;
  background: rgba(6, 8, 6, 0.55);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.opt__ico {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(180, 245, 12, 0.1);
  color: var(--verde);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opt__text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}
.opt__text small {
  display: block;
  margin-top: 3px;
  color: var(--cinza);
  font-size: 13.5px;
  line-height: 1.3;
}
.opt__check {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(243, 246, 236, 0.3);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.opt__check::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 3.5px;
  width: 6px;
  height: 11px;
  border: solid var(--preto);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.opt input:checked + .opt__box {
  border-color: var(--verde);
  background: rgba(180, 245, 12, 0.08);
}
.opt input:checked + .opt__box .opt__check {
  border-color: var(--verde);
  background: var(--verde);
}
.opt input:checked + .opt__box .opt__check::after {
  transform: rotate(45deg) scale(1);
}
.opt:active .opt__box {
  transform: scale(0.985);
}
.opt input:focus-visible + .opt__box,
.chip-opt input:focus-visible + span,
.day input:focus-visible + span {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}

/* período: dois cartões lado a lado */
.opts--periods {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}
.opt--period .opt__box {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  min-height: 98px;
  text-align: center;
}
.opt--period strong {
  font-size: 16px;
  font-weight: 600;
}
.opt__off {
  display: none;
  color: var(--cinza);
  font-size: 12.5px;
}
.opt.is-off {
  cursor: not-allowed;
}
.opt.is-off input {
  cursor: not-allowed;
}
.opt.is-off .opt__box {
  opacity: 0.38;
}
.opt.is-off .opt__off {
  display: block;
}

/* campos */
.field {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  color: var(--branco);
  font-size: 14.5px;
  font-weight: 600;
}
.field small {
  color: var(--cinza);
  font-weight: 500;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid rgba(243, 246, 236, 0.16);
  border-radius: 14px;
  background: rgba(6, 8, 6, 0.6);
  color: var(--branco);
  /* 16px: o iPhone não dá zoom na tela ao tocar no campo */
  font: 500 16px/1.35 var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder {
  color: rgba(185, 191, 174, 0.55);
}
.input:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(180, 245, 12, 0.18);
}
.input[aria-invalid="true"] {
  border-color: #ff7b6b;
}
textarea.input {
  min-height: 100px;
  resize: vertical;
}

/* marcas */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-opt {
  position: relative;
}
.chip-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(243, 246, 236, 0.16);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip-opt input:checked + span {
  border-color: var(--verde);
  background: var(--verde);
  color: var(--preto);
}

/* dias: faixa que desliza com o dedo no celular */
.days {
  display: flex;
  gap: 8px;
  margin: 0 -18px;
  padding: 2px 18px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 18px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 34px), transparent);
}
.days::-webkit-scrollbar {
  display: none;
}
.day {
  position: relative;
  flex: 0 0 70px;
  scroll-snap-align: start;
}
.day span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 0 9px;
  border: 1.5px solid rgba(243, 246, 236, 0.14);
  border-radius: 16px;
  background: rgba(6, 8, 6, 0.55);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.day small {
  color: var(--cinza);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.day b {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}
.day input:checked + span {
  border-color: var(--verde);
  background: var(--verde);
  color: var(--preto);
}
.day input:checked + span small {
  color: rgba(6, 8, 6, 0.72);
}

/* resumo */
.summary {
  margin: 16px 0 0;
  border-top: 1px solid rgba(243, 246, 236, 0.1);
}
.summary__row {
  padding: 11px 0;
  border-bottom: 1px solid rgba(243, 246, 236, 0.1);
}
.summary dt {
  color: var(--cinza);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.summary dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.summary dd > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.summary__edit {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 4px 0 10px;
  border: 0;
  background: none;
  color: var(--verde);
  font: 600 14px/1 var(--body);
  cursor: pointer;
}

/* prévia da mensagem, no jeito de um balão do WhatsApp */
.bubble__label {
  margin: 20px 0 8px;
  color: var(--cinza);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bubble {
  position: relative;
  margin-left: 18px;
  padding: 12px 14px 10px;
  border-radius: 16px 4px 16px 16px;
  background: #0d4d3d;
  color: #eef6ee;
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bubble p {
  margin: 0;
}
.bubble p.gap {
  height: 0.7em;
}
.bubble b {
  font-weight: 700;
}

/* ações */
.booking__actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.booking__actions .btn {
  flex: 1 1 auto;
  min-height: 56px;
  font-size: 16px;
}
.booking__actions [data-back] {
  flex: 0 0 auto;
  padding: 0 22px;
}
.btn--wa .ico {
  width: 22px;
  height: 22px;
}
/* no envio, o aro e o brilho começam logo (no topo do Sobre eles esperam a abertura) */
.booking .btn--call,
.booking .btn--call::after {
  animation-delay: 0.5s;
}

/* pronto */
.step--done {
  padding: 8px 0 2px;
  text-align: center;
}
.done__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: var(--verde);
  animation: pop 0.6s var(--ease) both;
}
.done__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--preto);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.done__text {
  max-width: 26em;
  margin: 12px auto 20px;
  color: var(--cinza);
  font-size: 15.5px;
}
.step--done .btn {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  font-size: 16px;
}

/* ---------------- Como funciona ---------------- */
.bk__how {
  grid-area: how;
  display: grid;
  grid-auto-rows: 1fr; /* os três cartões com a mesma altura, mesmo se um texto quebrar linha */
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bk__how li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(243, 246, 236, 0.08);
  border-radius: 16px;
  background: rgba(243, 246, 236, 0.04);
  color: var(--cinza);
  font-size: 15px;
  line-height: 1.35;
}
/* número em Inter: o "1" da fonte dos títulos é fino demais e parecia um "I" solto no círculo */
.bk__how b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--preto);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bk__how strong {
  color: var(--branco);
  font-weight: 600;
}

/* ---------------- Cartão "Sobre" ---------------- */
.bk-about {
  padding: 8px 0 0;
}
.bk-about__card {
  display: grid;
  width: min(100% - 2 * var(--pad), 1180px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 26px;
  background: var(--verde);
  color: var(--preto);
  text-decoration: none;
}
.bk-about__card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: 50% 30%; /* mostra o letreiro da fachada */
  transition: transform 0.6s var(--ease);
}
.bk-about__card:hover img {
  transform: scale(1.03);
}
.bk-about__text {
  padding: 22px 22px 26px;
}
.bk-about__text .eyebrow {
  margin-bottom: 12px;
}
.bk-about__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 13vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}
.bk-about__text p {
  margin: 10px 0 18px;
  font-size: 15.5px;
  line-height: 1.45;
}
.bk-about__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--preto);
  color: var(--verde);
  font-size: 15px;
  font-weight: 600;
}

/* ---------------- Computador ---------------- */
@media (min-width: 640px) {
  .booking {
    padding: 26px 26px 24px;
  }
  .days {
    margin: 0 -26px;
    padding-inline: 26px;
    scroll-padding-inline: 26px;
  }
}
@media (min-width: 1000px) {
  .bk {
    padding: calc(var(--safe-t) + 128px) 0 80px;
  }
  .bk__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    grid-template-areas: "intro card" "how card";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 32px;
    align-items: start;
  }
  .bk__intro {
    padding-top: 24px;
    text-align: left;
  }
  .bk__intro .eyebrow--center {
    justify-content: flex-start;
    padding-left: 0;
  }
  .bk__intro .eyebrow--center::after {
    display: none;
  }
  .bk__title {
    font-size: clamp(96px, 9.5vw, 156px);
  }
  .bk__lead {
    margin-left: 0;
    font-size: 18px;
  }
  .bk__how {
    max-width: 460px;
  }
  /* no computador os dias viram uma grade (sem faixa que desliza) */
  .days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .day {
    flex: none;
  }
  .day input:hover + span {
    border-color: rgba(180, 245, 12, 0.55);
  }
  .opt:hover .opt__box {
    border-color: rgba(180, 245, 12, 0.55);
  }
  .opt.is-off:hover .opt__box {
    border-color: rgba(243, 246, 236, 0.14);
  }

  .bk-about__card {
    grid-template-columns: 1fr 1.1fr;
  }
  .bk-about__card picture {
    min-height: 360px;
  }
  .bk-about__card img {
    height: 100%;
  }
  .bk-about__text {
    align-self: center;
    padding: 48px 56px;
  }
}

/* ---------------- Movimento reduzido ---------------- */
@media (prefers-reduced-motion: reduce) {
  .bk__title .line > span,
  .booking,
  .step.is-in,
  .step.is-back,
  .done__icon {
    animation: none;
  }
}
