:root {
  --ink: #231a1f;
  --muted: #6d6268;
  --plum: #4c253a;
  --plum-dark: #351f2b;
  --paper: #f7f3ee;
  --surface: #fffdf9;
  --line: #d8d0ca;
  --soft-line: #e8e1dc;
  --success: #315f44;
  --error: #8a2f36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #b47a98;
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(247, 243, 238, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 20px clamp(22px, 4vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  width: fit-content;
}

.primary-nav {
  display: flex;
}

.primary-nav a {
  align-items: center;
  border-left: 1px solid var(--line);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  transition: color 160ms ease;
}

.primary-nav a:last-child {
  border-right: 1px solid var(--line);
}

.primary-nav a span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--plum);
}

.site-header > .button,
.account-controls {
  justify-self: end;
}

.account-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.account-controls .button-secondary {
  width: auto;
}

.account-email {
  color: var(--muted);
  font-size: 12px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  align-items: center;
  background: var(--plum);
  border: 1px solid var(--plum);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  background: var(--plum-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-compact {
  min-height: 42px;
  padding: 0 18px;
}

.button-secondary {
  background: transparent;
  color: var(--plum);
  width: 100%;
}

.button-secondary:hover {
  background: var(--plum);
  color: #fff;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--plum);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 5px;
  width: fit-content;
}

.screen {
  border-bottom: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 83px;
}

.section-shell {
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(64px, 7vw, 88px) clamp(22px, 5vw, 72px);
}

.home-layout {
  align-items: center;
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.section-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 24px;
}

.eyebrow,
.panel-label {
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(56px, 6.5vw, 82px);
  line-height: 0.98;
  margin-bottom: 28px;
  max-width: 820px;
}

.lead {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  max-width: 680px;
}

.action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.overview-panel,
.search-controls,
.results-panel,
.booking-form,
.request-summary {
  background: var(--surface);
  border: 1px solid var(--line);
}

.overview-panel {
  padding: clamp(32px, 4vw, 46px);
}

.overview-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 30px;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  border-top: 1px solid var(--soft-line);
  display: grid;
  gap: 18px;
  grid-template-columns: 34px 1fr;
  padding: 18px 0;
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li > span,
.form-section-number {
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.process-list strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.process-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.salons-screen {
  background: var(--plum-dark);
  color: #fff;
}

.section-heading {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.98;
  margin-bottom: 20px;
}

.section-heading > div:last-child > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
}

.salons-screen .section-number,
.salons-screen .eyebrow,
.salons-screen .section-heading > div:last-child > p {
  color: rgba(255, 255, 255, 0.68);
}

.search-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.search-controls {
  color: var(--ink);
  padding: 30px;
}

.search-controls label,
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.input-action input {
  border-right: 0;
}

.field-help,
.privacy-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.method-divider {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 15px;
  margin: 22px 0;
  text-transform: uppercase;
}

.method-divider::before,
.method-divider::after {
  background: var(--soft-line);
  content: "";
  height: 1px;
  width: 100%;
}

.results-panel {
  color: var(--ink);
  min-height: 320px;
  padding: 30px;
}

.results-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.results-heading h3,
.form-section h3,
.request-summary h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.results-heading > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-width: 260px;
  text-align: right;
}

.salon-results {
  margin-top: 26px;
}

.salon-card {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px 0 4px;
}

.salon-card h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 9px;
}

.salon-card address,
.salon-card p {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  margin: 0;
}

.salon-card .distance {
  color: var(--success);
  font-weight: 700;
  margin-top: 11px;
}

.salon-card .button {
  align-self: center;
}

.salon-card.is-selected {
  border-top: 2px solid var(--success);
}

.salon-card.is-selected .button {
  background: var(--success);
  border-color: var(--success);
}

.empty-results {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  padding-top: 28px;
}

.request-screen {
  padding-bottom: 0;
}

.request-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.booking-form {
  padding: clamp(26px, 3.2vw, 42px);
}

.account-gate {
  align-items: center;
  background: #f1ebe7;
  border-left: 3px solid var(--plum);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 20px;
}

.account-gate.is-authenticated {
  background: #edf3ee;
  border-left-color: var(--success);
}

.account-gate strong {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}

.account-gate p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.account-gate-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.inline-text-link {
  background: transparent;
  cursor: pointer;
}

.required-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 18px;
  text-align: right;
}

.required-marker {
  color: var(--error);
  font-weight: 800;
  margin-left: 3px;
}

.form-section {
  border-bottom: 1px solid var(--soft-line);
  display: grid;
  gap: 20px;
  grid-template-columns: 30px 1fr;
  padding: 0 0 32px;
}

.form-section + .form-section {
  padding-top: 32px;
}

.form-section h3 {
  margin-bottom: 22px;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: block;
}

.field-wide {
  grid-column: 1 / -1;
}

.selected-salon-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 18px;
}

.selected-salon-box.has-selection {
  border-left: 3px solid var(--success);
}

.selected-salon-box strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
}

.selected-salon-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.selected-salon-box .text-link {
  flex: 0 0 auto;
}

.field > span em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-left: 6px;
}

.choice-field {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 22px 0 0;
  padding: 0;
}

.choice-field legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
  width: 100%;
}

.choice-field label {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 9px;
}

