:root {
  --canvas: #f9fbfc;
  --paper: #fff;
  --ink: #152d3f;
  --muted: #475f70;
  --navy: #152d3f;
  --blue: #b8d5e2;
  --line: #cbdbe2;
  --tint: #ddebf1;
  --display: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --slate: #6a8495;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}

button,input,a {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--navy);
  text-underline-offset: .23em;
}

button:disabled {
  cursor: default;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: 0;
}

[hidden] {
  display: none!important;
}

.skip {
  position: absolute;
  left: .75rem;
  top: -5rem;
  background: white;
  color: var(--navy);
  padding: .75rem;
  z-index: 10;
}

.skip:focus {
  top: .4rem;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.bar-inner,.footer-inner {
  max-width: 83rem;
  margin: auto;
  padding: 0 clamp(1.2rem,5vw,5.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bar-inner {
  min-height: 5.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
}

.wordmark img {
  display: block;
  width: auto;
  height: 3rem;
  max-width: 100%;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

nav a {
  font-size: .94rem;
  text-decoration: none;
  color: var(--ink);
}

nav a:hover,.text-btn:hover {
  text-decoration: underline;
}

.lang {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: .83rem;
  letter-spacing: .06em;
  color: var(--navy);
}

.lang:hover {
  border-color: var(--navy);
}

.wrap {
  width: min(73rem,100%);
  padding: clamp(2.5rem,6vw,5.5rem) clamp(1.25rem,4vw,3.75rem) 5.5rem;
  margin: 0 auto;
}

.intro {
  max-width: 52rem;
  margin-bottom: clamp(2rem,4vw,3rem);
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .76rem;
}

.flow h1,.flow h2,.flow legend {
  font-family: var(--display);
  font-weight: 500;
}

.flow h1 {
  font-size: clamp(2.6rem,5.8vw,4.9rem);
  letter-spacing: -.065em;
  line-height: 1.02;
  margin: 0 0 .9rem;
}

.flow h2,.flow legend {
  font-size: clamp(1.55rem,2.5vw,2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0;
}

.lede {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem,1.4vw,1.12rem);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(16rem,1fr);
  align-items: start;
  gap: clamp(1.5rem,5vw,5rem);
}

.workspace {
  min-width: 0;
}

.steps {
  display: flex;
  padding: 0;
  list-style: none;
  gap: 1.6rem;
  margin: 0 0 1.8rem;
  border-bottom: 1px solid var(--line);
}

.steps li {
  padding: .3rem 0 .65rem;
  color: var(--muted);
  font-size: .9rem;
}

.steps li[aria-current] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px var(--navy);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0 0 1rem;
}

.service-list {
  display: grid;
  gap: .5rem;
}

.service {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper);
  cursor: pointer;
}

.service:has(input:checked) {
  border: 1px solid var(--slate);
  background: #edf4f7;
  box-shadow: inset 0 0 0 .5px var(--slate);
}

.service input, .check-label input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--navy);
}

.service input {
  margin: 0;
}

.service .service-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.service strong,.check-label strong {
  display: block;
  font-weight: 600;
}

