:root {
  color-scheme: light;
  --void: #f7f3e9;
  --panel: #fffdf8ee;
  --panel-solid: #fffdf8;
  --line: #725a2a24;
  --line-gold: #b7893857;
  --gold: #a97822;
  --gold-bright: #ead79d;
  --gold-deep: #7c5316;
  --bronze: #60410f;
  --mint: #287b66;
  --cyan: #367d88;
  --water: #5a9faa;
  --text: #2e281f;
  --muted: #766f63;
  --danger: #a7473f;
  --shadow: 0 24px 70px #6a4b171f;
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% -12%, #e4c77b3d 0, transparent 34%),
    radial-gradient(circle at 4% 78%, #f1ddae52 0, transparent 30%),
    linear-gradient(155deg, #fffdf8, #f4eddf 58%, #fffaf0);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

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

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .2;
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  right: -190px;
  width: 420px;
  height: 420px;
  background: #e7c467;
}

.ambient-two {
  bottom: -220px;
  left: -230px;
  width: 500px;
  height: 500px;
  background: #b9872f;
}

.grid-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(#9f76271a 1px, transparent 1px), linear-gradient(90deg, #9f76271a 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  opacity: .3;
  pointer-events: none;
}

.gold-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gold-atmosphere::before {
  content: "";
  position: absolute;
  top: -36%;
  right: -9%;
  width: min(78vw, 1080px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 28deg, transparent 0 13deg, #9f6f2224 13.5deg 14deg, transparent 14.5deg 27deg);
  mask-image: radial-gradient(circle, transparent 0 31%, #000 33% 35%, transparent 37% 48%, #000 50% 51%, transparent 53% 64%, #000 66% 67%, transparent 69%);
  opacity: .48;
  will-change: transform, opacity;
  animation: goldSweep .95s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.gold-orbit {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid #a878265c;
  border-radius: 50%;
  opacity: .38;
  box-shadow:
    0 0 0 26px #c69a3b12,
    0 0 0 27px #9d71233d,
    0 0 0 82px #bb8c310f,
    0 0 0 83px #9d712332,
    inset 0 0 90px #ba8b3117;
  will-change: transform, opacity;
  animation: goldOrbit .95s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.gold-orbit::before,
.gold-orbit::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid #9d71234a;
  border-radius: 50%;
}

.gold-orbit::after {
  inset: 37%;
  background: radial-gradient(circle, #aa792541 0 5%, transparent 6% 100%);
  box-shadow: 0 0 48px #b4862e38;
}

.gold-orbit-one {
  top: -20vw;
  right: -8vw;
  width: min(70vw, 1040px);
}

.gold-orbit-two {
  bottom: -29vw;
  left: -18vw;
  width: min(76vw, 1100px);
  opacity: .27;
  animation-delay: -.46s;
}

.gold-ribbon {
  --ribbon-angle: -13deg;
  position: absolute;
  width: min(82vw, 1120px);
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 2%, #9c6c1715 25%, #c8993552 51%, #b8842518 76%, transparent 98%);
  filter: blur(22px);
  mix-blend-mode: multiply;
  opacity: .3;
  will-change: transform, opacity, filter;
  animation: goldRibbon .9s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.gold-ribbon-one {
  top: 17%;
  left: -16%;
}

.gold-ribbon-two {
  --ribbon-angle: 18deg;
  right: -20%;
  bottom: 12%;
  opacity: .22;
  animation-delay: -.32s;
}

.gold-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #9f712f66 0 1px, transparent 1.4px),
    radial-gradient(circle, #c2994a52 0 1px, transparent 1.5px);
  background-position: 0 0, 37px 29px;
  background-size: 93px 91px, 137px 133px;
  mask-image: radial-gradient(ellipse at 50% 34%, #000 0, transparent 72%);
  opacity: .2;
  will-change: background-position, opacity;
  animation: goldDust .9s ease-in-out infinite alternate;
}

.public-header,
.public-shell,
.public-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.public-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: premiumEnter .45s ease-out both;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.public-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #b98b3c70, 0 10px 24px #a8792826;
}

.public-brand span {
  display: grid;
}

.public-brand b {
  font-size: 14px;
}

.public-brand small {
  margin-top: 1px;
  color: var(--gold);
  font: 600 8px "DM Sans", sans-serif;
  letter-spacing: 1.5px;
}

.header-live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #397b6936;
  border-radius: 999px;
  background: #f3fbf7b8;
  color: #2c6c5d;
  font: 600 9px "DM Sans", sans-serif;
  letter-spacing: 1.1px;
}

.header-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px #4b967f18, 0 0 12px #4f9982a8;
  animation: livePulse .9s ease-out infinite;
}

.booking-hero {
  display: grid;
  grid-template-columns: 1fr minmax(290px, 350px);
  gap: 34px;
  align-items: center;
  padding: 36px 0 26px;
  animation: premiumEnter .55s ease-out both;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font: 600 9px "DM Sans", sans-serif;
  letter-spacing: 1.7px;
}

.booking-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -2px;
}

.lead {
  margin: 10px 0 0;
  color: #686258;
  font-size: 14px;
}

.quick-note {
  margin: 5px 0 0;
  color: #948b7c;
  font-size: 10px;
}

.clinic-pulse {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 124px;
  padding: 23px 26px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(110deg, #fffefaf2, #f9f2e5e8);
  box-shadow: 0 14px 34px #87612214, inset 0 1px #ffffff;
}

.pulse-orbit {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #a77a2d2e;
  border-radius: 50%;
  background: #c2943c0b;
}

.pulse-orbit i {
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #9b9386;
  box-shadow: 0 0 0 6px #8c837318;
  transition: .3s;
  animation: clinicStatusBlink 1.65s ease-in-out infinite;
}

.clinic-pulse.open .pulse-orbit i {
  background: #20a76f;
  box-shadow: 0 0 0 8px #20a76f1f, 0 0 24px #20a76fa8;
}

.clinic-pulse.outside .pulse-orbit i {
  background: #d89c22;
  box-shadow: 0 0 0 8px #d89c2224, 0 0 24px #d89c22a8;
}

.clinic-pulse.closed .pulse-orbit i {
  background: #c84b43;
  box-shadow: 0 0 0 8px #c84b4324, 0 0 24px #c84b43a8;
}

.clinic-pulse.closed {
  border-color: #c84b4352;
  background: linear-gradient(110deg, #fffaf8f5, #faeae6eb);
  box-shadow: 0 14px 38px #a83e321b, inset 0 1px #ffffff;
}

.clinic-pulse.closed strong {
  color: #96362f;
}

.clinic-pulse.outside {
  border-color: #d89c225c;
  background: linear-gradient(110deg, #fffdf7f5, #faefd8ed);
  box-shadow: 0 14px 38px #a978201b, inset 0 1px #ffffff;
}

.clinic-pulse.outside strong {
  color: #8a5b08;
}

.clinic-pulse.open strong {
  color: #1f6c59;
}

.clinic-pulse > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.clinic-pulse small {
  color: #8d806c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.clinic-pulse strong {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.25;
  letter-spacing: -.45px;
  text-wrap: balance;
}

.clinic-pulse #clinicStatusHint {
  color: #6e675d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

@keyframes clinicStatusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .48; transform: scale(.78); }
}

.booking-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #9d6d247d;
  border-radius: 26px;
  background: linear-gradient(135deg, #ead6a8, #a97822 52%, #e6ca8b);
  box-shadow: 0 32px 90px #72501a38, 0 8px 24px #8b641b1c, 0 0 0 4px #ffffff9c;
  backdrop-filter: blur(24px);
  animation: premiumEnter .65s ease-out both;
}

.booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold-bright), var(--gold), transparent);
  opacity: .88;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 1px;
  background: #9d6d244f;
}

.schedule-panel,
.details-panel {
  min-width: 0;
  padding: 28px;
}

.schedule-panel {
  background: linear-gradient(150deg, #fffdf7, #f7ecd8);
}

.details-panel {
  background: linear-gradient(150deg, #f4e4c6, #fbf4e7 72%);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.section-head > div {
  min-width: 0;
}

.section-head small {
  display: block;
  color: var(--gold);
  font-size: 9px;
}

.section-head h2 {
  margin: 1px 0 0;
  font-size: 20px;
}

.step-number {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: linear-gradient(145deg, #fffef9, #f1dfb9);
  box-shadow: 0 5px 14px #76521c12;
  color: var(--gold);
  font: 700 11px "DM Sans", sans-serif;
}

.icon-refresh {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid #8063283d;
  border-radius: 11px;
  background: #fffaf0b5;
  color: var(--text);
  cursor: pointer;
  font: 19px "DM Sans", sans-serif;
  transition: .2s;
}

.icon-refresh:hover {
  border-color: var(--gold);
  transform: rotate(20deg);
}

.icon-refresh.loading {
  animation: spin 1s linear infinite;
}

.schedule-fields,
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field > span,
.time-picker legend {
  color: #4e473d;
  font-size: 11px;
  font-weight: 600;
}

.field > span b,
.consent-row b {
  color: var(--gold);
}

.field input,
.field textarea,
.selected-time {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #80632842;
  border-radius: 12px;
  appearance: none;
  background: #fffefb;
  box-shadow: inset 0 1px #ffffff, 0 2px 8px #79561e0a;
  color: var(--text);
  transition: .2s;
}

.field input:hover,
.field textarea:hover {
  border-color: #a9793555;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 0;
  background: #ffffff;
  box-shadow: 0 0 0 3px #b8893020;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.55;
}

.field > small {
  margin-top: -3px;
  color: #948b7c;
  text-align: right;
  font: 9px "DM Sans", sans-serif;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a49b8a;
}

.field input[type="date"] {
  color-scheme: light;
}

.selected-time {
  display: flex;
  align-items: center;
  color: #91897a;
}

.selected-time.active {
  border-color: var(--line-gold);
  background: #fff8e9;
  color: var(--gold);
}

.date-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
  padding: 11px 0;
  border-block: 1px solid #8063282b;
}

.date-summary > strong {
  font-size: 12px;
}

.slot-summary {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.slot-summary span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
}

.slot-summary b {
  color: var(--mint);
  font: 700 10px "DM Sans", sans-serif;
}

.time-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  min-height: 164px;
  margin-top: 9px;
}

.time-option {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid #8063283b;
  border-radius: 13px;
  background: #fffefb;
  box-shadow: 0 3px 10px #79561e0b;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.time-option::before,
.time-option::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.time-option b,
.time-option span {
  position: relative;
  z-index: 1;
}

.time-option b {
  font: 700 15px "DM Sans", sans-serif;
}

.time-option span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.time-option.capacity-two {
  border-color: #3b8c7638;
  background: linear-gradient(145deg, #eaf6f0aa, #fffdf8);
}

.time-option.capacity-two span {
  color: var(--mint);
}

.time-option.capacity-one {
  border-color: #5d9ba653;
  background: linear-gradient(145deg, #f4fbfb, #eef6f5);
  box-shadow: inset 0 -16px 30px #5a9faa12;
}

.time-option.capacity-one::before {
  inset: auto -12% -3%;
  height: 54%;
  border-radius: 48% 52% 0 0 / 10px 12px 0 0;
  background:
    radial-gradient(ellipse at 28% 0, #ffffff80 0 3%, transparent 25%),
    linear-gradient(180deg, #8bc7cb42 0%, #64a7ae52 52%, #4a8e975e 100%);
  box-shadow: inset 0 1px #ffffff99, inset 0 12px 24px #b7e4e32b;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: waterBodySway .9s cubic-bezier(.37, 0, .63, 1) infinite alternate;
}

.time-option.capacity-one::after {
  top: calc(50% - 10px);
  left: -18%;
  width: 136%;
  height: 22px;
  background:
    radial-gradient(ellipse at 50% 100%, #d9ffff8c 0 48%, transparent 53%) 0 0 / 54px 16px repeat-x,
    radial-gradient(ellipse at 50% 100%, #69b2b967 0 46%, transparent 52%) 18px 7px / 41px 12px repeat-x;
  opacity: .72;
  filter: drop-shadow(0 3px 5px #599ba62c);
  will-change: transform, background-position;
  animation: waterSurfaceDrift .95s cubic-bezier(.45, .05, .55, .95) infinite alternate;
}

.time-option.capacity-one span {
  color: #2c737c;
}

.time-option.capacity-full,
.time-option.capacity-closed {
  cursor: not-allowed;
  opacity: .52;
}

.time-option.capacity-full::before {
  inset: 0;
  background: linear-gradient(145deg, #b85e4c14, #fffaf8);
}

.time-option:not(:disabled):hover {
  z-index: 2;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #72531c24;
}

.time-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #d7b45838, 0 10px 24px #72531c25;
}

.time-option.selected b,
.time-option.selected span {
  color: #6f4c11;
}

.time-placeholder {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed #80632845;
  border-radius: 13px;
  background: #fffdf7a8;
  color: #8e8676;
  text-align: center;
  font-size: 11px;
}

.capacity-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 13px;
  color: #817a6e;
  font-size: 9px;
}

.capacity-guide span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.capacity-guide i {
  width: 16px;
  height: 16px;
  border: 1px solid #5e9ba652;
  border-radius: 5px;
}

.guide-empty {
  background: #eaf6f0;
}

.guide-half {
  background: linear-gradient(to top, #6ba8b072 0 50%, #fffdf8 50% 100%);
}

.console-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #847c6f;
  font-size: 9px;
}

.console-foot small {
  color: #4f8378;
  font: 500 8px "DM Sans", sans-serif;
  letter-spacing: .8px;
}

.secure-mark {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #45857131;
  border-radius: 999px;
  color: #54766d;
  font-size: 9px;
  white-space: nowrap;
}

.secure-mark i {
  color: var(--mint);
  font-style: normal;
}

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

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #80632842;
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 2px 8px #79561e0a;
  color: #6f685d;
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--gold);
}

.form-message {
  min-height: 21px;
  margin: 10px 0 3px;
  color: var(--danger);
  font-size: 11px;
}

.form-message.success {
  color: var(--mint);
}

.submit-booking {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #eed796, #bc8c35);
  box-shadow: 0 12px 26px #9e752c29;
  color: #171208;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.submit-booking:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.submit-booking:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.submit-booking i {
  font: 20px "DM Sans", sans-serif;
  font-style: normal;
}

.privacy-note {
  margin: 9px 3px 0;
  color: #91897b;
  text-align: center;
  font-size: 9px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 19px 0 26px;
  border-top: 1px solid var(--line);
  color: #817a6e;
  font: 9px "DM Sans", sans-serif;
  letter-spacing: .5px;
}

.public-footer a {
  color: #746c60;
  text-decoration: none;
}

.public-footer a:hover {
  color: var(--gold);
}

.success-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #40311578;
  backdrop-filter: blur(16px);
}

.success-modal[hidden] {
  display: none;
}

.success-card {
  width: min(450px, 100%);
  padding: 32px;
  border: 1px solid var(--line-gold);
  border-radius: 26px;
  background: radial-gradient(circle at 50% -10%, #fff1c9, #fffdf8 42%, #f7f0e3);
  box-shadow: 0 30px 100px #3f2b0d52;
  text-align: center;
}

.success-glyph {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a6dfc9, #4b9d81);
  box-shadow: 0 0 0 8px #4f9d8417, 0 0 38px #5b9f892e;
  color: #123b30;
  font: 700 26px "DM Sans", sans-serif;
}

.success-card > p:first-of-type {
  color: var(--mint);
  font: 600 9px "DM Sans", sans-serif;
  letter-spacing: 1.7px;
}

.success-card h2 {
  margin: 6px 0 16px;
  font-size: 28px;
}

.success-card > span {
  display: block;
  color: #8b8376;
  font-size: 10px;
}

.success-card > strong {
  display: block;
  margin: 3px 0 18px;
  color: var(--gold);
  font: 700 27px "DM Sans", sans-serif;
  letter-spacing: 1.1px;
}

.success-schedule {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9d1;
}

.success-schedule small {
  display: block;
  color: #8c8374;
  font-size: 9px;
}

.success-schedule b {
  font-size: 14px;
}

.success-help {
  color: #7e766a;
  font-size: 10px;
  line-height: 1.6;
}

.success-card button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #e7ca73, #ac7d27);
  color: #181306;
  font-weight: 700;
  cursor: pointer;
}

@keyframes premiumEnter {
  from {
    opacity: .82;
    transform: translate3d(0, 4px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes goldOrbit {
  from {
    opacity: .27;
    transform: translate3d(-5px, -3px, 0) scale(.994) rotate(-.35deg);
  }
  to {
    opacity: .42;
    transform: translate3d(6px, 4px, 0) scale(1.006) rotate(.35deg);
  }
}

@keyframes goldRibbon {
  from {
    opacity: .19;
    filter: blur(25px) brightness(.94);
    transform: rotate(var(--ribbon-angle)) translate3d(-8px, 1px, 0) scale(.994);
  }
  to {
    opacity: .34;
    filter: blur(20px) brightness(1.08);
    transform: rotate(var(--ribbon-angle)) translate3d(8px, -3px, 0) scale(1.006);
  }
}

@keyframes goldDust {
  from {
    opacity: .13;
    background-position: 0 0, 37px 29px;
  }
  to {
    opacity: .24;
    background-position: 5px -4px, 32px 35px;
  }
}

@keyframes goldSweep {
  from {
    opacity: .34;
    transform: translate3d(-5px, -3px, 0) rotate(-.28deg) scale(.996);
  }
  to {
    opacity: .54;
    transform: translate3d(6px, 4px, 0) rotate(.28deg) scale(1.004);
  }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 #4f99823d, 0 0 10px #4f99828a; }
  70% { box-shadow: 0 0 0 7px transparent, 0 0 10px #4f99828a; }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 10px #4f99828a; }
}

@keyframes waterBodySway {
  0%, 100% {
    transform: translate3d(-1.2%, 1px, 0) scaleX(1.015) scaleY(.985);
  }
  50% {
    transform: translate3d(1.2%, -1px, 0) scaleX(.985) scaleY(1.015);
  }
}

@keyframes waterSurfaceDrift {
  0%, 100% {
    background-position: 0 1px, 18px 7px;
    transform: translate3d(-1.5%, 1px, 0) scaleY(.96);
  }
  48% {
    background-position: 54px 1px, -23px 7px;
    transform: translate3d(1.5%, -1px, 0) scaleY(1.04);
  }
  72% {
    transform: translate3d(.4%, 0, 0) scaleY(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .schedule-panel {
    border-right: 0;
    border-bottom: 1px solid #9d6d244f;
  }
}

@media (max-width: 640px) {
  .public-header,
  .public-shell,
  .public-footer {
    width: min(100% - 24px, 1120px);
  }

  .public-header {
    min-height: 64px;
  }

  .public-brand img {
    width: 38px;
    height: 38px;
  }

  .public-brand small,
  .header-live span {
    display: none;
  }

  .header-live {
    padding: 7px;
  }

  .gold-orbit-one {
    top: -39vw;
    right: -39vw;
    width: 132vw;
  }

  .gold-orbit-two {
    bottom: -38vw;
    left: -49vw;
    width: 142vw;
  }

  .gold-ribbon {
    width: 148vw;
    opacity: .2;
  }

  .gold-atmosphere::before {
    top: -19%;
    right: -45%;
    width: 154vw;
    opacity: .38;
  }

  .booking-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 0 20px;
  }

  .booking-hero h1 {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .lead {
    font-size: 13px;
    line-height: 1.6;
  }

  .clinic-pulse {
    gap: 14px;
    min-height: 108px;
    padding: 18px;
  }

  .pulse-orbit {
    width: 58px;
    height: 58px;
  }

  .clinic-pulse strong {
    font-size: 23px;
  }

  .clinic-pulse #clinicStatusHint {
    font-size: 12px;
  }

  .booking-card {
    border-radius: 20px;
  }

  .schedule-panel,
  .details-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    overflow: hidden;
  }

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

  .schedule-fields,
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .date-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .time-options {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-option {
    min-height: 72px;
    text-align: center;
  }

  .console-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .public-footer {
    flex-wrap: wrap;
  }

  .public-footer span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}

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