.choice-field input,
.consent-field input {
  accent-color: var(--plum);
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.compact-choice {
  align-content: start;
  margin: 0;
}

.professional-fields {
  align-items: start;
  margin-top: 18px;
}

.verification-panel {
  background: #f1ebe7;
  border-left: 3px solid var(--plum);
  margin-top: 22px;
  padding: 20px;
}

.verification-panel > div:first-child strong {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}

.verification-panel > div:first-child p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.verification-code-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
}

.verification-code-row[hidden] {
  display: none;
}

.verification-code-row .field > span {
  margin-bottom: 7px;
}

.verification-code-row input {
  font-size: 20px;
  letter-spacing: 0.18em;
}

.verification-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.verification-status.success {
  color: var(--success);
}

.verification-status.error {
  color: var(--error);
}

.verification-status.preview {
  color: var(--plum);
}

.honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.consent-field {
  align-items: start;
  display: grid;
  font-size: 13px;
  gap: 12px;
  grid-template-columns: 18px 1fr;
  line-height: 1.55;
  margin-top: 22px;
}

.consent-field label {
  cursor: pointer;
}

.inline-button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--plum);
  cursor: pointer;
  font-weight: 700;
  padding: 0 0 2px;
}

.submit-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

#booking-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

#booking-status.success {
  color: var(--success);
}

#booking-status.error {
  color: var(--error);
}

.request-summary {
  padding: 30px;
  position: sticky;
  top: 100px;
}

.request-summary h3 {
  margin-bottom: 24px;
}

.request-summary dl {
  margin: 0 0 24px;
}

.request-summary dl > div {
  border-top: 1px solid var(--soft-line);
  padding: 16px 0;
}

.request-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.request-summary dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.terms-dialog,
.auth-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  max-height: 88vh;
  max-width: 760px;
  padding: 0;
  width: calc(100% - 36px);
}

.terms-dialog::backdrop,
.auth-dialog::backdrop {
  background: rgba(35, 26, 31, 0.72);
}

.terms-dialog-shell > header,
.auth-dialog-shell > header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 32px 24px;
}

.terms-dialog .panel-label,
.auth-dialog .panel-label {
  margin-bottom: 8px;
}

.terms-dialog h2,
.auth-dialog h2 {
  font-size: clamp(34px, 4.5vw, 46px);
  margin: 0;
}

.dialog-close {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--plum);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 4px;
}

.auth-dialog {
  max-width: 580px;
}

.auth-dialog-body {
  padding: 26px 32px 32px;
}

.auth-gate-message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.auth-tabs {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
}

.auth-tabs button[aria-selected="true"] {
  border-bottom-color: var(--plum);
  color: var(--plum);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form .field-help {
  margin: -5px 0 2px;
}

.auth-form-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.auth-form-intro strong {
  color: var(--ink);
}

.auth-resend {
  justify-self: start;
}

.auth-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 18px 0 0;
}

.auth-status:empty {
  display: none;
}

.auth-status.success {
  color: var(--success);
}

.auth-status.error {
  color: var(--error);
}

.terms-scroll {
  max-height: 52vh;
  overflow-y: auto;
  padding: 28px 32px;
}

.terms-scroll h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  margin: 32px 0 12px;
}

.terms-scroll h3:first-of-type {
  margin-top: 24px;
}

.terms-scroll p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.terms-scroll p:first-child {
  color: var(--error);
}

.terms-dialog-shell > footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0;
  max-width: none;
  padding: 20px 32px;
}

.terms-dialog-shell > footer p {
  margin: 0;
}

footer {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto auto;
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px clamp(22px, 5vw, 72px);
}

footer p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer nav a {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .account-email {
    display: none;
  }

  .home-layout,
  .search-layout,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .request-summary {
    position: static;
  }
}

@media (max-width: 650px) {
  .site-header {
    gap: 14px;
    padding: 16px 18px;
  }

  .account-controls {
    gap: 7px;
  }

  .account-controls .button {
    min-height: 40px;
    padding: 0 12px;
  }

  .account-controls #header-sign-in {
    display: none;
  }

  .account-gate {
    align-items: stretch;
    flex-direction: column;
  }

  .account-gate-actions {
    justify-content: space-between;
  }

  .auth-dialog-body,
  .auth-dialog-shell > header {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 17px 20px;
  }

  .wordmark {
    font-size: 28px;
  }

  .button-compact {
    min-height: 40px;
    padding: 0 14px;
  }

  .screen {
    min-height: auto;
    scroll-margin-top: 75px;
  }

  .section-shell {
    padding: 52px 20px 72px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 64px);
  }

  .section-heading {
    gap: 14px;
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

  .section-number {
    margin-bottom: 18px;
  }

  .overview-panel,
  .search-controls,
  .results-panel,
  .booking-form,
  .request-summary {
    padding: 24px 20px;
  }

  .input-action {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .input-action input {
    border-right: 1px solid var(--line);
  }

  .results-heading {
    align-items: start;
    flex-direction: column;
  }

  .results-heading > p {
    max-width: none;
    text-align: left;
  }

  .salon-card {
    grid-template-columns: 1fr;
  }

  .salon-card .button {
    width: 100%;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .selected-salon-box {
    align-items: start;
    flex-direction: column;
  }

  .verification-code-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .verification-code-row .button {
    width: 100%;
  }

  .form-section {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .submit-row .button {
    width: 100%;
  }

  footer {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  footer nav {
    flex-wrap: wrap;
  }

  .terms-dialog-shell > header,
  .terms-scroll,
  .terms-dialog-shell > footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .terms-dialog-shell > footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
