:root {
  --ivory: #f4f4f4;
  --paper: #ffffff;
  --graphite: #101828;
  --muted: #667085;
  --champagne: #9900ff;
  --champagne-soft: #ead4ff;
  --teal: #9900ff;
  --teal-dark: #7000b8;
  --line: #e4e7ec;
  --danger: #a23535;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--graphite);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--teal-dark);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(340px, 42%) minmax(0, 1fr);
  min-height: 100vh;
}

.visual-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--graphite);
  isolation: isolate;
}

.visual-image {
  position: absolute;
  inset: -2%;
  z-index: -2;
  background: url("assets/luxury-clinic-hero.png") center / cover no-repeat;
  animation: image-breathe 18s ease-in-out infinite alternate;
}

.visual-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.64);
}

.kinetic-frame {
  position: absolute;
  inset: 28px;
  z-index: 0;
  border: 1px solid rgba(153, 0, 255, 0.34);
  border-radius: var(--radius);
  pointer-events: none;
}

.kinetic-frame span {
  position: absolute;
  display: block;
  background: rgba(186, 91, 255, 0.72);
  opacity: 0.72;
}

.kinetic-frame span:nth-child(1) {
  top: 18%;
  left: 0;
  width: 82px;
  height: 1px;
  transform-origin: left center;
  animation: kinetic-line 4.8s ease-in-out infinite;
}

.kinetic-frame span:nth-child(2) {
  right: 12%;
  bottom: 0;
  width: 1px;
  height: 116px;
  transform-origin: bottom center;
  animation: kinetic-rise 5.4s ease-in-out infinite 800ms;
}

.kinetic-frame span:nth-child(3) {
  right: 0;
  bottom: 22%;
  width: 64px;
  height: 1px;
  transform-origin: right center;
  animation: kinetic-line 5.2s ease-in-out infinite 400ms;
}

.visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(32px, 5vw, 72px);
}

.brand {
  display: inline-flex;
  width: min(260px, 78%);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.visual-copy {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d7a0ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-copy h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.visual-copy > p:last-child {
  max-width: 56ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.assurances {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assurances span {
  color: #d7a0ff;
  font-size: 11px;
  font-weight: 700;
}

.form-panel {
  min-width: 0;
  padding: 42px clamp(28px, 5vw, 76px) 54px;
  background: var(--paper);
}

.form-header,
#clinic-form {
  width: min(100%, 800px);
  margin-inline: auto;
}

.mobile-brand {
  display: none;
}

.step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-heading p,
.step-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  background: #eaecf0;
}

.progress-track span {
  display: block;
  width: 14.285%;
  height: 100%;
  background: var(--teal);
  transform-origin: left center;
  transition: width 320ms cubic-bezier(.22,.61,.36,1);
}

.progress-track span::after {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.24);
  content: "";
  transform: translateX(-100%);
  animation: progress-sweep 2.8s ease-in-out infinite;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  min-width: 0;
  color: #8893a8;
  text-align: center;
}

.step-list span {
  display: grid;
  width: 27px;
  height: 27px;
  margin: 0 auto 5px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 11px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.step-list small {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-list li[aria-current="step"],
.step-list li.is-complete {
  color: var(--teal-dark);
}

.step-list li[aria-current="step"] span {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
  transform: translateY(-2px);
}

.step-list li.is-complete span {
  border-color: var(--teal);
}

#clinic-form {
  margin-top: 42px;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transform-origin: center top;
  will-change: opacity, transform;
}

.form-step > legend {
  width: 100%;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
}

.step-intro {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

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

.field {
  min-width: 0;
}

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

.field label:not(.choice):not(.consent),
.group-label {
  display: block;
  margin: 0 0 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.selection-hint {
  margin: -3px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.field label:not(.choice):not(.consent) span,
.group-label span,
.required-note span,
.consent b {
  color: var(--champagne);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: var(--graphite);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(153, 0, 255, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  animation: invalid-nudge 210ms ease;
}

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

.option-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice:has(input:checked) {
  border-color: var(--teal);
  background: #f8efff;
  box-shadow: inset 3px 0 0 var(--teal);
}

.choice:hover {
  transform: translateY(-1px);
  border-color: #98a2b3;
}

.choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.choice:focus-within {
  outline: 3px solid rgba(153, 0, 255, 0.14);
  outline-offset: 1px;
}

.choice input,
.consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal);
}

.field-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}

.error-summary {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 3px solid var(--danger);
  border-radius: 0 5px 5px 0;
  color: #6f2525;
  background: #fbefed;
  font-size: 13px;
}

.privacy-block {
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--champagne-soft);
  border-radius: var(--radius);
  background: #faf5ff;
}

.privacy-block > p {
  margin: 0 0 14px;
  color: #475467;
  font-size: 12px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
}

.consent input {
  margin-top: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.required-note {
  margin-right: auto;
  color: var(--muted);
  font-size: 11px;
}

.button {
  min-width: 126px;
  min-height: 45px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid rgba(153, 0, 255, 0.22);
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 22px rgba(153, 0, 255, 0.22);
}

.button-secondary {
  color: var(--graphite);
  border-color: #d0d5dd;
  background: transparent;
}

@keyframes image-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035);
  }
}

