:root {
  --brand: #0f766e;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --danger: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

h1,
h2 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

[hidden] {
  display: none !important;
}

/* Header and footer */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.header-phone {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.site-footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Hero */
.hero {
  padding: 28px 0 8px;
}

.hero h1 {
  font-size: 1.75rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

/* Cards and steps */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 16px 0;
}

.card.center {
  text-align: center;
  padding: 40px 20px;
}

fieldset.step {
  min-width: 0;
}

.step legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1.05rem;
}

.step legend + * {
  clear: both;
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand);
  font-size: 0.9rem;
}

/* Selectable options (radio cards) */
.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  display: block;
  height: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.option:hover .option-body {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.option input:checked + .option-body {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.option input:focus-visible + .option-body {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

.option input:disabled + .option-body {
  cursor: not-allowed;
  opacity: 0.45;
  background: var(--bg);
}

/* Services */
.services {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

.service .option-body {
  padding: 14px 16px;
}

.service-name {
  display: block;
  font-weight: 600;
}

.service-desc {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

.service-price {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

/* Days strip */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
}

.day {
  flex: 0 0 72px;
  scroll-snap-align: start;
}

.day .option-body {
  padding: 10px 4px;
  text-align: center;
}

.day-week,
.day-month {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.day-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.day input:checked + .option-body .day-week,
.day input:checked + .option-body .day-month {
  color: var(--brand);
}

/* Time slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.slot .option-body {
  padding: 10px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.slot.is-taken .option-body {
  text-decoration: line-through;
}

.hint {
  margin: 0;
  color: var(--muted);
}

/* Form fields */
.field + .field {
  margin-top: 14px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.center-text {
  text-align: center;
  margin: 12px 0 0;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.875rem;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.form-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-block {
  width: 100%;
  margin-bottom: 8px;
}

.inline {
  display: inline;
  margin: 0;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.small {
  font-size: 0.85rem;
}

.tick-off {
  background: #f1f5f9;
  color: var(--muted);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--line);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 32px 20px;
  outline: none;
}

.tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand);
  font-size: 2rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.summary {
  margin: 20px auto;
  max-width: 420px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}

.summary div + div {
  border-top: 1px solid var(--line);
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
