/* VIP preview: film-lit header, instrument-style calendar and a separate review surface. */
#vip-dialog.appointment-dialog.appointment-studio {
  --appointment-gutter: clamp(22px, 3.5vw, 42px);
  --appointment-paper: #f5f0eb;
  --appointment-muted: #b7b9c0;
  --appointment-accent: #e4aaa2;
  --appointment-line: #bfc6d338;
  --appointment-panel: linear-gradient(146deg, #20242b, #101216 75%);
  width: min(1176px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #6c6465 #111317;
  border: 1px solid #cfd0d66b;
  border-radius: 20px;
  background: radial-gradient(ellipse at 70% 18%, #4a20282b, transparent 52%), #101216;
  color: var(--appointment-paper);
  font-family: var(--sans);
  box-shadow: 0 44px 110px #000c, 0 0 0 4px #e4cfca0e;
}

#vip-dialog.appointment-studio[open] { animation: appointment-entrance .44s cubic-bezier(.2,.78,.28,1) both; }
#vip-dialog.appointment-studio::backdrop {
  background: #030406dd;
  backdrop-filter: blur(10px) saturate(.68);
}
#vip-dialog.appointment-studio [hidden] { display: none !important; }
#vip-dialog.appointment-studio *, #vip-dialog.appointment-studio *::before, #vip-dialog.appointment-studio *::after { box-sizing: border-box; }
#vip-dialog.appointment-studio button { cursor: pointer; font-family: inherit; }
#vip-dialog.appointment-studio :is(button, a):focus-visible { outline: 2px solid #f5cec4; outline-offset: 3px; }
#vip-dialog.appointment-studio button:disabled { cursor: default; }
.appointment-shell { padding: 0 var(--appointment-gutter) 22px; }

.appointment-dismiss {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 0;
  padding-inline: var(--appointment-gutter);
  pointer-events: none;
}
#vip-dialog.appointment-studio .appointment-close {
  display: grid;
  width: 44px;
  height: 44px;
  margin-top: 12px;
  padding: 0;
  place-items: center;
  border: 1px solid #e3d8d350;
  border-radius: 50%;
  background: #131519;
  color: var(--appointment-paper);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 9px 16px #0006, inset 0 1px #fff2;
  pointer-events: auto;
}