.small,.field-help {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.price {
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.upgrade {
  background: #edf4f7;
  border-radius: .45rem;
  margin-top: .65rem;
  padding: 1rem 1.1rem;
}

.check-label {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  cursor: pointer;
}

.check-label input {
  margin: .25rem 0 0;
}

.check-label>span:first-of-type {
  flex: 1;
}

.check-label .small {
  margin-top: .25rem;
}

.dates,.times {
  margin-top: 2rem;
}

.dates-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}

.dates-bar strong {
  font-weight: 500;
}

.pager {
  display: flex;
  gap: .25rem;
}

.icon-btn {
  height: 2.75rem;
  width: 2.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.icon-btn:disabled {
  opacity: .36;
}

.icon-btn svg,.check-mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-list {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: .4rem;
}

.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .6rem .1rem;
  min-height: 4.1rem;
}

.date-btn span {
  font-size: .82rem;
}

.date-btn strong {
  font: 1.45rem/1.1 var(--display);
}

.date-btn:disabled {
  color: #6c7f8b;
  background: transparent;
  border-color: #dfe8ec;
}

.date-btn[aria-pressed="true"],.slot-btn[aria-pressed="true"] {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}

.times legend {
  padding: 0;
}

.times .field-help {
  margin: .25rem 0 .75rem;
}

.time-list {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.time-list .field-help {
  margin: 0;
}

.slot-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2rem;
  min-height: 2.75rem;
  padding: .38rem .95rem;
}

.actions {
  margin-top: 1.8rem;
}

.primary {
  background: var(--navy);
  border: 1px solid var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border-radius: 3rem;
  padding: .78rem 1.55rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
  text-align: center;
}

.primary:hover {
  background: #29485b;
}

.primary:disabled {
  background: #dbe7ed;
  border-color: #dbe7ed;
  color: #526978;
}

.text-btn {
  padding: .35rem 0;
  min-height: 2.75rem;
  background: none;
  border: 0;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .23em;
  font-size: .96rem;
}

.aside {
  position: sticky;
  top: 1.25rem;
}

.summary {
  border-top: 0;
  border-radius: .7rem;
  background: var(--tint);
  padding: clamp(1.2rem,2.5vw,2rem);
}

.summary .eyebrow {
  margin-bottom: .5rem;
}

.summary h2 {
  margin-bottom: 1.45rem;
}

.line,.bill-total,.bill-method {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.line {
  margin: .45rem 0;
  font-size: .96rem;
}

.line strong {
  font-weight: 500;
}

.line-total {
  border-top: 1px solid #adc5d1;
  margin-top: 1.1rem;
  padding-top: .85rem;
}

.line-total strong {
  font-size: 1.25rem;
}

.summary .small {
  margin: .15rem 0;
}

.visit-meta {
  border-top: 1px solid #adc5d1;
  padding-top: .9rem;
  margin: 1.2rem 0 0;
}

.visit-meta dt,.bill-meta dt {
  color: var(--muted);
  font-size: .85rem;
}

.visit-meta dd,.bill-meta dd {
  margin: 0;
}

.visit-meta dd+dt {
  margin-top: .65rem;
}

.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.form-fields {
  display: grid;
  gap: 1rem;
}

.form-fields label>span:first-child {
  display: block;
  font-weight: 500;
  margin-bottom: .3rem;
}

.form-fields input {
  border: 1px solid var(--slate);
  background: var(--paper);
  padding: .7rem .8rem;
  width: 100%;
  border-radius: .4rem;
  color: var(--ink);
  min-height: 3rem;
}

.form-fields .field-help {
  margin-top: .25rem;
}

.consent {
  margin-top: 1.4rem;
}

.error {
  border-left: 3px solid var(--navy);
  padding: .65rem .9rem;
  background: #e9f1f5;
  color: var(--navy);
  margin-top: 1rem;
}

.status-panel {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.result {
  max-width: 44rem;
  padding: clamp(1.45rem,4vw,3rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--paper);
}

.result .check-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.result h2 {
  font-size: clamp(2.4rem,5vw,3.5rem);
}

.result p:not(.eyebrow) {
  margin: .75rem 0 1rem;
}

.result-info {
  padding: .75rem 0;
  border-block: 1px solid var(--line);
  display: grid;
  gap: .25rem;
}

.result-info span {
  display: block;
}

.result .primary {
  margin-top: .4rem;
}

.closed-services {
  margin: 1rem 0;
}

.closed-services .line {
  padding: .6rem 0;
  border-block-start: 1px solid var(--line);
}

footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 4.8rem;
  color: var(--muted);
  font-size: .9rem;
}

.bill-wrap {
  width: min(49rem,100%);
  margin: 0 auto;
  padding: clamp(2.25rem,6vw,5rem) clamp(1.1rem,4vw,2rem) 5rem;
}

.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: clamp(1.4rem,5vw,3.1rem);
  box-shadow: 0 18px 55px #152d3f09;
}

.paper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.paper h1 {
  font-size: clamp(2.6rem,6vw,4.3rem);
}

.paper .eyebrow {
  margin-bottom: .45rem;
}

.status-chip {
  display: inline-block;
  font-size: .83rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--tint);
  padding: .28rem .7rem;
  border: 1px solid var(--blue);
  border-radius: 2rem;
  white-space: nowrap;
}

.bill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin: 1.1rem 0 2rem;
}

.bill-meta dd {
  font-size: .97rem;
}

.items {
  width: 100%;
  border-collapse: collapse;
}

.items th,.items td {
  text-align: left;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}

