/* ==========================================================
   /agendar
   ========================================================== */

.ag {
  padding-top: clamp(40px, 7vw, 104px);
  padding-bottom: var(--section);
}

.ag-head h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.ag-head h1 em { font-style: italic; }
.ag-head .lead { margin-top: clamp(20px, 2.4vw, 32px); }

.ag-noscript { margin-top: 32px; font-size: 1.125rem; }

.ag-form {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.ag-form > .step,
.ag-form > .ag-submit { grid-column: 1 / span 7; }
.ag-summary {
  grid-column: 9 / span 4;
  grid-row: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-top: clamp(48px, 6vw, 80px);
}
@media (max-width: 1023px) {
  .ag-form > .step,
  .ag-form > .ag-submit,
  .ag-summary { grid-column: 1 / -1; }
  .ag-summary { grid-row: auto; position: static; }
}

/* ---------- Passos ---------- */

.step {
  min-width: 0;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  border: 0;
}
.step legend {
  float: left;
  width: 100%;
  padding: 0 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.step > :not(legend) { clear: both; }
.step-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1;
  color: var(--rose);
  min-width: 1.1em;
}
.step-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}
.step-hint { margin-top: 16px; color: var(--ink-soft); font-size: .9375rem; }
.step.has-error legend { border-bottom-color: var(--rose); }

.opt-group { margin-top: 20px; }
.opt-group + .opt-group { margin-top: 28px; }
.opt-group-title { color: var(--ink-soft); font-size: .6875rem; margin-bottom: 4px; }

/* Opção de técnica: linha como na lista da home */
.opt { display: block; cursor: pointer; }
.opt--tec .opt-body {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.opt-mark {
  width: 12px; height: 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.opt-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.2;
  transition: color var(--fast) var(--ease);
}
.opt-meta {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.opt-meta .bar { margin: 0 .45em; }
.opt--tec:hover .opt-name { color: var(--rose); }
.opt--tec input:checked + .opt-body .opt-name { color: var(--rose); }
.opt--tec input:checked + .opt-body .opt-mark { background: var(--rose); border-color: var(--rose); transform: scale(1.15); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--rose); outline-offset: 3px; }

/* Chips (casa/hotel, período) */
.opts--row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.opt--chip .opt-body {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--rule-strong);
  font-size: 1rem;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.opt--chip:hover .opt-body { border-color: var(--ink); }
.opt--chip input:checked + .opt-body { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Tempo: dois cartões lado a lado */
.opt--tempo { flex: 1 1 180px; max-width: 260px; }
.opt--tempo .opt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--rule-strong);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.tempo-dur { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.tempo-valor { font-size: .9375rem; color: var(--ink-soft); transition: color var(--fast) var(--ease); }
.opt--tempo:hover .opt-body { border-color: var(--ink); }
.opt--tempo input:checked + .opt-body { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt--tempo input:checked + .opt-body .tempo-valor { color: var(--on-ink-soft); }

/* ---------- Campos ---------- */

.field { margin-top: 26px; display: grid; gap: 8px; }
.field > .caps, .field-label { color: var(--ink-soft); font-size: .6875rem; }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  column-gap: 28px;
}
.field-row .field .opts--row { margin-top: 0; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }

.field input[type="text"],
.field input[type="date"],
.field select {
  width: 100%;
  min-height: 52px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.125rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--fast) var(--ease);
}
.field input:hover, .field select:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus { border-bottom-color: var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: var(--rose); }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.field input[type="date"] { min-height: 52px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 32px; cursor: pointer; }

.field-error {
  margin-top: 14px;
  color: var(--rose);
  font-size: .9375rem;
}
.field-error::before { content: "●"; font-size: .6em; margin-right: .7em; vertical-align: .25em; }

/* ---------- Agenda online ---------- */

.agenda .btn { margin-top: 20px; }
.agenda-frame iframe {
  display: block;
  width: 100%;
  height: min(80vh, 760px);
  margin-top: 24px;
  border: 1px solid var(--rule);
  background: #fff;
}

/* ---------- Resumo: o cartão ---------- */

.sum-card {
  padding: clamp(28px, 2.6vw, 40px);
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(36,27,39,.04), 0 24px 48px -32px rgba(36,27,39,.28);
}
.sum-mono { width: 64px; height: auto; color: var(--ink); }
.sum-kicker { margin-top: 24px; color: var(--ink-soft); }
.sum-name {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.1;
}
.sum-name.is-empty { color: var(--ink-soft); }
.sum-list { margin: 22px 0 0; border-top: 1px solid var(--rule); }
.sum-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.sum-list > div[hidden] { display: none; }
.sum-list dt { font-size: .6875rem; color: var(--ink-soft); white-space: nowrap; }
.sum-list dd { margin: 0; text-align: right; font-size: 1rem; }
.sum-empty { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.sum-motto {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--rose);
}
@media (max-width: 1023px) {
  .ag-summary { margin-top: clamp(48px, 6vw, 80px); }
}

/* ---------- Envio ---------- */

.ag-submit { margin-top: clamp(40px, 5vw, 64px); }
.btn--wide { width: 100%; max-width: 440px; min-height: 60px; }
.ag-note { margin-top: 16px; max-width: 36em; color: var(--ink-soft); font-size: .9375rem; }
.ag-done {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--paper-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
}
.ag-done:focus { outline: none; }
.ag-done:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