.appointment-header {
  position: relative;
  isolation: isolate;
  min-height: 194px;
  margin-inline: calc(-1 * var(--appointment-gutter));
  overflow: hidden;
  padding: clamp(22px, 3vw, 37px) calc(var(--appointment-gutter) + 50px) 30px var(--appointment-gutter);
  border-bottom: 1px solid #f2c1b14a;
  background: #1d1a1c;
}
.appointment-header::before {
  position: absolute;
  z-index: -1;
  inset: -8%;
  background:
    linear-gradient(90deg, #110d10 3%, #181013f2 25%, #1f151a69 67%, #100d1190),
    linear-gradient(0deg, #0d0e13 1%, #16101500 74%),
    url("./assets/showcase/houston-night-showroom.webp") 50% 54% / cover;
  content: "";
  animation: appointment-city-drift 1.25s ease-out both;
}
.appointment-header::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(116deg, transparent 64%, #f0a99920 64.2%, transparent 64.5%);
  content: "";
  pointer-events: none;
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--appointment-accent);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .12em;
}
.appointment-kicker span {
  padding: 4px 7px;
  border: 1px solid #e4aaa264;
  border-radius: 4px;
  color: #ffe8e1;
  background: #422322a6;
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: none;
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-header h2 {
  margin: 0;
  color: var(--appointment-paper);
  font: 790 clamp(36px, 5vw, 67px)/1.03 var(--sans);
  letter-spacing: -.062em;
  text-shadow: 0 5px 20px #0009;
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-header h2 strong {
  display: inline-block;
  color: #f4d7cd;
  background: none;
  -webkit-text-fill-color: currentColor;
}
#vip-dialog.appointment-studio .appointment-intro {
  max-width: 52ch;
  margin: 13px 0 0;
  color: #ded6d5;
  font-size: 14px;
  line-height: 1.55;
}

.appointment-waypoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 19px;
  padding: 0;
  border-bottom: 1px solid var(--appointment-line);
  list-style: none;
}
.appointment-waypoints li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 51px;
  padding: 8px clamp(5px, 1.5vw, 16px);
  color: var(--appointment-muted);
  font-size: 12px;
  line-height: 1.3;
}
.appointment-waypoints li > span {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #bfc6d344;
  border-radius: 50%;
  color: inherit;
  background: #14171d;
  font-size: 11px;
}
.appointment-waypoints li[aria-current="step"] {
  color: var(--appointment-paper);
  background: linear-gradient(0deg, #c457431e, transparent 87%);
}
.appointment-waypoints li[aria-current="step"]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #e9a79a 30% 70%, transparent);
}
.appointment-waypoints li[aria-current="step"] > span {
  border-color: #fbe1d1;
  background: linear-gradient(148deg, #f8eee6, #be9b8f);
  color: #2b1614;
  box-shadow: 0 1px 11px #b64f3752;
}
.appointment-waypoints li[data-complete] > span { border-color: #d9a99b; color: #f3c9be; }

.appointment-vehicle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--appointment-line);
  border-radius: 9px;
  background: linear-gradient(110deg, #2c2c35, #15171c 70%);
  box-shadow: inset 0 1px #fff2;
}
.appointment-vehicle img { flex: none; width: 80px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.appointment-vehicle > div { flex: 1; min-width: 0; }
.appointment-vehicle p { margin: 0 0 4px; color: var(--appointment-accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.appointment-vehicle strong { display: block; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.appointment-vehicle span { color: var(--appointment-muted); font-size: 12px; line-height: 1.5; }

.appointment-layout { display: grid; grid-template-columns: minmax(194px, .66fr) minmax(0, 2fr); align-items: start; gap: clamp(13px, 2vw, 22px); }
.appointment-options { min-width: 0; }
.appointment-options > h3,
.appointment-picker-head h3 { margin: 0; color: var(--appointment-paper); font-size: 16px; line-height: 1.35; }
.appointment-formats { display: grid; gap: 8px; margin-top: 11px; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-format {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--appointment-line);
  border-radius: 7px;
  background: radial-gradient(at var(--spatial-x, 44%) var(--spatial-y, 0%), #f0ac9e10, transparent 65%), var(--appointment-panel);
  color: var(--appointment-paper);
  text-align: left;
  box-shadow: inset 0 1px #fff2, 0 11px 20px -15px #000;
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-format[aria-pressed="true"] {
  border-color: #e4aaa290;
  background: linear-gradient(120deg, #63342e, #251b1e 65%, #18161b);
  box-shadow: inset 3px 0 #ecaa97, inset 0 1px #f5d3c43d, 0 13px 23px -15px #000;
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-format strong { color: var(--appointment-paper); font-size: 14px; line-height: 1.2; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-format span { color: #d1cbd0; font-size: 12px; line-height: 1.25; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-format[aria-pressed="true"] :is(strong, span) { color: #fff4ed; }
#vip-dialog.appointment-studio :is(.appointment-assist, #appointment-remove-vehicle) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--appointment-line);
  border-radius: 6px;
  background: #16191e;
  color: #e8d2ce;
  font-weight: 750;
  font-size: 12px;
  line-height: 1.35;
}
.appointment-assist { margin-top: 10px; }
.appointment-options .appointment-assist { width: 100%; }

#vip-dialog.appointment-studio .appointment-picker { min-width: 0; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-picker {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: start;
  border: 1px solid var(--appointment-line);
  border-radius: 10px;
  background: radial-gradient(ellipse at 8% 9%, #f2a79915, transparent 56%), var(--appointment-panel);
  box-shadow: inset 0 1px #dfdee32b, 0 20px 37px -25px #000;
}
.appointment-picker-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--appointment-line);
}
.appointment-picker-head span { color: #ded2ce; font-size: 12px; line-height: 1.3; }
.appointment-date-panel { min-width: 0; padding: 9px 12px 13px; }
.appointment-month-nav { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; align-items: center; margin-bottom: 7px; }
.appointment-month-nav h4 { margin: 0; color: var(--appointment-paper); font-size: 15px; line-height: 1.3; text-align: center; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-month-nav button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--appointment-line);
  border-radius: 7px;
  background: linear-gradient(138deg, #373339, #202129);
  color: var(--appointment-paper);
  font-size: 26px;
  line-height: 1;
}
#vip-dialog.appointment-studio .appointment-month-nav button:disabled { color: #8e8c94; background: #17191d; }
.appointment-weekdays, .appointment-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 3px; }
.appointment-weekdays span { padding: 3px 0 7px; color: var(--appointment-muted); font-size: 10px; text-align: center; }
.appointment-blank { min-height: 36px; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-day {
  position: relative;
  min-width: 0;
  min-height: 37px;
  padding: 2px 0;
  border: 1px solid #c8b4ae32;
  border-radius: 6px;
  background: linear-gradient(143deg, #302c31, #1b1c21);
  color: #f4edea;
  font-size: 13px;
  font-weight: 700;
}
#vip-dialog.appointment-studio .appointment-day:disabled { border-color: transparent; background: none; color: #939199; font-weight: 500; }
#vip-dialog.appointment-studio .appointment-day[data-today="true"]::after {
  position: absolute;
  bottom: 3px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
#vip-dialog.appointment-dialog.appointment-studio .appointment-day[aria-pressed="true"] {
  border-color: #ffe1d0;
  background: linear-gradient(140deg, #fff1e8, #d79b89);
  color: #2b1716;
  box-shadow: 0 4px 13px #b8563e43, inset 0 1px #fff9;
}

.appointment-slot-panel { min-width: 0; align-self: stretch; padding: 14px 12px; border-left: 1px solid var(--appointment-line); background: #090a0e24; }
.appointment-times-heading { margin: 0 0 11px; }
.appointment-times-heading h4 { margin: 0; color: var(--appointment-paper); font-size: 14px; line-height: 1.35; }
.appointment-times-heading p { margin: 4px 0 0; color: var(--appointment-muted); font-size: 12px; line-height: 1.4; }
.appointment-times { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-time {
  min-width: 0;
  min-height: 44px;
  padding: 5px 2px;
  border: 1px solid var(--appointment-line);
  border-radius: 6px;
  background: linear-gradient(140deg, #342d32, #191a20);
  color: var(--appointment-paper);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
#vip-dialog.appointment-studio .appointment-time:disabled { color: #939199; opacity: .8; }
#vip-dialog.appointment-dialog.appointment-studio .appointment-time[aria-pressed="true"] {
  border-color: #f4ccc0;
  background: linear-gradient(144deg, #8a493e, #592b28);
  color: #fff5ed;
  box-shadow: inset 0 1px #fff3, 0 5px 13px #0005;
}
.appointment-empty { margin: 0; padding: 11px; border: 1px dashed var(--appointment-line); border-radius: 6px; color: var(--appointment-muted); font-size: 13px; line-height: 1.55; }

#vip-dialog.appointment-dialog.appointment-studio .appointment-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #e4aaa24d;
  border-inline-start: 3px solid #d68773;
  border-radius: 8px;
  background: linear-gradient(113deg, #362629, #1d1c22 58%, #222429);
  box-shadow: inset 0 1px #fff2, 0 15px 29px -20px #000;
}
.appointment-selection { min-width: 0; }
.appointment-selection p { margin: 0 0 4px; color: var(--appointment-accent); font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.appointment-selection strong { display: block; color: var(--appointment-paper); font-size: 15px; line-height: 1.35; }
.appointment-selection span { display: block; margin-top: 4px; color: var(--appointment-muted); font-size: 12px; line-height: 1.4; }
#vip-dialog.appointment-studio :is(#appointment-review, #appointment-confirm, #appointment-calendar, #appointment-edit, #appointment-cancel) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid var(--appointment-line);
  border-radius: 7px;
  background: #232329;
  color: var(--appointment-paper);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
#vip-dialog.appointment-studio :is(#appointment-review, #appointment-confirm, #appointment-calendar) {
  border-color: #eecdba;
  background: linear-gradient(147deg, #fff8f2, #dfaa97 78%, #fbe3d5);
  color: #2a1817;
  box-shadow: inset 0 1px #fff9, 0 6px 17px #0006;
}
#vip-dialog.appointment-studio #appointment-review:disabled { border-color: var(--appointment-line); background: #24242b; color: #c7c3cc; box-shadow: none; }
#vip-dialog.appointment-studio #appointment-status { margin: 13px 0 0; color: #ecd3ca; font-size: 12px; line-height: 1.55; }
.appointment-note { margin: 10px 0 0; color: var(--appointment-muted); font-size: 12px; line-height: 1.55; }

.appointment-confirmation {
  padding: clamp(18px, 3vw, 31px);
  border: 1px solid #e4aaa25e;
  border-radius: 11px;
  background: radial-gradient(at 24% 0%, #9b5c512c, transparent 64%), var(--appointment-panel);
  box-shadow: inset 0 1px #fff2, 0 18px 35px -25px #000;
  animation: appointment-entrance .34s ease-out both;
}
.appointment-confirmation > h3 { margin: 0; color: var(--appointment-paper); font-size: clamp(22px, 3vw, 35px); line-height: 1.14; letter-spacing: -.035em; }
.appointment-confirmation > p { max-width: 68ch; margin-top: 9px; color: var(--appointment-muted); font-size: 14px; line-height: 1.55; }
.appointment-confirmation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  margin: 14px 0;
  padding: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--appointment-line);
}
.appointment-confirmation-facts > div { min-width: 0; padding: 12px 14px; background: linear-gradient(140deg, #2c2c34, #1a1b20); }
.appointment-confirmation-facts dt { color: var(--appointment-accent); font-size: 11px; font-weight: 800; line-height: 1.4; }
.appointment-confirmation-facts dd { margin: 5px 0 0; color: var(--appointment-paper); font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.appointment-confirmation-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@keyframes appointment-city-drift { from { transform: scale(1.05) translate3d(1%,0,0); } to { transform: none; } }
@keyframes appointment-entrance { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  #vip-dialog.appointment-studio :is(button, a):not(:disabled):hover { border-color: #f2bbaa; filter: brightness(1.09); }
}
@media (max-width: 965px) {
  #vip-dialog.appointment-dialog.appointment-studio .appointment-picker { grid-template-columns: minmax(0,1fr); }
  .appointment-slot-panel { border-top: 1px solid var(--appointment-line); border-left: 0; }
}
@media (max-width: 760px) {
  #vip-dialog.appointment-dialog.appointment-studio {
    --appointment-gutter: 13px;
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
    max-height: calc(100dvh - 14px);
    border-radius: 13px;
  }
  .appointment-header { min-height: 0; padding-top: 20px; padding-bottom: 19px; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-header h2 { font-size: clamp(31px, 7.6vw, 47px); }
  #vip-dialog.appointment-studio .appointment-intro { margin-top: 8px; font-size: 13px; }
  .appointment-waypoints { margin-bottom: 12px; }
  .appointment-waypoints li { gap: 5px; min-height: 43px; font-size: 11px; }
  .appointment-waypoints li > span { flex-basis: 18px; width: 18px; height: 18px; font-size: 10px; }
  .appointment-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .appointment-formats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin-top: 7px; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-format { min-height: 51px; padding: 7px; gap: 2px; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-format strong { font-size: 12px; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-format span { font-size: 11px; }
  .appointment-options .appointment-assist { width: auto; margin-top: 5px; }
  .appointment-picker-head { min-height: 45px; padding: 9px; }
  .appointment-date-panel, .appointment-slot-panel { padding-inline: 8px; }
  .appointment-vehicle { gap: 8px; margin-bottom: 12px; }
  .appointment-vehicle img { width: 57px; }
  .appointment-vehicle strong { font-size: 13px; }
  #vip-dialog.appointment-studio #appointment-remove-vehicle { flex: none; max-width: 72px; font-size: 10px; }
}
@media (max-width: 405px) {
  .appointment-header { padding-right: calc(var(--appointment-gutter) + 38px); }
  .appointment-month-nav { margin-bottom: 3px; }
  .appointment-weekdays span { padding-top: 0; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-review { flex-direction: column; align-items: stretch; gap: 9px; }
  #vip-dialog.appointment-studio #appointment-review { width: 100%; }
  .appointment-confirmation-facts { grid-template-columns: minmax(0,1fr); }
}
@media (max-height: 360px) and (orientation: landscape) {
  .appointment-header { min-height: 0; padding-block: 16px; }
  #vip-dialog.appointment-dialog.appointment-studio .appointment-header h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  #vip-dialog.appointment-studio, #vip-dialog.appointment-studio *, #vip-dialog.appointment-studio *::before { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  #vip-dialog.appointment-studio::backdrop { background: #030406f5; backdrop-filter: none; }
}
@media (forced-colors: active) {
  #vip-dialog.appointment-dialog.appointment-studio { color: CanvasText; background: Canvas; border-color: CanvasText; }
  .appointment-header::before, .appointment-header::after { display: none; }
  #vip-dialog.appointment-studio :is(.appointment-header, .appointment-picker, .appointment-format, .appointment-vehicle, .appointment-review, .appointment-confirmation, .appointment-confirmation-facts > div) { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  #vip-dialog.appointment-studio :is(button, a) { color: ButtonText; background: ButtonFace; border-color: ButtonText; box-shadow: none; }
  #vip-dialog.appointment-studio :is(h2, h3, h4, strong, span, p, dd, dt) { color: CanvasText; }
  #vip-dialog.appointment-studio :is(button[aria-pressed="true"], button[aria-pressed="true"] strong, button[aria-pressed="true"] span, [aria-current="step"] > span) { color: HighlightText; background: Highlight; }
  #vip-dialog.appointment-studio button:disabled { color: GrayText; }
}
