/* ------------------------------------------------------------------ */
/* Smoothline booking                                                   */
/* Design tokens taken from the new site (staging.smoothline.ch):       */
/* Archivo throughout, sage headings, warm grey body text, pill buttons */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #768E88;
  --sage-mid: #96AEA8;
  --sage-tint: #F4F8F7;
  --sage-line: #E4EAEA;

  --taupe: #938676;
  --taupe-light: #B1A18E;
  --sand: #EFEAE6;

  --white: #FFFFFF;
  --shell: #FCF9F7;
  --text: #83837E;
  --ink: #5F5F5B;
  --error: #A5544B;

  --hair: 1px solid var(--sage-line);
  --pill: 1000px;
  --radius: 12px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- */
/* Masthead                                                          */
/* ---------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--gutter);
  background: var(--white);
}

.wordmark {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--sage);
  line-height: 0;
}

/* The mark is the site logo, recoloured through currentColor. */
.wordmark-svg {
  width: 168px;
  height: auto;
  max-width: 48vw;
}

.lang { font-size: 15px; color: var(--text); }

.lang a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  padding: 9px 7px;
  transition: color 0.3s;
}

.lang a[aria-current="true"] { color: var(--sage); }
.lang a:hover { color: var(--sage); }

/* ---------------------------------------------------------------- */
/* Shell                                                             */
/* ---------------------------------------------------------------- */

.shell {
  max-width: 820px;
  margin: 0 auto;
  padding-block: 52px 80px;
  padding-inline: var(--gutter);
}

/* Headings are sage and stay at weight 400, as on the main site. */
.page-title {
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.06;
  color: var(--sage);
  margin: 0 0 14px;
}

.page-lead {
  margin: 0 0 40px;
  max-width: 54ch;
}

/* ---------------------------------------------------------------- */
/* Progress                                                          */
/* ---------------------------------------------------------------- */

.progress {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
}

.progress li { flex: 1; min-width: 0; }

.progress-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 4px 0;
  background: none;
  border: 0;
  border-top: 2px solid var(--sage-line);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: default;
  transition: color 0.3s, border-color 0.3s;
}

.progress-num {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--sage-line);
  font-size: 13px;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.progress-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

li[data-state="done"] .progress-item {
  border-top-color: var(--sage);
  color: var(--sage);
  cursor: pointer;
}

li[data-state="done"] .progress-num {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

li[data-state="current"] .progress-item {
  border-top-color: var(--sage);
  color: var(--sage);
}

li[data-state="current"] .progress-num {
  border-color: var(--sage);
  color: var(--sage);
}

@media (max-width: 560px) {
  .progress-label { display: none; }
  li[data-state="current"] .progress-label { display: block; }
  li[data-state="current"] { flex: 3; }
}

/* ---------------------------------------------------------------- */
/* Steps                                                             */
/* ---------------------------------------------------------------- */

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 12px;
}

.step[data-state="collapsed"] { padding: 8px 28px; }

.step[data-state="collapsed"] .step-title,
.step[data-state="collapsed"] .step-body,
.step[data-state="collapsed"] .step-actions { display: none; }

.step[data-state="upcoming"] {
  background: transparent;
  padding: 18px 28px;
  opacity: 0.5;
}

.step[data-state="upcoming"] .step-body,
.step[data-state="upcoming"] .step-actions { display: none; }

@media (max-width: 560px) {
  .step,
  .step[data-state="collapsed"],
  .step[data-state="upcoming"] { padding-inline: 18px; }
}

.step-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 400;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  color: var(--sage);
  margin: 0 0 22px;
}

.step-kicker {
  font-size: 14px;
  font-weight: 500;
  color: var(--taupe);
}

.step-body { margin-bottom: 28px; }

.hint { margin: 0 0 20px; }

/* Collapsed summary line */
.step-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.step-summary::after {
  content: attr(data-change);
  margin-left: auto;
  flex: none;
  font-size: 15px;
  color: var(--sage);
  transition: color 0.3s;
}

.step-summary:hover::after { color: var(--taupe); }

.step-summary .sum-label {
  flex: none;
  font-size: 14px;
  color: var(--taupe);
}

.step-summary .sum-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* Fields                                                            */
/* ---------------------------------------------------------------- */

.search-row { margin-bottom: 24px; }

.search,
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--sage-line);
  border-radius: var(--pill);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.3s;
}

textarea {
  border-radius: var(--radius);
  resize: vertical;
}

:is(input, select, textarea):hover { border-color: var(--sage-mid); }

:is(input, select, textarea):focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- */
/* Treatment tiles                                                   */
/* ---------------------------------------------------------------- */

.groups { display: grid; gap: 10px; }

.tile {
  background: var(--white);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.tile:hover { border-color: var(--sage-mid); }

.tile[data-open="true"] { border-color: var(--sage); }

/* The clickable head of an expandable tile */
.tile-toggle,
.tile-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.tile-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.tile-title {
  font-size: 20px;
  color: var(--sage);
  line-height: 1.2;
}

.tile-sub {
  font-size: 15px;
  color: var(--text);
  line-height: 1.35;
}

.tile-badge {
  flex: none;
  font-size: 14px;
  color: var(--taupe);
  white-space: nowrap;
}

.tile-badge[data-on] {
  padding: 4px 12px;
  background: var(--sage-tint);
  border-radius: var(--pill);
  color: var(--sage);
}

.tile-chevron {
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: 2px;
  border-right: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s;
}

.tile[data-open="true"] .tile-chevron {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.tile-panel {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--sage-line);
  margin-top: -1px;
}

.tile-panel .group-items { padding-top: 16px; }

/* Tiles that are themselves the choice: coolsculpting, other, consultation */

.tile-single:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-tint);
}