@keyframes kinetic-line {
  0%,
  100% {
    transform: scaleX(0.38);
    opacity: 0.3;
  }

  45% {
    transform: scaleX(1);
    opacity: 0.82;
  }
}

@keyframes kinetic-rise {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.28;
  }

  52% {
    transform: scaleY(1);
    opacity: 0.76;
  }
}

@keyframes progress-sweep {
  0%,
  52% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes invalid-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(-4px);
  }

  70% {
    transform: translateX(4px);
  }
}

.delivery-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  padding: 14px;
  color: #fff;
  background: var(--danger);
  text-align: center;
}

.thank-you-page {
  min-height: 100vh;
  color: #f7f7fa;
  background: #08080b;
}

.thank-you-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.thank-you-card {
  width: min(100%, 620px);
  padding: clamp(32px, 7vw, 64px);
  border-top: 4px solid var(--teal);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: #101014;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.thank-you-logo {
  display: inline-flex;
  width: min(230px, 72%);
  align-items: center;
}

.thank-you-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.thank-you-card .eyebrow {
  margin-top: 42px;
  color: var(--teal);
}

.thank-you-card h1 {
  margin: 36px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.14;
}

.thank-you-card p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(247, 247, 250, 0.76);
}

.thank-you-card .button {
  display: inline-flex;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: minmax(290px, 36%) minmax(0, 1fr);
  }

  .visual-content {
    padding: 34px;
  }

  .visual-copy h1 {
    font-size: 38px;
  }

  .form-panel {
    padding-inline: 30px;
  }

  .step-list small {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    display: block;
  }

  .visual-panel {
    position: relative;
    height: 245px;
  }

  .visual-image {
    background-position: center 42%;
  }

  .kinetic-frame {
    inset: 16px;
  }

  .visual-content {
    padding: 24px;
  }

  .visual-copy h1 {
    max-width: 18ch;
    font-size: 30px;
  }

  .visual-copy > p:last-child,
  .assurances {
    display: none;
  }

  .form-panel {
    padding: 26px 20px 42px;
  }

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

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

  .option-grid,
  .option-grid-three {
    grid-template-columns: 1fr;
  }

  #clinic-form {
    margin-top: 30px;
  }

  .form-step > legend {
    font-size: 27px;
  }

  .step-list {
    gap: 2px;
  }

  .step-list span {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 440px) {
  .visual-panel {
    height: 218px;
  }

  .brand {
    width: min(210px, 70%);
  }

  .visual-copy h1 {
    font-size: 27px;
  }

  .form-panel {
    padding-inline: 16px;
  }

  .step-heading span {
    display: none;
  }

  .step-list span {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .required-note {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .button-primary:only-of-type {
    grid-column: 2;
  }

  .delivery-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