.items th {
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.items th:last-child,.items td:last-child {
  text-align: right;
  white-space: nowrap;
}

.items td:first-child {
  padding-right: 1rem;
}

.bill-total {
  padding: 1.1rem 0;
  font-size: 1.1rem;
}

.bill-total strong {
  font-size: 1.65rem;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  color: var(--navy);
  font-weight: 400;
}

.bill-method {
  font-size: .95rem;
}

.bill-method strong {
  font-weight: 500;
}

.bill-action {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 1.2rem;
}

.bill-action .field-help {
  margin: .65rem 0;
}

.topbar {
  background: var(--paper);
}

.result.closed {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  max-width: none;
  overflow: hidden;
  padding: 0;
}

.closed-copy {
  padding: clamp(1.55rem, 4vw, 3rem);
}

.closed-picture {
  width: 100%;
  max-height: 30rem;
  height: 100%;
  min-height: 17rem;
  object-fit: cover;
  object-position: 55% 50%;
  display: block;
  background: var(--tint);
}

.closed .closed-copy h2, .result:not(.closed) h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}

.result.closed .line {
  padding: .75rem 0;
}

.paper-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.bill-total, .price, .line-total {
  font-variant-numeric: tabular-nums;
}

.paper .bill-total {
  background: #eef5f8;
  margin-top: .8rem;
  padding: .8rem 1rem;
  border-radius: .35rem;
}

#bill-method:not([hidden]) {
  margin-top: 1rem;
}

.form-fields input:hover, .slot-btn:not([aria-pressed="true"]):hover, .date-btn:not(:disabled):not([aria-pressed="true"]):hover {
  border-color: var(--slate);
}

@media(max-width:730px) {
  .grid {
    grid-template-columns: minmax(0,1fr);
  }
  .result.closed {
    grid-template-columns: minmax(0, 1fr);
  }
  .closed-picture {
    max-height: none;
    height: clamp(7rem, 24vw, 10.5rem);
    min-height: 0;
    object-position: 50% 52%;
  }
  .aside {
    position: static;
  }
  .wrap {
    max-width: 39rem;
    padding-bottom: 3rem;
  }
  .bar-inner {
    min-height: 4.4rem;
  }
  .wordmark img {
    height: 2.65rem;
  }
  nav {
    gap: .8rem;
  }
  .summary {
    padding: 1.2rem;
  }
  .summary h2 {
    font-size: 1.8rem;
  }
  .actions .primary {
    width: 100%;
  }
  .wrap .intro {
    margin-bottom: 1.5rem;
  }
  .steps {
    margin-bottom: 1.4rem;
  }
  .footer-inner {
    min-height: 4.25rem;
    font-size: .8rem;
  }
  .times,.dates {
    margin-top: 1.5rem;
  }
}

@media(max-width:370px) {
  .bar-inner {
    padding-inline: 1rem;
  }
  .wordmark img {
    height: 2.25rem;
  }
  nav a {
    font-size: .85rem;
  }
  .date-list {
    gap: .22rem;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .12rem;
  }
  .paper-header {
    flex-wrap: wrap;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }
  .topbar,.skip,footer,.bill-action,.status-panel,.lang {
    display: none!important;
  }
  .bill-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .paper {
    padding: 12mm 5mm;
    box-shadow: none;
    border: 0;
  }
  .status-chip {
    color: black;
  }
  .bill-meta {
    margin-top: 8mm;
  }
  .paper .eyebrow {
    color: black;
  }
  body.billing {
    display: block;
    min-height: initial;
  }
  .paper,.bill-total,.items {
    break-inside: avoid;
  }
}

.review-strip {
  background: var(--tint);
  padding: .65rem .9rem;
  border-left: 2px solid var(--navy);
  margin: 0 0 1.1rem;
  font-size: .96rem;
}

/* Keep the terms together with the booking acknowledgment on a phone. */
.booking .booking-policy {
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.booking .booking-policy h2 {
  font: 600 1.05rem/1.35 var(--sans);
  letter-spacing: 0;
}
.booking .general-policy {
  max-width: 46rem;
  margin-top: 2.3rem;
}
.booking .form-policy {
  margin-top: 1.55rem;
}
.booking .policy-summary {
  margin: .5rem 0 .3rem;
  color: var(--muted);
  font-size: .97rem;
}
.booking .policy-link {
  display: inline-block;
  padding-block: .25rem;
}
.booking .policy-agreement {
  margin-top: .8rem;
}