.tile-choice input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--sage);
}

.tile-note {
  margin: -6px 20px 18px 53px;
  padding: 13px 16px;
  background: var(--sage-tint);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.45;
}

.tile-single:has(input:checked) .tile-note { background: var(--white); }

.tile-single .custom-text { margin: -4px 20px 20px 53px; width: calc(100% - 73px); }

@media (max-width: 520px) {
  .tile-toggle, .tile-choice { padding: 16px; gap: 12px; }
  .tile-panel { padding-inline: 16px; }
  .tile-note,
  .tile-single .custom-text { margin-inline: 16px; }
  .tile-single .custom-text { width: calc(100% - 32px); }
  .tile-note { margin-left: 16px; }
}

.group-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}

/* A group holding a single long option reads better full width. */
.group-items:has(> :only-child) { grid-template-columns: 1fr; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.option:hover { border-color: var(--sage-mid); }

.option input { margin: 4px 0 0; flex: none; accent-color: var(--sage); }

.option:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-tint);
  color: var(--ink);
}

.option:has(input:disabled) { opacity: 0.4; cursor: not-allowed; }

/* Selection chips */

.selection-bar {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--hair);
}

.selection-label { font-size: 15px; color: var(--taupe); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px 8px 16px;
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: var(--pill);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  max-width: 100%;
  transition: background 0.3s, border-color 0.3s;
}

.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip::after {
  content: "×";
  font-size: 17px;
  line-height: 1;
  opacity: 0.8;
}

.chip:hover { background: var(--sage-mid); border-color: var(--sage-mid); }

/* ---------------------------------------------------------------- */
/* Fieldsets                                                         */
/* ---------------------------------------------------------------- */

.field { border: 0; padding: 0; margin: 0 0 26px; }

.field legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--sage);
}

.options { display: grid; gap: 9px; }

.options-wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.options.sub { margin-top: 11px; }

/* Short either/or choices sit side by side instead of stacking. */
.options:has(.option-inline) { display: flex; flex-wrap: wrap; }

.option-inline { flex: 0 1 auto; min-width: 135px; }

/* ---------------------------------------------------------------- */
/* Calendar                                                          */
/* ---------------------------------------------------------------- */

.calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.from-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--taupe);
  white-space: nowrap;
}

.from-date input { width: auto; padding: 9px 15px; }

.calendar { display: grid; }

.day { padding: 18px 0; border-top: var(--hair); }

.day:first-child { border-top: 0; padding-top: 4px; }

.day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}

.day-weekday { font-size: 20px; color: var(--sage); }

.day-date { font-size: 15px; }

.day-count { margin-left: auto; font-size: 14px; color: var(--taupe-light); }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }

.slot {
  min-width: 80px;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--sage-line);
  border-radius: var(--pill);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.slot:hover { border-color: var(--sage-mid); }

.slot[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.calendar-more { margin-top: 22px; text-align: center; }

/* ---------------------------------------------------------------- */
/* Contact form                                                      */
/* ---------------------------------------------------------------- */

.grid-2 { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.grid-phone { display: grid; gap: 15px; grid-template-columns: 130px 1fr; }

@media (max-width: 520px) {
  .grid-2, .grid-phone { grid-template-columns: 1fr; }
}

.input-label { display: block; margin-bottom: 15px; }

.input-label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  color: var(--taupe);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 4px;
  cursor: pointer;
}

.check input { margin: 5px 0 0; flex: none; accent-color: var(--sage); }

.field-error {
  display: none;
  margin-top: 6px;
  padding-left: 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--error);
}

.field-error:not(:empty) { display: block; }

:is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error); }

/* Review block */

.review {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--sage-tint);
  border-radius: var(--radius);
}

.review dl { margin: 0; display: grid; gap: 10px; }

.review div { display: flex; gap: 16px; align-items: baseline; }

.review dt {
  flex: none;
  width: 118px;
  font-size: 15px;
  color: var(--taupe);
}

.review dd { margin: 0; color: var(--ink); }

@media (max-width: 480px) {
  .review div { flex-direction: column; gap: 2px; }
  .review dt { width: auto; }
}

/* ---------------------------------------------------------------- */
/* Buttons — pills, as on the main site                              */
/* ---------------------------------------------------------------- */

.step-actions { display: flex; gap: 11px; flex-wrap: wrap; }

.btn {
  padding: 13px 28px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--sage-mid);
  border-color: var(--sage-mid);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--sage-line);
  color: var(--taupe);
}

.btn-ghost:hover:not(:disabled) { border-color: var(--sage); color: var(--sage); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---------------------------------------------------------------- */
/* Feedback                                                          */
/* ---------------------------------------------------------------- */

.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.alert-error {
  background: #F8EFED;
  border: 1px solid var(--error);
  color: #7C3E37;
}

.loading { padding: 32px 0; text-align: center; color: var(--taupe-light); }

.empty {
  padding: 28px 24px;
  background: var(--sage-tint);
  border-radius: var(--radius);
  text-align: center;
}

/* ---------------------------------------------------------------- */
/* Confirmation                                                      */
/* ---------------------------------------------------------------- */

.done {
  text-align: center;
  padding: 60px 28px;
  background: var(--white);
  border-radius: var(--radius);
}

.done-mark { color: var(--sage); margin-bottom: 20px; }

.done-title {
  font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  color: var(--sage);
  margin: 0 0 12px;
}

.done-text { margin: 0 0 8px; }
.done .review { text-align: left; }

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.foot {
  padding: 30px var(--gutter) 48px;
  text-align: center;
  font-size: 15px;
  color: var(--taupe-light);
}

.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
