:root {
  --navy: #001f48;
  --navy-2: #001633;
  --navy-3: #061228;
  --gold: #d79b27;
  --gold-2: #f1c96b;
  --white: #fffdf8;
  --soft: #f7f2e9;
  --ink: #071731;
  --muted: #68738a;
  --radius: 28px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 31, 72, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 99999;
  top: 1rem; left: 1rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 16px; left: 50%;
  z-index: 1000;
  width: min(calc(var(--max) + 70px), calc(100% - 36px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem;
  padding: .7rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(215,155,39,.28);
  background: rgba(255,255,255,.88);
  color: var(--navy);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px rgba(0,31,72,.12), inset 0 1px 0 rgba(255,255,255,.85);
  transition: width .38s cubic-bezier(.16,1,.3,1), padding .38s cubic-bezier(.16,1,.3,1);
}
.site-header.compact:not(.expanded) { width: 268px; padding: .52rem .58rem .52rem .72rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 950; white-space: nowrap; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; transition: width .28s ease, height .28s ease; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.site-header.compact:not(.expanded) .brand img { width: 34px; height: 34px; }
.site-header.compact:not(.expanded) .brand span { max-width: 138px; }
.site-nav { display: flex; align-items: center; gap: .25rem; max-width: 650px; overflow: hidden; transition: opacity .25s ease, max-width .3s ease, transform .3s ease; }
.site-nav a { padding: .68rem .86rem; border-radius: 999px; font-weight: 750; opacity: .86; white-space: nowrap; }
.site-nav a:hover { background: rgba(215,155,39,.12); opacity: 1; }
.site-header.compact:not(.expanded) .site-nav { opacity: 0; max-width: 0; transform: scaleX(.7); pointer-events: none; }
.compact-plus {
  display: none; flex: 0 0 40px; width: 40px; height: 40px;
  place-items: center; border: 1px solid rgba(0,31,72,.12);
  border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 24px rgba(0,31,72,.08);
  font-weight: 900; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.site-header.compact .compact-plus { display: grid; }
.site-header.expanded .compact-plus { transform: rotate(45deg); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; cursor: pointer; }

.eyebrow { margin: 0 0 .62rem; color: var(--gold); font-size: .76rem; font-weight: 950; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1; letter-spacing: -.045em; }
h1 { font-size: clamp(2.35rem, 4.7vw, 5.15rem); color: white; }
h2 { font-size: clamp(2.15rem, 4.5vw, 4.55rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p { line-height: 1.7; }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .88rem 1.18rem; border: 1px solid transparent; border-radius: 999px; font-weight: 950; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-2)); box-shadow: 0 14px 34px rgba(215,155,39,.32); }
.btn-secondary { color: white; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }

.hero { position: relative; min-height: 100svh; color: white; display: grid; align-items: center; overflow: hidden; padding: 104px 0 42px; background: #020a18; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(2,10,24,.95) 0%, rgba(2,10,24,.78) 44%, rgba(2,10,24,.55) 64%, rgba(2,10,24,.78) 100%), url("assets/timewiseai-banner.png") right center / cover no-repeat; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 21% 30%, rgba(215,155,39,.18), transparent 18%), radial-gradient(circle at 78% 70%, rgba(255,255,255,.08), transparent 20%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(1.8rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 700px; }
.hero-kicker { margin: 0 0 .7rem; color: var(--gold-2); font-weight: 950; letter-spacing: .2em; text-transform: uppercase; }
.hero-subtitle { max-width: 640px; margin: .85rem 0 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-visual { min-height: 555px; display: grid; place-items: center; perspective: 1400px; }

.tablet-wrap {
  position: relative;
  width: min(600px, 100%);
  cursor: grab;
  perspective: 1400px;
  transform-style: preserve-3d;
  animation: tabletFloat 5s ease-in-out infinite;
  padding-bottom: 2.6rem;
}
.tablet-wrap:active { cursor: grabbing; }
.tablet-note {
  position: absolute; left: 50%; top: 6px; z-index: 10;
  transform: translate(-50%, -58%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg);
  padding: .84rem 1rem; border-radius: 18px; color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 950; box-shadow: 0 18px 44px rgba(215,155,39,.28); white-space: nowrap;
}
.tablet-note strong { font-size: 1.18em; }
.tablet-microhint {
  display: table;
  margin: 1.15rem auto 0;
  padding: .44rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.tablet-shell {
  position: relative; min-height: 388px; padding: 1.05rem; border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.16,1,.3,1);
  transform: perspective(1200px) rotateX(calc(9deg + var(--tablet-tilt-y, 0deg))) rotateY(calc(-8deg + var(--tablet-tilt-x, 0deg))) rotateZ(-2deg);
}
.tablet-wrap.booking-open .tablet-shell { transform: perspective(1200px) rotateX(calc(9deg + var(--tablet-tilt-y, 0deg))) rotateY(calc(172deg + var(--tablet-tilt-x, 0deg))) rotateZ(-2deg); }
.tablet-face { backface-visibility: hidden; transform-style: preserve-3d; }
.tablet-front { position: relative; z-index: 2; }
.tablet-back {
  position: absolute; inset: 1.05rem; transform: rotateY(180deg) translateZ(2px);
  border-radius: 27px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(247,242,233,.94));
  color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,31,72,.08);
  pointer-events: none;
}
.tablet-wrap.booking-open .tablet-back { pointer-events: auto; }
.tablet-wrap.booking-open .tablet-front { pointer-events: none; }
.tablet-screen, .booking-panel {
  position: relative; min-height: 356px; padding: 1rem; border-radius: 27px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,242,233,.94));
  color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0,31,72,.08);
}
.tablet-screen::before, .booking-panel::before {
  content: ""; position: absolute; inset: 0; background: url("assets/timewiseai-banner.png") center / cover no-repeat; opacity: .08;
}
.tablet-screen > *, .booking-panel > * { position: relative; z-index: 1; }
.screen-dots { display: flex; gap: .34rem; margin-bottom: 1rem; }
.screen-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,31,72,.22); }
.screen-brand, .booking-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.05rem; }
.screen-brand img, .booking-brand img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0,31,72,.12); }
.screen-brand strong, .booking-brand strong { display: block; color: var(--navy); }
.screen-brand small, .booking-brand small { color: var(--muted); }
.metric-panel { padding: 1.15rem; border-radius: 24px; background: linear-gradient(135deg, rgba(0,31,72,.08), rgba(215,155,39,.16)); border: 1px solid rgba(0,31,72,.08); }
.metric-panel em { display: block; color: var(--navy); font-style: normal; font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 950; letter-spacing: -.07em; line-height: .85; }
.metric-panel span { color: var(--muted); font-weight: 850; }
.screen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .85rem; }
.screen-grid div, .progress-card { padding: .9rem; border-radius: 18px; background: rgba(255,255,255,.88); border: 1px solid rgba(0,31,72,.08); box-shadow: 0 14px 34px rgba(0,31,72,.08); }
.screen-grid strong { display: block; color: var(--navy); }
.screen-grid span, .progress-card small { color: var(--muted); }
.progress-card { margin-top: .85rem; }
.bar { height: 11px; margin-bottom: .7rem; border-radius: 999px; background: rgba(0,31,72,.08); overflow: hidden; }
.bar span { display: block; width: 84%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--gold)); }

.mini-booking-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.mini-booking-form label { display: grid; gap: .25rem; color: var(--navy); font-size: .74rem; font-weight: 850; }
.mini-booking-form input, .mini-booking-form select {
  width: 100%; padding: .66rem .72rem; border-radius: 13px; border: 1px solid rgba(0,31,72,.12);
  background: rgba(255,255,255,.88); color: var(--ink); outline: none; font-size: .82rem;
}
.mini-booking-form input:focus, .mini-booking-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,155,39,.14); }
.mini-booking-form button {
  grid-column: 1 / -1; border: 0; border-radius: 999px; padding: .78rem 1rem;
  color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 950; cursor: pointer; box-shadow: 0 12px 28px rgba(215,155,39,.24);
}
.mini-form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .75rem; }
.mini-form-note.success { color: #0b7f48; font-weight: 900; }

.section-light { background: var(--white); }
.section-deep {
  color: white;
  background: radial-gradient(circle at 10% 0%, rgba(215,155,39,.20), transparent 28%), radial-gradient(circle at 85% 20%, rgba(241,201,107,.13), transparent 20%), linear-gradient(145deg, var(--navy-3), var(--navy));
}
.roadmap, .section { padding: clamp(5rem, 8vw, 8rem) 0; position: relative; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading.narrow { display: block; max-width: 850px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.roadmap-grid, .service-grid { display: grid; gap: 1.1rem; }
.roadmap-grid { grid-template-columns: repeat(3, 1fr); }
.roadmap-card, .service-card, .brand-panel, .contact-form { border-radius: var(--radius); border: 1px solid rgba(0,31,72,.08); background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.roadmap-card { padding: 1.35rem; min-height: 260px; }
.roadmap-card.featured { background: linear-gradient(145deg, #fff, #fff7e5); border-color: rgba(215,155,39,.35); }
.roadmap-card span, .service-card span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%;
  color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 950;
}
.roadmap-card p, .service-card p { color: var(--muted); }

.wheel-journey { height: 620vh; position: relative; color: white; background: #020a18; }
.wheel-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.wheel-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 60%) var(--my, 42%), rgba(215,155,39,.22), transparent 22%), radial-gradient(circle at 20% 78%, rgba(255,255,255,.08), transparent 22%), linear-gradient(145deg, #020a18, #001f48 54%, #000b1f);
}
.wheel-bg::after {
  content: ""; position: absolute; inset: -18%; opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 86px 86px; transform: perspective(1000px) rotateX(72deg) translateY(24%);
}
.wheel-layout {
  position: relative; z-index: 2; display: grid; grid-template-columns: .72fr 1.28fr;
  gap: clamp(1.6rem, 4vw, 4.8rem); align-items: center; min-height: min(760px, calc(100svh - 120px));
  opacity: 0; transform: translateY(34px) scale(.985);
  transition: opacity .72s ease, transform .72s cubic-bezier(.16,1,.3,1);
}
.wheel-journey.in-view .wheel-layout { opacity: 1; transform: translateY(0) scale(1); }
.wheel-copy { align-self: center; }
.wheel-intro { margin-bottom: 1rem; }
.process-cards { position: relative; min-height: 330px; }
.process-card {
  position: absolute; inset: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  backdrop-filter: blur(18px); box-shadow: 0 28px 80px rgba(0,0,0,.32);
  opacity: 0; transform: translateX(-24px) scale(.975); pointer-events: none;
  transition: opacity .42s ease, transform .42s ease; display: flex; flex-direction: column;
}
.process-card.active { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.process-card span {
  display: inline-block; margin-bottom: 1rem; padding: .4rem .72rem; border-radius: 999px; color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 950; font-size: .82rem; align-self: flex-start;
}
.process-card p { color: rgba(255,255,255,.78); }
.process-card small { display: block; color: rgba(241,201,107,.92); line-height: 1.6; margin-bottom: 1rem; }
.process-next {
  align-self: flex-start; margin-top: auto; padding: .68rem .9rem;
  border: 1px solid rgba(241,201,107,.24); border-radius: 999px;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.92);
  font-weight: 900; cursor: pointer; backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.process-next:hover { transform: translateY(-2px); color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-2)); }

.wheel-stage {
  position: relative; height: min(76svh, 650px); width: 100%; display: grid; place-items: center end; perspective: 1300px;
  opacity: 0; transform: translateX(26px) scale(.94);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.wheel-journey.in-view .wheel-stage { opacity: 1; transform: translateX(0) scale(1); }
.process-wheel {
  --wheel-spin: 0deg; --wheel-x: 26deg; --wheel-y: -8deg; --wheel-z: 0deg; --wheel-scale: .95;
  width: min(640px, 96%); aspect-ratio: 1; position: relative; transform-style: preserve-3d;
  transform: scale(var(--wheel-scale)); transition: transform .85s cubic-bezier(.16,1,.3,1), opacity .4s ease;
  filter: drop-shadow(0 24px 70px rgba(0,0,0,.25));
}
.wheel-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--wheel-x)) rotateY(var(--wheel-y)) rotateZ(var(--wheel-z));
  transition: transform .85s cubic-bezier(.16,1,.3,1);
  animation: wheelBreath 5.2s ease-in-out infinite;
}
.wheel-shadow { position: absolute; left: 24%; right: 8%; bottom: 5%; height: 16%; background: radial-gradient(ellipse, rgba(215,155,39,.2), rgba(0,0,0,.28) 40%, transparent 70%); filter: blur(18px); }
.wheel-rim, .wheel-spoke, .mini-gear, .wheel-core, .wheel-node { position: absolute; }
.wheel-rim {
  inset: 4%; border-radius: 50%; border: 12px solid transparent;
  background: linear-gradient(#06142e, #06142e) padding-box, conic-gradient(from var(--wheel-spin), var(--gold), #fff8d9 16%, var(--navy) 36%, var(--gold-2) 54%, var(--navy) 76%, var(--gold)) border-box;
  box-shadow: 0 32px 110px rgba(0,0,0,.42), inset 0 0 30px rgba(255,255,255,.08), 0 0 0 1px rgba(255,255,255,.15);
}
.rim-inner { inset: 20%; border-width: 7px; opacity: .78; transform: translateZ(34px) rotateZ(calc(var(--wheel-spin) * -1)); }
.wheel-spoke {
  left: 50%; top: 50%; width: 45%; height: 5px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(241,201,107,.9), rgba(255,255,255,.15)); border-radius: 999px;
}
.spoke-1 { transform: rotateZ(calc(var(--wheel-spin) + 0deg)) translateZ(22px); }
.spoke-2 { transform: rotateZ(calc(var(--wheel-spin) + 60deg)) translateZ(22px); }
.spoke-3 { transform: rotateZ(calc(var(--wheel-spin) + 120deg)) translateZ(22px); }
.spoke-4 { transform: rotateZ(calc(var(--wheel-spin) + 180deg)) translateZ(22px); }
.wheel-core {
  inset: 31%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: white; transform: translateZ(82px); animation: coreFloat 4.6s ease-in-out infinite;
  box-shadow: 0 24px 80px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.26);
}
.wheel-core img { width: 100%; height: 100%; object-fit: cover; }
.mini-gear {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,.92) 0 23%, rgba(0,31,72,.98) 24% 34%, transparent 35%), repeating-conic-gradient(from 0deg, rgba(241,201,107,.96) 0deg 8deg, rgba(0,31,72,.95) 8deg 15deg, rgba(255,255,255,.86) 15deg 22deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 12px 30px rgba(0,0,0,.24);
}
.mini-gear-a { left: 12%; top: 24%; transform: translateZ(100px); animation: gearSpin 10s linear infinite; }
.mini-gear-b { right: 11%; top: 58%; transform: translateZ(112px); animation: gearSpinReverse 8s linear infinite; }
.mini-gear-c { left: 46%; bottom: 8%; width: 54px; height: 54px; transform: translateZ(92px); animation: gearSpin 7s linear infinite; }
.wheel-node {
  display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; color: rgba(255,255,255,.86); background: rgba(0,17,43,.76);
  border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px);
  font-size: .68rem; line-height: 1.1; font-weight: 950; text-align: center;
  transform: translateZ(132px); box-shadow: 0 18px 36px rgba(0,0,0,.28);
  transition: transform .45s cubic-bezier(.16,1,.3,1), background .28s ease, color .28s ease;
}
.wheel-node.active { color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--gold-2)); transform: translateZ(184px) scale(1.12); }
.wheel-node.active::after {
  content: ""; position: absolute; inset: -10px; border-radius: inherit; border: 1px solid rgba(241,201,107,.55);
  animation: nodePulse 1.45s ease-in-out infinite;
}
.wheel-node-1 { left: 50%; top: 10%; }
.wheel-node-2 { left: 81%; top: 28%; }
.wheel-node-3 { left: 81%; top: 72%; }
.wheel-node-4 { left: 50%; top: 90%; }
.wheel-node-5 { left: 19%; top: 72%; }
.wheel-node-6 { left: 19%; top: 28%; }

.process-arrow {
  position: absolute; right: clamp(.9rem, 2.2vw, 1.4rem); z-index: 10;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: rgba(255,255,255,.86); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px);
  font-size: .95rem; font-weight: 900; box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: transform .2s ease, background .2s ease;
}
.process-arrow:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); }
.process-arrow-up { top: 92px; }
.process-arrow-down { bottom: 20px; }

.two-col, .contact-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.motto { color: var(--gold); font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.brand-panel { padding: 1rem; overflow: hidden; }
.brand-panel img { border-radius: calc(var(--radius) - 8px); border: 1px solid rgba(215,155,39,.22); }
.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-card { padding: 1.25rem; min-height: 255px; color: white; border-color: rgba(255,255,255,.16); background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.055)); box-shadow: 0 22px 60px rgba(0,0,0,.18); }
.service-card p { color: rgba(255,255,255,.72); }
.contact-details { display: grid; gap: .6rem; margin-top: 2rem; color: var(--muted); }
.contact-details a { color: var(--navy); font-weight: 900; }
.contact-form { padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-weight: 850; color: var(--navy); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid rgba(0,31,72,.14); border-radius: 16px; padding: .9rem 1rem; background: rgba(255,255,255,.84); color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(215,155,39,.16); }
.form-note { margin: 0; color: var(--muted); font-size: .92rem; }
.form-note.success { color: #0b7f48; font-weight: 850; }
.site-footer { padding: 2rem 0; color: white; background: #000b1f; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.footer-brand div { display: grid; }
.footer-brand span, .site-footer p, .site-footer nav a { color: rgba(255,255,255,.66); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes tabletFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes wheelBreath { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 10px -12px; rotate: 1.2deg; } 55% { translate: -8px -18px; rotate: -1deg; } 80% { translate: 8px 7px; rotate: .7deg; } }
@keyframes coreFloat { 0%, 100% { transform: translateZ(82px) translateY(0); } 50% { transform: translateZ(82px) translateY(-10px); } }
@keyframes gearSpin { to { transform: translateZ(100px) rotate(360deg); } }
@keyframes gearSpinReverse { to { transform: translateZ(112px) rotate(-360deg); } }
@keyframes nodePulse { 0%, 100% { opacity: .2; transform: scale(.96); } 50% { opacity: .78; transform: scale(1.08); } }

@media (max-width: 1120px) {
  .hero-grid, .wheel-layout, .two-col, .contact-grid, .section-heading { grid-template-columns: 1fr; }
  .hero-copy, .section-heading.narrow { text-align: center; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .wheel-copy { order: 2; }
  .wheel-stage { order: 1; height: 520px; place-items: center; }
  .process-wheel { width: min(560px, 92%); }
  .process-cards { max-width: 720px; margin: 0 auto; }
  .roadmap-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-header { width: calc(100% - 24px); top: 12px; border-radius: 28px; }
  .site-header.compact:not(.expanded) { width: calc(100% - 24px); }
  .compact-plus { display: none !important; }
  .menu-toggle { display: inline-grid; gap: 4px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(215,155,39,.16); }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; }
  .site-nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: grid; max-width: none; padding: .7rem; border-radius: 24px; background: rgba(255,255,255,.96); border: 1px solid rgba(0,31,72,.09); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .hero { padding-top: 96px; }
  h1 { font-size: clamp(2.1rem, 10vw, 3.8rem); }
  .hero-visual { min-height: 490px; }
  .tablet-shell { min-height: 340px; padding: .75rem; }
  .tablet-screen, .booking-panel { min-height: 310px; }
  .tablet-note { font-size: .88rem; }
  .tablet-microhint { display: none; }
  .mini-booking-form { grid-template-columns: 1fr; }
  .wheel-journey { height: auto; padding: 5rem 0; }
  .wheel-sticky { position: relative; height: auto; overflow: visible; }
  .wheel-layout, .wheel-stage { opacity: 1; transform: none; }
  .process-arrow { display: none; }
  .process-cards { display: grid; gap: 1rem; min-height: auto; }
  .process-card { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .process-next { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .roadmap-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .footer-grid { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}


/* V28: stable same-frame tablet flip + editable form */
.hero-motto {
  margin: .75rem 0 0;
  color: var(--gold-2);
  font-weight: 950;
  letter-spacing: .08em;
}

.motto-line {
  margin-top: .5rem;
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 950;
}

.tablet-wrap {
  position: relative !important;
  width: min(600px, 100%) !important;
  padding-bottom: 2.8rem !important;
  cursor: pointer;
  perspective: 1400px;
}

.tablet-shell {
  position: relative !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  transform-style: preserve-3d !important;
  transform: perspective(1200px)
    rotateX(calc(9deg + var(--tablet-tilt-y, 0deg)))
    rotateY(calc(-8deg + var(--tablet-tilt-x, 0deg)))
    rotateZ(-2deg) !important;
  transition: transform .18s ease-out !important;
}

/* The flip is a visual motion on the frame; content swaps at midpoint in JS. */
.tablet-wrap.flip-animating .tablet-shell {
  animation: v28TabletFlip .66s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tablet-wrap.flip-animating.flip-closing .tablet-shell {
  animation: v28TabletFlipBack .66s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes v28TabletFlip {
  0% { transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1); }
  48% { transform: perspective(1200px) rotateX(9deg) rotateY(88deg) rotateZ(-2deg) scale(.985); }
  100% { transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1); }
}

@keyframes v28TabletFlipBack {
  0% { transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1); }
  48% { transform: perspective(1200px) rotateX(9deg) rotateY(-88deg) rotateZ(-2deg) scale(.985); }
  100% { transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1); }
}

.tablet-screen-layer {
  position: absolute !important;
  inset: 1.05rem !important;
  min-height: 356px !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,242,233,.94)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
  transition: opacity .18s ease, visibility .18s ease !important;
}

.tablet-screen-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.tablet-screen-layer > * {
  position: relative;
  z-index: 1;
}

.dashboard-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.tablet-wrap.booking-open .dashboard-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tablet-wrap.booking-open .booking-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tablet-wrap.booking-open {
  cursor: default !important;
}

/* Booking layer is flat/readable and fully editable. */
.tablet-wrap.booking-open .booking-layer,
.tablet-wrap.booking-open .booking-layer *,
.tablet-wrap.booking-open .mini-booking-form,
.tablet-wrap.booking-open .mini-booking-form *,
.tablet-wrap.booking-open input,
.tablet-wrap.booking-open select,
.tablet-wrap.booking-open button,
.tablet-wrap.booking-open label {
  pointer-events: auto !important;
}

.tablet-wrap.booking-open .mini-booking-form input,
.tablet-wrap.booking-open .mini-booking-form select,
.tablet-wrap.booking-open .mini-booking-form button {
  position: relative !important;
  z-index: 50 !important;
}

.tablet-flip-button {
  display: table !important;
  margin: 1.15rem auto 0 !important;
  padding: .55rem .85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.9) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
  transition: transform .2s ease, background .2s ease, color .2s ease !important;
  position: relative !important;
  z-index: 70 !important;
}

.tablet-flip-button:hover {
  transform: translateY(-2px) !important;
}

.tablet-wrap.booking-open .tablet-flip-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
  color: var(--navy) !important;
  border-color: rgba(215,155,39,.3) !important;
  box-shadow: 0 14px 34px rgba(215,155,39,.32) !important;
}

.tablet-microhint,
.tablet-front,
.tablet-back,
.tablet-screen,
.booking-panel {
  display: none !important;
}

/* Form validation */
.mini-booking-form label {
  position: relative !important;
}

.mini-booking-form label.field-invalid input,
.mini-booking-form label.field-invalid select {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #fffdf8, #fff7e5) !important;
  box-shadow: 0 0 0 4px rgba(215,155,39,.18), 0 10px 24px rgba(0,31,72,.08) !important;
}

.mini-booking-form label.field-invalid::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: .78rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.16);
  z-index: 90;
  pointer-events: none;
}

.mini-form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.mini-form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}


/* V29: fixed tablet flip, editable form, and wider banner */

/* Wider, slightly shorter banner with motto underneath */
.about .two-col {
  grid-template-columns: .62fr 1.38fr !important;
  gap: clamp(2rem, 5vw, 5.4rem) !important;
}

.brand-panel {
  width: min(980px, 100%) !important;
  justify-self: stretch !important;
  padding: clamp(.9rem, 1.8vw, 1.35rem) !important;
  transform: none !important;
}

.brand-panel img {
  width: 100% !important;
  min-height: 280px !important;
  max-height: 350px !important;
  object-fit: cover !important;
  object-position: center !important;
}

.banner-motto {
  margin: 1rem 0 .2rem !important;
  text-align: center;
  color: var(--gold) !important;
  font-weight: 950;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: .02em;
}

/* Fully isolate new tablet implementation from earlier tablet CSS */
.tw29-tablet {
  position: relative !important;
  width: min(600px, 100%) !important;
  padding-bottom: 2.85rem !important;
  perspective: 1400px !important;
  transform-style: preserve-3d !important;
  cursor: pointer !important;
}

.tw29-stage {
  position: relative !important;
  min-height: 388px !important;
  perspective: 1400px !important;
  transform-style: preserve-3d !important;
}

.tw29-tablet-frame {
  position: absolute !important;
  inset: 0 !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  transform-style: preserve-3d !important;
  transform: perspective(1200px)
    rotateX(calc(9deg + var(--tablet-tilt-y, 0deg)))
    rotateY(calc(-8deg + var(--tablet-tilt-x, 0deg)))
    rotateZ(-2deg) !important;
  transition: transform .16s ease-out !important;
  z-index: 2 !important;
  overflow: hidden !important;
}

/* Clear visual flip animation on the tablet frame */
.tw29-tablet.flip-animating .tw29-tablet-frame {
  animation: tw29RealFlip .78s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating.flip-closing .tw29-tablet-frame {
  animation: tw29RealFlipBack .78s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes tw29RealFlip {
  0% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
  42% {
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.98);
  }
  58% {
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.98);
  }
  100% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
}

@keyframes tw29RealFlipBack {
  0% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
  42% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.98);
  }
  58% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.98);
  }
  100% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
}

/* Dashboard is in the tablet frame */
.tw29-screen {
  position: relative !important;
  min-height: 356px !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,242,233,.94)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
}

.tw29-screen::before,
.tw29-booking-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none !important;
}

.tw29-screen > *,
.tw29-booking-panel > * {
  position: relative;
  z-index: 1;
}

.tw29-dashboard {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity .18s ease, visibility .18s ease !important;
}

.tw29-tablet.booking-open .tw29-dashboard {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Booking panel is sibling above the frame, NOT inside transformed frame.
   This guarantees name/email/company fields are clickable. */
.tw29-booking-panel {
  position: absolute !important;
  left: 1.05rem !important;
  right: 1.05rem !important;
  top: 1.05rem !important;
  min-height: 356px !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  color: var(--ink) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955)) !important;
  box-shadow: 0 34px 90px rgba(0,0,0,.20), inset 0 0 0 1px rgba(0,31,72,.08) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 40 !important;
  transform: translateY(4px) scale(.985) !important;
  transition: opacity .24s ease, visibility .24s ease, transform .28s cubic-bezier(.16,1,.3,1) !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
}

.tw29-tablet.booking-open .tw29-booking-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.tw29-tablet.booking-open {
  cursor: default !important;
}

.tw29-tablet.booking-open .tw29-booking-panel,
.tw29-tablet.booking-open .tw29-booking-panel *,
.tw29-tablet.booking-open .tw29-booking-form,
.tw29-tablet.booking-open .tw29-booking-form *,
.tw29-tablet.booking-open input,
.tw29-tablet.booking-open select,
.tw29-tablet.booking-open button,
.tw29-tablet.booking-open label {
  pointer-events: auto !important;
}

.tw29-booking-form input,
.tw29-booking-form select,
.tw29-booking-form button {
  position: relative !important;
  z-index: 200 !important;
  pointer-events: auto !important;
}

.tw29-booking-form input,
.tw29-booking-form select {
  cursor: text !important;
}

.tw29-booking-form select,
.tw29-booking-form button {
  cursor: pointer !important;
}

/* Hide old/conflicting tablet layers from earlier builds */
.tablet-front,
.tablet-back,
.tablet-screen,
.booking-panel:not(.tw29-booking-panel),
.tablet-screen-layer,
.booking-layer {
  display: none !important;
}

/* Flip button under tablet */
.tablet-microhint {
  display: none !important;
}

.tw29-flip-button {
  display: table !important;
  margin: 1.15rem auto 0 !important;
  padding: .55rem .85rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.9) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12) !important;
  position: relative !important;
  z-index: 70 !important;
}

.tw29-flip-button:hover {
  transform: translateY(-2px) !important;
}

.tw29-tablet.booking-open .tw29-flip-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
  color: var(--navy) !important;
  border-color: rgba(215,155,39,.3) !important;
  box-shadow: 0 14px 34px rgba(215,155,39,.32) !important;
}

/* Validation using TimeWiseAI palette */
.tw29-booking-form label {
  position: relative !important;
}

.tw29-booking-form label.field-invalid input,
.tw29-booking-form label.field-invalid select {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #fffdf8, #fff7e5) !important;
  box-shadow: 0 0 0 4px rgba(215,155,39,.18), 0 10px 24px rgba(0,31,72,.08) !important;
}

.tw29-booking-form label.field-invalid::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: .78rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.16);
  z-index: 300;
  pointer-events: none;
}

.tw29-booking-form label.field-valid input,
.tw29-booking-form label.field-valid select {
  border-color: rgba(0,31,72,.18) !important;
  box-shadow: none !important;
}

.mini-form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.mini-form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }
  .brand-panel {
    width: 100% !important;
  }
  .brand-panel img {
    min-height: 250px !important;
    max-height: 320px !important;
  }
}


/* V30: form keeps V29 editability but visually matches the tablet format */

/* Only one motto: under banner, subtle navy/luxury */
.hero-motto,
.motto-line {
  display: none !important;
}

.banner-motto {
  margin: .75rem 0 0 !important;
  text-align: center !important;
  color: rgba(0, 31, 72, .82) !important;
  font-size: clamp(.92rem, 1.2vw, 1.05rem) !important;
  font-weight: 850 !important;
  letter-spacing: .035em !important;
}

.about .two-col {
  grid-template-columns: .62fr 1.38fr !important;
  gap: clamp(2rem, 5vw, 5.4rem) !important;
}

.brand-panel {
  width: min(980px, 100%) !important;
  justify-self: stretch !important;
  padding: clamp(.9rem, 1.8vw, 1.35rem) !important;
}

.brand-panel img {
  width: 100% !important;
  min-height: 280px !important;
  max-height: 350px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Stage keeps the exact tablet footprint. */
.tw29-stage {
  min-height: 388px !important;
  position: relative !important;
  perspective: 1400px !important;
  transform-style: preserve-3d !important;
}

/* Front tablet frame */
.tw29-tablet-frame {
  transform-origin: center center !important;
}

/* Back booking side now has the same outer tablet shell format as the front. */
.tw29-booking-panel.tw30-tablet-back {
  position: absolute !important;
  inset: 0 !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  z-index: 45 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform-origin: center center !important;
  transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) !important;
  transition: opacity .12s ease, visibility .12s ease !important;
}

/* Inner screen on the booking side exactly like the dashboard screen. */
.tw30-back-screen {
  position: relative !important;
  min-height: 356px !important;
  height: 100% !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
}

.tw30-back-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none !important;
}

.tw30-back-screen > * {
  position: relative;
  z-index: 2;
}

/* Smooth two-phase flip:
   front rotates away, then booking tablet rotates in, preserving the tablet look. */
.tw29-tablet.flip-animating:not(.flip-closing) .tw29-tablet-frame {
  animation: tw30FrontOut .76s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating:not(.flip-closing) .tw29-booking-panel.tw30-tablet-back {
  animation: tw30BackIn .76s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating.flip-closing .tw29-tablet-frame {
  animation: tw30FrontIn .76s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating.flip-closing .tw29-booking-panel.tw30-tablet-back {
  animation: tw30BackOut .76s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes tw30FrontOut {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
  48% {
    opacity: 1;
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.985);
  }
  49%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.985);
  }
}

@keyframes tw30BackIn {
  0%, 48% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.985);
  }
  49% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.985);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
}

@keyframes tw30FrontIn {
  0%, 48% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.985);
  }
  49% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(92deg) rotateZ(-2deg) scale(.985);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
}

@keyframes tw30BackOut {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
  48% {
    opacity: 1;
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.985);
  }
  49%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(-92deg) rotateZ(-2deg) scale(.985);
  }
}

/* Resting states after animation */
.tw29-tablet.booking-open .tw29-tablet-frame {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tw29-tablet.booking-open .tw29-booking-panel.tw30-tablet-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) !important;
}

/* Keep form clickable despite the tablet-styled back. */
.tw29-tablet.booking-open .tw29-booking-panel,
.tw29-tablet.booking-open .tw29-booking-panel *,
.tw29-tablet.booking-open .tw29-booking-form,
.tw29-tablet.booking-open .tw29-booking-form *,
.tw29-tablet.booking-open input,
.tw29-tablet.booking-open select,
.tw29-tablet.booking-open button,
.tw29-tablet.booking-open label {
  pointer-events: auto !important;
}

.tw29-booking-form input,
.tw29-booking-form select,
.tw29-booking-form button {
  position: relative !important;
  z-index: 200 !important;
  pointer-events: auto !important;
}

/* Remove the V29 flat-panel feeling */
.tw29-booking-panel:not(.tw30-tablet-back) {
  display: none !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }
}


/* V31: keep the working form, make it look like the tablet, and make all fields clickable */

/* Banner: wider, shifted right, no card/box, fully fitting */
.about .two-col {
  grid-template-columns: .58fr 1.42fr !important;
  gap: clamp(2rem, 5vw, 5.8rem) !important;
}

.brand-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(1080px, 112%) !important;
  justify-self: end !important;
  margin-left: auto !important;
  transform: translateX(2.5vw) !important;
  overflow: visible !important;
}

.brand-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  border: 0 !important;
  border-radius: 24px !important;
}

.banner-motto {
  margin: .65rem .4rem 0 0 !important;
  text-align: right !important;
  color: rgba(0, 31, 72, .78) !important;
  font-size: clamp(.86rem, 1vw, .98rem) !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

/* Prevent duplicate motto elsewhere */
.hero-motto,
.motto-line {
  display: none !important;
}

/* Keep the flip animation visible, but after it finishes the form is flat/editable.
   This fixes the left-side Name/Company fields not responding. */
.tw29-tablet.booking-open:not(.flip-animating) .tw29-tablet-frame {
  display: none !important;
  pointer-events: none !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel.tw30-tablet-back {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  z-index: 999 !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
}

/* The booking form screen keeps the same tablet-inner-screen style. */
.tw29-tablet.booking-open:not(.flip-animating) .tw30-back-screen {
  position: relative !important;
  min-height: 356px !important;
  height: 100% !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
}

/* Make every form element top-layer clickable, especially left column fields */
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel *,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form *,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form label,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  pointer-events: auto !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form label {
  position: relative !important;
  z-index: 1001 !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  position: relative !important;
  z-index: 1002 !important;
  pointer-events: auto !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input {
  cursor: text !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  cursor: pointer !important;
}

/* The background texture may never catch clicks. */
.tw30-back-screen::before,
.tw29-booking-panel::before,
.tw29-screen::before {
  pointer-events: none !important;
}

/* Keep the Back to dashboard button gold */
.tw29-tablet.booking-open .tw29-flip-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
  color: var(--navy) !important;
  border-color: rgba(215,155,39,.3) !important;
  box-shadow: 0 14px 34px rgba(215,155,39,.32) !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }

  .brand-panel {
    width: 100% !important;
    transform: none !important;
  }

  .banner-motto {
    text-align: center !important;
  }
}


/* V32: smoother tablet flip + stronger AI partner section */

/* Replace the older two-panel flip with one clean stage flip. */
.tw29-stage {
  transform-style: preserve-3d !important;
  transform-origin: center center !important;
  will-change: transform !important;
}

.tw29-tablet.flip-animating .tw29-tablet-frame,
.tw29-tablet.flip-animating .tw29-booking-panel.tw30-tablet-back {
  animation: none !important;
}

.tw29-tablet.flip-animating .tw29-stage {
  animation: tw32CleanStageFlip .82s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating.flip-closing .tw29-stage {
  animation: tw32CleanStageFlipBack .82s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes tw32CleanStageFlip {
  0% {
    transform: perspective(1400px) rotateY(0deg) scale(1);
    filter: none;
  }
  46% {
    transform: perspective(1400px) rotateY(88deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  54% {
    transform: perspective(1400px) rotateY(88deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  100% {
    transform: perspective(1400px) rotateY(0deg) scale(1);
    filter: none;
  }
}

@keyframes tw32CleanStageFlipBack {
  0% {
    transform: perspective(1400px) rotateY(0deg) scale(1);
    filter: none;
  }
  46% {
    transform: perspective(1400px) rotateY(-88deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  54% {
    transform: perspective(1400px) rotateY(-88deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  100% {
    transform: perspective(1400px) rotateY(0deg) scale(1);
    filter: none;
  }
}

/* Keep the form resting state editable and tablet-styled after the flip. */
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel.tw30-tablet-back {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  pointer-events: auto !important;
  z-index: 1002 !important;
}

/* Make the AI partner section feel more like the stronger earlier layout. */
.about .two-col {
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, 1fr) !important;
  gap: clamp(2.5rem, 5vw, 5.2rem) !important;
  align-items: center !important;
}

.about .two-col > div:first-child {
  max-width: 660px !important;
}

.about .eyebrow {
  font-size: .86rem !important;
  letter-spacing: .24em !important;
  margin-bottom: .9rem !important;
}

.about h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.25rem) !important;
  line-height: .96 !important;
  letter-spacing: -.06em !important;
}

.about .motto {
  margin: 1.2rem 0 1rem !important;
  font-size: clamp(1rem, 1.35vw, 1.18rem) !important;
  color: var(--gold) !important;
}

.about .two-col > div:first-child p:not(.eyebrow):not(.motto) {
  font-size: clamp(1rem, 1.15vw, 1.12rem) !important;
  color: var(--muted) !important;
}

/* Right side should read as only the banner beside the text: no card box. */
.brand-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(780px, 100%) !important;
  justify-self: end !important;
  transform: none !important;
  overflow: visible !important;
}

.brand-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  border: 0 !important;
  border-radius: 24px !important;
}

/* Keep motto under banner subtle, smaller, navy. */
.banner-motto {
  margin: .7rem .2rem 0 0 !important;
  text-align: right !important;
  color: rgba(0,31,72,.78) !important;
  font-size: clamp(.85rem, 1vw, .96rem) !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }

  .about .two-col > div:first-child {
    max-width: 760px !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .brand-panel {
    width: 100% !important;
    justify-self: center !important;
  }

  .banner-motto {
    text-align: center !important;
  }
}


/* V33: final smoother flip layer + no overlap + larger/right banner */

/* Banner: bigger, slightly farther right, no card/box */
.about .two-col {
  grid-template-columns: minmax(420px, .96fr) minmax(560px, 1.18fr) !important;
  gap: clamp(2.6rem, 5vw, 6rem) !important;
  align-items: center !important;
}

.brand-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(980px, 118%) !important;
  justify-self: end !important;
  margin-left: auto !important;
  transform: translateX(4vw) !important;
  overflow: visible !important;
}

.brand-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  border: 0 !important;
  border-radius: 24px !important;
}

.banner-motto {
  margin: .65rem .5rem 0 0 !important;
  text-align: right !important;
  color: rgba(0,31,72,.76) !important;
  font-size: clamp(.84rem, 1vw, .96rem) !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

/* Hide any duplicate motto outside banner */
.hero-motto,
.motto-line {
  display: none !important;
}

/* The gold saved-time badge should never overlap the booking form */
.tw29-note,
.tablet-note {
  transition: opacity .24s ease, visibility .24s ease, transform .24s ease !important;
}

.tw29-tablet.booking-open .tw29-note,
.tw29-tablet.flip-animating .tw29-note,
.tw29-tablet.booking-open .tablet-note,
.tw29-tablet.flip-animating .tablet-note {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Cancel earlier competing flip animations that caused glitches */
.tw29-tablet.flip-animating .tw29-stage,
.tw29-tablet.flip-animating .tw29-tablet-frame,
.tw29-tablet.flip-animating .tw29-booking-panel.tw30-tablet-back {
  animation: none !important;
}

/* During the transition, hide the real dashboard/form layers and show only the clean visual flip. */
.tw29-tablet.flip-animating .tw29-tablet-frame,
.tw29-tablet.flip-animating .tw29-booking-panel.tw30-tablet-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Dedicated flip visual that looks like the same tablet, but never blocks form inputs at rest */
.tw33-flip-visual {
  position: absolute !important;
  inset: 0 !important;
  z-index: 140 !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  transform-origin: center center !important;
  transform-style: preserve-3d !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.tw33-flip-screen {
  position: relative !important;
  min-height: 356px !important;
  height: 100% !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(247,242,233,.94)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
}

.tw33-flip-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.tw33-flip-screen > * {
  position: relative;
  z-index: 2;
}

.tw33-flip-shine {
  position: absolute !important;
  inset: -20% !important;
  z-index: 1 !important;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255,255,255,.26) 46%, transparent 58% 100%);
  transform: translateX(-45%);
  animation: tw33Shine 1.1s ease both;
}

/* Clean one-object flip animation: no competing panels, no jitter */
.tw29-tablet.flip-animating:not(.flip-closing) .tw33-flip-visual {
  opacity: 1 !important;
  visibility: visible !important;
  animation: tw33FlipOpen .78s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw29-tablet.flip-animating.flip-closing .tw33-flip-visual {
  opacity: 1 !important;
  visibility: visible !important;
  animation: tw33FlipClose .78s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes tw33FlipOpen {
  0% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
    filter: none;
  }
  48% {
    transform: perspective(1200px) rotateX(9deg) rotateY(88deg) rotateZ(-2deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  52% {
    transform: perspective(1200px) rotateX(9deg) rotateY(88deg) rotateZ(-2deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  100% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
    filter: none;
  }
}

@keyframes tw33FlipClose {
  0% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
    filter: none;
  }
  48% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-88deg) rotateZ(-2deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  52% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-88deg) rotateZ(-2deg) scale(.985);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.22));
  }
  100% {
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
    filter: none;
  }
}

@keyframes tw33Shine {
  from { transform: translateX(-45%); opacity: 0; }
  35% { opacity: 1; }
  to { transform: translateX(45%); opacity: 0; }
}

/* Resting open state: form remains in tablet-style frame, but flat enough to keep all fields clickable */
.tw29-tablet.booking-open:not(.flip-animating) .tw29-tablet-frame {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel.tw30-tablet-back {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 999 !important;
  transform: none !important;
  min-height: 388px !important;
  padding: 1.05rem !important;
  border-radius: 36px !important;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw30-back-screen {
  position: relative !important;
  min-height: 356px !important;
  height: 100% !important;
  padding: 1rem !important;
  border-radius: 27px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955)) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08) !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
}

/* Preserve the successful input click fix */
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-panel *,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form *,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form label,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  pointer-events: auto !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  position: relative !important;
  z-index: 1002 !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form input {
  cursor: text !important;
}

.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form select,
.tw29-tablet.booking-open:not(.flip-animating) .tw29-booking-form button {
  cursor: pointer !important;
}

.tw33-flip-visual,
.tw33-flip-visual * {
  pointer-events: none !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }

  .brand-panel {
    width: 100% !important;
    transform: none !important;
    justify-self: center !important;
  }

  .banner-motto {
    text-align: center !important;
  }
}


/* V34: isolated smooth real-card flip + subdued saved-time note */

/* Banner remains larger and pushed right, without a box. */
.about .two-col {
  grid-template-columns: minmax(420px, .92fr) minmax(620px, 1.26fr) !important;
  gap: clamp(2.8rem, 5vw, 6.4rem) !important;
  align-items: center !important;
}

.brand-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(1080px, 122%) !important;
  justify-self: end !important;
  margin-left: auto !important;
  transform: translateX(4.8vw) !important;
  overflow: visible !important;
}

.brand-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  border: 0 !important;
  border-radius: 24px !important;
}

.banner-motto {
  margin: .65rem .55rem 0 0 !important;
  text-align: right !important;
  color: rgba(0,31,72,.76) !important;
  font-size: clamp(.84rem, 1vw, .96rem) !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

.hero-motto,
.motto-line {
  display: none !important;
}

/* New tablet component is fully isolated from the old tablet classes. */
.tw34-tablet {
  --tw34-tilt-x: 0deg;
  --tw34-tilt-y: 0deg;
  position: relative;
  width: min(600px, 100%);
  padding-top: 1.25rem;
  padding-bottom: 2.85rem;
  isolation: isolate;
  perspective: 1500px;
}

.tw34-note {
  position: absolute;
  left: 50%;
  top: .2rem;
  z-index: 0;
  transform: translate(-50%, -18%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(.98);
  padding: .78rem .96rem;
  border-radius: 18px;
  color: rgba(0,31,72,.78);
  background: linear-gradient(135deg, rgba(215,155,39,.48), rgba(241,201,107,.50));
  border: 1px solid rgba(255,255,255,.26);
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(215,155,39,.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: .58;
  filter: saturate(.86);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}

.tw34-note strong {
  font-size: 1.16em;
}

.tw34-tablet.booking-open .tw34-note,
.tw34-tablet.flip-animating .tw34-note {
  opacity: .18;
  filter: saturate(.65) blur(.2px);
  transform: translate(-50%, -42%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(.94);
}

.tw34-scene {
  position: relative;
  z-index: 2;
  min-height: 388px;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.tw34-card {
  position: absolute;
  inset: 0;
  min-height: 388px;
  padding: 1.05rem;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transform-origin: center center;
  transform:
    perspective(1200px)
    rotateX(calc(9deg + var(--tw34-tilt-y)))
    rotateY(calc(-8deg + var(--tw34-tilt-x)))
    rotateZ(-2deg);
  transition: transform .82s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
  will-change: transform;
}

.tw34-tablet.booking-open .tw34-card {
  transform:
    perspective(1200px)
    rotateX(9deg)
    rotateY(172deg)
    rotateZ(-2deg);
}

.tw34-tablet.flip-animating .tw34-card {
  box-shadow: 0 50px 145px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.28);
}

.tw34-face {
  position: absolute;
  inset: 1.05rem;
  min-height: 356px;
  padding: 1rem;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.tw34-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.tw34-face > * {
  position: relative;
  z-index: 1;
}

.tw34-front {
  transform: rotateY(0deg) translateZ(1px);
  pointer-events: auto;
}

.tw34-back {
  transform: rotateY(180deg) translateZ(1px);
  pointer-events: none;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.tw34-tablet.booking-open .tw34-front {
  pointer-events: none;
}

.tw34-tablet.booking-open .tw34-back {
  pointer-events: auto;
}

.tw34-booking-form,
.tw34-booking-form *,
.tw34-booking-form input,
.tw34-booking-form select,
.tw34-booking-form button,
.tw34-booking-form label {
  pointer-events: auto !important;
}

.tw34-booking-form input,
.tw34-booking-form select,
.tw34-booking-form button {
  position: relative;
  z-index: 3;
}

.tw34-booking-form input {
  cursor: text;
}

.tw34-booking-form select,
.tw34-booking-form button {
  cursor: pointer;
}

.tw34-flip-button {
  display: table;
  margin: 1.15rem auto 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  position: relative;
  z-index: 5;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tw34-flip-button:hover {
  transform: translateY(-2px);
}

.tw34-tablet.booking-open .tw34-flip-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  border-color: rgba(215,155,39,.3);
  box-shadow: 0 14px 34px rgba(215,155,39,.32);
}

/* Validation */
.tw34-booking-form label {
  position: relative;
}

.tw34-booking-form label.field-invalid input,
.tw34-booking-form label.field-invalid select {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #fffdf8, #fff7e5) !important;
  box-shadow: 0 0 0 4px rgba(215,155,39,.18), 0 10px 24px rgba(0,31,72,.08) !important;
}

.tw34-booking-form label.field-invalid::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: .78rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.16);
  z-index: 20;
  pointer-events: none;
}

.tw34-booking-form label.field-valid input,
.tw34-booking-form label.field-valid select {
  border-color: rgba(0,31,72,.18) !important;
  box-shadow: none !important;
}

.mini-form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.mini-form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }

  .brand-panel {
    width: 100% !important;
    transform: none !important;
    justify-self: center !important;
  }

  .banner-motto {
    text-align: center !important;
  }
}

@media (max-width: 860px) {
  .tw34-tablet {
    padding-top: .5rem;
  }

  .tw34-note {
    display: none;
  }

  .tw34-scene,
  .tw34-card {
    min-height: 340px;
  }

  .tw34-face {
    min-height: 310px;
    inset: .75rem;
  }
}


/* V35: smooth reliable flip, form kept clickable, saved-time badge visible only on front */

/* Banner stays larger/right and unboxed */
.about .two-col {
  grid-template-columns: minmax(420px, .92fr) minmax(620px, 1.26fr) !important;
  gap: clamp(2.8rem, 5vw, 6.4rem) !important;
  align-items: center !important;
}

.brand-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: min(1080px, 122%) !important;
  justify-self: end !important;
  margin-left: auto !important;
  transform: translateX(4.8vw) !important;
  overflow: visible !important;
}

.brand-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center right !important;
  border: 0 !important;
  border-radius: 24px !important;
}

.banner-motto {
  margin: .65rem .55rem 0 0 !important;
  text-align: right !important;
  color: rgba(0,31,72,.76) !important;
  font-size: clamp(.84rem, 1vw, .96rem) !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

.hero-motto,
.motto-line {
  display: none !important;
}

/* Isolated tablet */
.tw35-tablet {
  --tw35-tilt-x: 0deg;
  --tw35-tilt-y: 0deg;
  position: relative;
  width: min(600px, 100%);
  padding-top: 1.25rem;
  padding-bottom: 2.85rem;
  perspective: 1500px;
  isolation: isolate;
}

/* Fully visible on the front. Subdued and behind only during/open after flip. */
.tw35-note {
  position: absolute;
  left: 50%;
  top: .35rem;
  z-index: 6;
  transform: translate(-50%, -58%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg);
  padding: .84rem 1rem;
  border-radius: 18px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(215,155,39,.28);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  filter: none;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease, z-index 0s linear .35s;
}

.tw35-note strong {
  font-size: 1.18em;
}

.tw35-tablet.booking-open .tw35-note,
.tw35-tablet.flip-animating .tw35-note {
  z-index: 0;
  opacity: .22;
  filter: saturate(.62) blur(.2px);
  transform: translate(-50%, -74%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(.92);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease, z-index 0s;
}

.tw35-scene {
  position: relative;
  z-index: 2;
  min-height: 388px;
  perspective: 1500px;
  transform-style: preserve-3d;
}

/* Visual card handles only the animation. It never blocks the real form when open. */
.tw35-visual-card,
.tw35-form-card {
  position: absolute;
  inset: 0;
  min-height: 388px;
  padding: 1.05rem;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.tw35-visual-card {
  z-index: 3;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform:
    perspective(1200px)
    rotateX(calc(9deg + var(--tw35-tilt-y)))
    rotateY(calc(-8deg + var(--tw35-tilt-x)))
    rotateZ(-2deg);
  transition: transform .16s ease-out, opacity .25s ease, visibility .25s ease;
  pointer-events: auto;
}

.tw35-form-card {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(.985);
  transition: opacity .28s ease, transform .34s cubic-bezier(.16, 1, .3, 1), visibility .28s ease;
}

/* Smooth opening: the visual tablet flips, then the actual editable form fades in. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw35VisualFlipOpen .78s cubic-bezier(.16, 1, .3, 1) both;
  pointer-events: none;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw35VisualFlipClose .78s cubic-bezier(.16, 1, .3, 1) both;
  pointer-events: none;
}

@keyframes tw35VisualFlipOpen {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
  46% {
    opacity: 1;
    transform: perspective(1200px) rotateX(9deg) rotateY(88deg) rotateZ(-2deg) scale(.985);
  }
  54% {
    opacity: 1;
    transform: perspective(1200px) rotateX(9deg) rotateY(88deg) rotateZ(-2deg) scale(.985);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(172deg) rotateZ(-2deg) scale(1);
  }
}

@keyframes tw35VisualFlipClose {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px) rotateX(9deg) rotateY(172deg) rotateZ(-2deg) scale(1);
  }
  1% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-88deg) rotateZ(-2deg) scale(.985);
  }
  54% {
    opacity: 1;
    transform: perspective(1200px) rotateX(9deg) rotateY(-88deg) rotateZ(-2deg) scale(.985);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(1);
  }
}

/* Resting states */
.tw35-tablet.booking-open:not(.flip-closing) .tw35-visual-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tw35-tablet.booking-open .tw35-form-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 4;
}

/* During close, hide the form quickly so the flip back is clean. */
.tw35-tablet.flip-closing .tw35-form-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(.985);
}

/* Screen styling */
.tw35-face,
.tw35-form-screen {
  position: relative;
  min-height: 356px;
  height: 100%;
  padding: 1rem;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,242,233,.955));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0,31,72,.08);
}

.tw35-face::before,
.tw35-form-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/timewiseai-banner.png") center / cover no-repeat;
  opacity: .08;
  pointer-events: none;
}

.tw35-face > *,
.tw35-form-screen > * {
  position: relative;
  z-index: 1;
}

.tw35-visual-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tw35-back-preview {
  display: none;
}

.tw35-preview-lines {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.tw35-preview-lines span {
  display: block;
  height: 34px;
  border-radius: 12px;
  background: rgba(0,31,72,.07);
  border: 1px solid rgba(0,31,72,.08);
}

/* Real form is flat and always clickable once visible */
.tw35-form-screen {
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.tw35-tablet.booking-open .tw35-form-card,
.tw35-tablet.booking-open .tw35-form-card *,
.tw35-tablet.booking-open .tw35-booking-form,
.tw35-tablet.booking-open .tw35-booking-form *,
.tw35-tablet.booking-open .tw35-booking-form input,
.tw35-tablet.booking-open .tw35-booking-form select,
.tw35-tablet.booking-open .tw35-booking-form button,
.tw35-tablet.booking-open .tw35-booking-form label {
  pointer-events: auto !important;
}

.tw35-booking-form input,
.tw35-booking-form select,
.tw35-booking-form button {
  position: relative;
  z-index: 10;
}

.tw35-booking-form input {
  cursor: text;
}

.tw35-booking-form select,
.tw35-booking-form button {
  cursor: pointer;
}

/* Button */
.tw35-flip-button {
  display: table;
  margin: 1.15rem auto 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  position: relative;
  z-index: 5;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tw35-flip-button:hover {
  transform: translateY(-2px);
}

.tw35-tablet.booking-open .tw35-flip-button {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  border-color: rgba(215,155,39,.3);
  box-shadow: 0 14px 34px rgba(215,155,39,.32);
}

/* Validation */
.tw35-booking-form label {
  position: relative;
}

.tw35-booking-form label.field-invalid input,
.tw35-booking-form label.field-invalid select {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #fffdf8, #fff7e5) !important;
  box-shadow: 0 0 0 4px rgba(215,155,39,.18), 0 10px 24px rgba(0,31,72,.08) !important;
}

.tw35-booking-form label.field-invalid::after {
  content: "";
  position: absolute;
  right: .72rem;
  bottom: .78rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.16);
  z-index: 20;
  pointer-events: none;
}

.tw35-booking-form label.field-valid input,
.tw35-booking-form label.field-valid select {
  border-color: rgba(0,31,72,.18) !important;
  box-shadow: none !important;
}

.mini-form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.mini-form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}

/* Hide old tablet implementations if any remain from previous builds */
.tw29-tablet,
.tw34-tablet,
.tablet-wrap:not(.tw35-tablet) {
  display: none !important;
}

@media (max-width: 1120px) {
  .about .two-col {
    grid-template-columns: 1fr !important;
  }

  .brand-panel {
    width: 100% !important;
    transform: none !important;
    justify-self: center !important;
  }

  .banner-motto {
    text-align: center !important;
  }
}

@media (max-width: 860px) {
  .tw35-tablet {
    padding-top: .5rem;
  }

  .tw35-note {
    display: none;
  }

  .tw35-scene,
  .tw35-visual-card,
  .tw35-form-card {
    min-height: 340px;
  }

  .tw35-face,
  .tw35-form-screen {
    min-height: 310px;
  }
}


/* V36: smoother flip, Mac close button, dynamic form, and final form validation */

/* Make the transition feel smoother: visual tablet moves away, form appears as the destination. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw36VisualToForm .92s cubic-bezier(.18, .92, .22, 1) both !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw36VisualBack .82s cubic-bezier(.18, .92, .22, 1) both !important;
}

/* Override V35 open/close animations with a less glitch-prone single-card motion. */
@keyframes tw36VisualToForm {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      scale(1);
    filter: none;
  }
  38% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(55deg)
      rotateZ(-2deg)
      scale(.992);
    filter: drop-shadow(0 28px 54px rgba(0,0,0,.2));
  }
  66% {
    opacity: .42;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(86deg)
      rotateZ(-2deg)
      scale(.975);
    filter: drop-shadow(0 34px 70px rgba(0,0,0,.26)) blur(.1px);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(96deg)
      rotateZ(-2deg)
      scale(.965);
    filter: drop-shadow(0 34px 70px rgba(0,0,0,.22)) blur(.25px);
  }
}

@keyframes tw36VisualBack {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-96deg)
      rotateZ(-2deg)
      scale(.965);
    filter: drop-shadow(0 34px 70px rgba(0,0,0,.22)) blur(.25px);
  }
  1% {
    opacity: .38;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-86deg)
      rotateZ(-2deg)
      scale(.975);
  }
  48% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-38deg)
      rotateZ(-2deg)
      scale(.992);
    filter: drop-shadow(0 28px 54px rgba(0,0,0,.2));
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      scale(1);
    filter: none;
  }
}

/* Form appears only after the tablet has mostly turned, removing the old mid-flip glitch. */
.tw35-tablet.booking-open .tw35-form-card {
  animation: tw36FormArrive .55s cubic-bezier(.16, 1, .3, 1) both;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation: tw36FormFloat 5.8s ease-in-out infinite;
}

.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw36FormLeave .22s ease both !important;
}

@keyframes tw36FormArrive {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(.965);
    filter: blur(.6px);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes tw36FormLeave {
  from {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.975);
  }
}

@keyframes tw36FormFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  }
  50% {
    transform: translateY(-8px) scale(1.004);
    box-shadow: 0 52px 150px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.32);
  }
}

/* Keep the saved-time badge visible on front, subtle behind the form after open. */
.tw35-note {
  opacity: 1 !important;
  filter: none !important;
  z-index: 6 !important;
}

.tw35-tablet.booking-open .tw35-note,
.tw35-tablet.flip-animating .tw35-note {
  z-index: 0 !important;
  opacity: .18 !important;
  filter: saturate(.62) blur(.2px) !important;
}

/* Mac-like form topbar with red close button. */
.tw36-form-topbar {
  display: flex;
  align-items: center;
  gap: .52rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 20;
}

.tw36-form-topbar .screen-dots {
  margin-bottom: 0 !important;
}

.tw36-close-form {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #ff5f57;
  box-shadow:
    inset 0 0 0 1px rgba(122, 0, 0, .16),
    0 0 0 4px rgba(255, 95, 87, .10);
  position: relative;
  z-index: 50;
}

.tw36-close-form::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  color: rgba(90,0,0,.65);
  opacity: 0;
  transform: translateY(-.5px);
}

.tw36-close-form:hover::before {
  opacity: 1;
}

.tw36-close-form:hover {
  box-shadow:
    inset 0 0 0 1px rgba(122, 0, 0, .22),
    0 0 0 5px rgba(255, 95, 87, .16);
}

/* Preserve clickability while the form floats. */
.tw35-tablet.booking-open .tw35-form-card,
.tw35-tablet.booking-open .tw35-form-card *,
.tw35-tablet.booking-open .tw35-booking-form,
.tw35-tablet.booking-open .tw35-booking-form *,
.tw35-tablet.booking-open input,
.tw35-tablet.booking-open select,
.tw35-tablet.booking-open button,
.tw35-tablet.booking-open label {
  pointer-events: auto !important;
}

/* Final page contact form gets the same palette highlight logic. */
.contact-form label {
  position: relative;
}

.contact-form label.field-invalid input,
.contact-form label.field-invalid textarea,
.contact-form label.field-invalid select {
  border-color: var(--gold) !important;
  background: linear-gradient(180deg, #fffdf8, #fff7e5) !important;
  box-shadow: 0 0 0 4px rgba(215,155,39,.18), 0 10px 24px rgba(0,31,72,.08) !important;
}

.contact-form label.field-invalid::after {
  content: "";
  position: absolute;
  right: .95rem;
  bottom: .95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.16);
  z-index: 20;
  pointer-events: none;
}

.contact-form label.field-valid input,
.contact-form label.field-valid textarea,
.contact-form label.field-valid select {
  border-color: rgba(0,31,72,.18) !important;
  box-shadow: none !important;
}

.form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}


/* V37: faster satisfying flip, green + on front, grey close, sharper dynamic form */

/* Front tablet topbar with green plus */
.tw37-front-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 25;
}

.tw37-front-topbar .screen-dots {
  margin-bottom: 0 !important;
}

.tw37-front-plus {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #06351f;
  background: linear-gradient(135deg, #2fd36f, #98f1bd);
  box-shadow:
    0 10px 22px rgba(47, 211, 111, .22),
    inset 0 0 0 1px rgba(255,255,255,.48);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tw37-front-plus:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 14px 28px rgba(47, 211, 111, .30),
    inset 0 0 0 1px rgba(255,255,255,.55);
}

/* Grey Mac-style close button instead of red */
.tw36-close-form {
  background: linear-gradient(135deg, #c9ced8, #edf0f4) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.12),
    0 0 0 4px rgba(0,31,72,.045) !important;
}

.tw36-close-form::before {
  color: rgba(0,31,72,.58) !important;
}

.tw36-close-form:hover {
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.18),
    0 0 0 5px rgba(0,31,72,.08) !important;
}

/* V72: premium public booking date and dropdown controls */
.tw35-booking-form input[type="date"],
.tw35-booking-form select,
.contact-form input[type="date"],
.contact-form select {
  width:100%;
  min-height:46px;
  border:1px solid rgba(215,155,39,.28) !important;
  border-radius:16px !important;
  color:var(--navy) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,155,39,.16), transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#fbfdff 62%,#fff8e9 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 12px 26px rgba(0,31,72,.08) !important;
  color-scheme:light;
}

.tw35-booking-form select,
.contact-form select {
  appearance:none;
  -webkit-appearance:none;
  padding-right:2.45rem !important;
  background:
    linear-gradient(45deg, transparent 50%, rgba(215,155,39,.95) 50%) calc(100% - 1.18rem) 50% / 7px 7px no-repeat,
    linear-gradient(135deg,#ffffff 0%,#fbfdff 62%,#fff8e9 100%) !important;
}

.tw35-booking-form input[type="date"]:focus,
.tw35-booking-form select:focus,
.contact-form input[type="date"]:focus,
.contact-form select:focus {
  outline:none !important;
  border-color:rgba(215,155,39,.6) !important;
  box-shadow:0 0 0 4px rgba(215,155,39,.15), 0 16px 36px rgba(0,31,72,.12) !important;
}

.tw35-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor:pointer;
  opacity:.86;
  filter:sepia(1) saturate(2.2) hue-rotate(350deg);
}

.tw35-form-card .time-slot,
.tw35-booking-form .time-chip,
.contact-form .time-slot {
  border-color:rgba(215,155,39,.26) !important;
  background:linear-gradient(135deg,#ffffff,#fff8e8) !important;
  color:var(--navy) !important;
  box-shadow:0 10px 24px rgba(0,31,72,.08) !important;
}

/* Override V36 flip with a quicker, cleaner, more satisfying motion */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw37QuickFlipOpen .58s cubic-bezier(.2, .9, .18, 1) both !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw37QuickFlipClose .52s cubic-bezier(.2, .9, .18, 1) both !important;
}

@keyframes tw37QuickFlipOpen {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translateY(0)
      scale(1);
    filter: none;
  }
  52% {
    opacity: .96;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(64deg)
      rotateZ(-2deg)
      translateY(-3px)
      scale(.992);
    filter: drop-shadow(0 28px 56px rgba(0,0,0,.22));
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(92deg)
      rotateZ(-2deg)
      translateY(-4px)
      scale(.982);
    filter: none;
  }
}

@keyframes tw37QuickFlipClose {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-88deg)
      rotateZ(-2deg)
      translateY(-3px)
      scale(.982);
    filter: none;
  }
  1% {
    opacity: .75;
    visibility: visible;
  }
  55% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-38deg)
      rotateZ(-2deg)
      translateY(-2px)
      scale(.995);
    filter: drop-shadow(0 26px 52px rgba(0,0,0,.2));
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translateY(0)
      scale(1);
    filter: none;
  }
}

/* Faster form arrival and sharper rendering */
.tw35-tablet.booking-open .tw35-form-card {
  animation: tw37SharpFormArrive .34s cubic-bezier(.16, 1, .3, 1) both !important;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation: tw37SharpFormFloat 5.2s ease-in-out infinite !important;
}

.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw37SharpFormLeave .16s ease both !important;
}

@keyframes tw37SharpFormArrive {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px) scale(.982);
    filter: none;
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes tw37SharpFormLeave {
  from {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: none;
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(.986);
    filter: none;
  }
}

@keyframes tw37SharpFormFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 44px 130px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.28);
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(1.002);
    box-shadow: 0 50px 145px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.32);
  }
}

/* Remove unsharp/granular look from the form */
.tw35-form-card,
.tw35-form-screen,
.tw35-form-screen *,
.tw35-booking-form,
.tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.tw35-form-card {
  transform-style: flat !important;
  backface-visibility: visible !important;
  will-change: transform, opacity !important;
}

.tw35-form-screen {
  background:
    linear-gradient(180deg, rgba(255,255,255,.995), rgba(248,244,237,.985)) !important;
}

.tw35-form-screen::before {
  opacity: .045 !important;
}

/* Keep saved-time badge fully visible only on the front */
.tw35-note {
  opacity: 1 !important;
  filter: none !important;
  z-index: 6 !important;
}

.tw35-tablet.booking-open .tw35-note,
.tw35-tablet.flip-animating .tw35-note {
  z-index: 0 !important;
  opacity: .16 !important;
  filter: saturate(.6) !important;
  transform: translate(-50%, -74%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg) scale(.92) !important;
}


/* V38: sharp non-blurry form motion, muted red close, plus as third dot */

/* Put the green + exactly as the third Mac-style dot on the dashboard tablet. */
.tw38-front-topbar {
  justify-content: flex-start !important;
  margin-bottom: 1rem !important;
}

.tw38-screen-dots {
  display: flex !important;
  align-items: center !important;
  gap: .34rem !important;
  margin-bottom: 0 !important;
}

.tw38-dot-plus {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  color: rgba(0, 55, 31, .9) !important;
  background: linear-gradient(135deg, #4bd984, #98f1bd) !important;
  box-shadow: 0 0 0 1px rgba(0, 84, 45, .12), 0 4px 10px rgba(47, 211, 111, .18) !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: none !important;
  backdrop-filter: none !important;
}

.tw38-dot-plus:hover {
  transform: scale(1.18) !important;
  box-shadow: 0 0 0 1px rgba(0, 84, 45, .18), 0 5px 12px rgba(47, 211, 111, .28) !important;
}

/* Remove old standalone-plus sizing if cached rules still exist. */
.tw37-front-topbar > .tw37-front-plus:not(.tw38-dot-plus) {
  display: none !important;
}

/* Muted Mac close button: red, but softer and more premium. */
.tw36-close-form {
  background: linear-gradient(135deg, #e9827c, #f3aaa5) !important;
  box-shadow:
    inset 0 0 0 1px rgba(116, 28, 22, .12),
    0 0 0 4px rgba(233, 130, 124, .10) !important;
}

.tw36-close-form::before {
  color: rgba(85, 15, 10, .58) !important;
}

.tw36-close-form:hover {
  background: linear-gradient(135deg, #df716b, #f1a09b) !important;
  box-shadow:
    inset 0 0 0 1px rgba(116, 28, 22, .18),
    0 0 0 5px rgba(233, 130, 124, .15) !important;
}

/* The form looked blurry because the floating animation used transform/scale.
   Keep it dynamic with glow and background energy, but lock the text layer to pixels. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation: tw38SharpEnergy 5.8s ease-in-out infinite !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  filter: none !important;
  will-change: box-shadow, background !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  contain: layout paint;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  transform: none !important;
  filter: none !important;
  backface-visibility: visible !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

@keyframes tw38SharpEnergy {
  0%, 100% {
    box-shadow:
      0 44px 130px rgba(0,0,0,.38),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.28);
  }
  50% {
    box-shadow:
      0 50px 148px rgba(0,0,0,.41),
      0 0 42px rgba(215,155,39,.10),
      inset 0 1px 0 rgba(255,255,255,.34);
  }
}

/* A subtle animated shine on the form screen gives life without moving text. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.16) 50%, transparent 58% 100%);
  transform: translateX(-45%);
  animation: tw38FormShine 6.2s ease-in-out infinite;
  z-index: 0;
}

@keyframes tw38FormShine {
  0%, 35% { transform: translateX(-55%); opacity: 0; }
  50% { opacity: .8; }
  72%, 100% { transform: translateX(55%); opacity: 0; }
}

/* Keep the arrival/exit fast and crisp. */
.tw35-tablet.booking-open .tw35-form-card {
  filter: none !important;
}

.tw35-tablet.flip-closing .tw35-form-card {
  filter: none !important;
}


/* V39: fix opening flip lag/glitch + subtle grey close/+ controls */

/* Opening flip is now one clean visual move; the editable form appears after it, not during it. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw39CleanOpenFlip .46s cubic-bezier(.22, .88, .22, 1) both !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw39CleanCloseFlip .48s cubic-bezier(.22, .88, .22, 1) both !important;
}

/* Stop the form from trying to render while the tablet is still turning. */
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 4px, 0) scale(.992) !important;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation: tw39FormSettle .24s cubic-bezier(.16, 1, .3, 1) both, tw38SharpEnergy 5.8s ease-in-out .26s infinite !important;
  filter: none !important;
}

@keyframes tw39CleanOpenFlip {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
    filter: none;
  }
  55% {
    opacity: .98;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(58deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.993);
    filter: drop-shadow(0 24px 52px rgba(0,0,0,.20));
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(88deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.988);
    filter: none;
  }
}

@keyframes tw39CleanCloseFlip {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-82deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.988);
    filter: none;
  }
  1% {
    opacity: .7;
    visibility: visible;
  }
  55% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-36deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.995);
    filter: drop-shadow(0 22px 48px rgba(0,0,0,.18));
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
    filter: none;
  }
}

@keyframes tw39FormSettle {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 7px, 0) scale(.988);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Subtle grey X: visible immediately, softer than red. */
.tw36-close-form {
  background: linear-gradient(135deg, #c7ccd5, #eef1f5) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.13),
    0 0 0 4px rgba(0,31,72,.045) !important;
}

.tw36-close-form::before {
  content: "×" !important;
  opacity: 1 !important;
  color: rgba(0,31,72,.58) !important;
  font-weight: 800 !important;
}

.tw36-close-form:hover {
  background: linear-gradient(135deg, #b8bec9, #e8ebf0) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.18),
    0 0 0 5px rgba(0,31,72,.07) !important;
}

/* Subtle grey + as the third dot, not green. */
.tw38-dot-plus {
  background: linear-gradient(135deg, #cbd1da, #f0f2f5) !important;
  color: rgba(0,31,72,.62) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.12),
    0 3px 8px rgba(0,31,72,.08) !important;
  font-size: 8px !important;
  font-weight: 950 !important;
}

.tw38-dot-plus:hover {
  transform: scale(1.16) !important;
  background: linear-gradient(135deg, #bcc3ce, #e7ebf0) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.17),
    0 4px 10px rgba(0,31,72,.12) !important;
}

/* Keep form text sharp while dynamic glow continues. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  transform-style: flat !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}


/* V40: vertical-line flip, dynamic sharp form, navy X */

/* Opening: tablet flips until it becomes a thin vertical line, fades out, then the form appears. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw40FlipToLine .58s cubic-bezier(.19, .92, .2, 1) both !important;
}

@keyframes tw40FlipToLine {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
    filter: none;
  }
  62% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(78deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.992);
    filter: drop-shadow(0 24px 52px rgba(0,0,0,.20));
  }
  84% {
    opacity: .72;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(89.2deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.986);
    filter: drop-shadow(0 20px 42px rgba(0,0,0,.16));
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(89.8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.984);
    filter: none;
  }
}

/* Keep the real form hidden while the visual card is narrowing to the line. */
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 4px, 0) scale(.992) !important;
}

/* Form fades in after the line flip finishes. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation:
    tw40FormFadeIn .28s cubic-bezier(.16, 1, .3, 1) both,
    tw40FormGlow 5.5s ease-in-out .3s infinite !important;
  filter: none !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
}

@keyframes tw40FormFadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0) scale(.992);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Dynamic but sharp: animate only glow/background, not text position/scale. */
@keyframes tw40FormGlow {
  0%, 100% {
    box-shadow:
      0 44px 130px rgba(0,0,0,.38),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.28);
  }
  50% {
    box-shadow:
      0 50px 148px rgba(0,0,0,.41),
      0 0 46px rgba(215,155,39,.13),
      inset 0 1px 0 rgba(255,255,255,.35);
  }
}

.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(241,201,107,.12), transparent 26%),
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.18) 50%, transparent 58% 100%);
  transform: translateX(-55%);
  animation: tw40FormShine 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes tw40FormShine {
  0%, 32% { transform: translateX(-58%); opacity: 0; }
  50% { opacity: .85; }
  74%, 100% { transform: translateX(58%); opacity: 0; }
}

/* Closing: form fades out first; then a thin line expands/flips back into the dashboard. */
.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw40FormFadeOut .18s ease both !important;
}

@keyframes tw40FormFadeOut {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0) scale(1);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0,5px,0) scale(.994);
  }
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw40LineToDashboard .62s cubic-bezier(.19, .92, .2, 1) .14s both !important;
}

@keyframes tw40LineToDashboard {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-89.8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.984);
    filter: none;
  }
  1% {
    opacity: .55;
    visibility: visible;
  }
  28% {
    opacity: .86;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-88deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.986);
    filter: drop-shadow(0 20px 42px rgba(0,0,0,.14));
  }
  72% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-36deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.996);
    filter: drop-shadow(0 24px 52px rgba(0,0,0,.18));
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
    filter: none;
  }
}

/* Keep form content crisp: no moving/scaling text during the open state. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  transform-style: flat !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Navy X, always visible, inside a subtle grey button. */
.tw36-close-form {
  background: linear-gradient(135deg, #c7ccd5, #eef1f5) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.13),
    0 0 0 4px rgba(0,31,72,.045) !important;
}

.tw36-close-form::before {
  content: "×" !important;
  opacity: 1 !important;
  color: var(--navy) !important;
  font-weight: 950 !important;
}

.tw36-close-form:hover {
  background: linear-gradient(135deg, #bac1cc, #e6ebf1) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.19),
    0 0 0 5px rgba(0,31,72,.08) !important;
}

/* Keep the third-dot plus subtle grey. */
.tw38-dot-plus {
  background: linear-gradient(135deg, #cbd1da, #f0f2f5) !important;
  color: rgba(0,31,72,.66) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,31,72,.12),
    0 3px 8px rgba(0,31,72,.08) !important;
}


/* V41: smoother low-cost line flip, smaller vertical line, and sharp floating form */

/* Reduce expensive effects during the flip. Transform + opacity only = smoother. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw41FlipToSmallLine .46s cubic-bezier(.22, .78, .2, 1) both !important;
  will-change: transform, opacity !important;
  filter: none !important;
  backface-visibility: hidden !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw41SmallLineToDashboard .50s cubic-bezier(.22, .78, .2, 1) .08s both !important;
  will-change: transform, opacity !important;
  filter: none !important;
  backface-visibility: hidden !important;
}

/* The vertical line is intentionally shorter/smaller at the end. */
@keyframes tw41FlipToSmallLine {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  58% {
    opacity: .94;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(70deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.985);
  }
  82% {
    opacity: .58;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(88.8deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.82);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(89.7deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.76);
  }
}

@keyframes tw41SmallLineToDashboard {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-89.7deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.76);
  }
  1% {
    opacity: .45;
    visibility: visible;
  }
  28% {
    opacity: .72;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-88deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.82);
  }
  74% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-34deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(.992);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

/* Prevent the real form from rendering during the line-flip. */
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 3px, 0) !important;
}

/* Form fades in after the line disappears, then floats subtly without scale/blur. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation:
    tw41FormFadeIn .22s cubic-bezier(.16, 1, .3, 1) both,
    tw41FormFloatSharp 5.2s ease-in-out .26s infinite !important;
  filter: none !important;
  will-change: transform, box-shadow !important;
}

@keyframes tw41FormFadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 6px, 0);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }
}

/* Floating, but no scale and no filter; this keeps the form much sharper. */
@keyframes tw41FormFloatSharp {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    box-shadow:
      0 44px 130px rgba(0,0,0,.38),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.28);
  }
  50% {
    transform: translate3d(0, -4px, 0);
    box-shadow:
      0 49px 142px rgba(0,0,0,.40),
      0 0 40px rgba(215,155,39,.11),
      inset 0 1px 0 rgba(255,255,255,.34);
  }
}

.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw41FormFadeOut .14s ease both !important;
}

@keyframes tw41FormFadeOut {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0,4px,0);
  }
}

/* Keep the dynamic shine, but make it very light so it does not look grainy. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(241,201,107,.08), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.11) 50%, transparent 57% 100%);
  transform: translateX(-55%);
  animation: tw41FormShine 6.4s ease-in-out infinite;
  z-index: 0;
}

@keyframes tw41FormShine {
  0%, 36% { transform: translateX(-58%); opacity: 0; }
  50% { opacity: .7; }
  72%, 100% { transform: translateX(58%); opacity: 0; }
}

/* Sharpen the form contents during its floating state. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Keep close button navy x and subtle grey. */
.tw36-close-form::before {
  content: "×" !important;
  opacity: 1 !important;
  color: var(--navy) !important;
  font-weight: 950 !important;
}


/* V42: jitter-free fold animation + visibly floating form */

/* The jitter came from 3D perspective rotation near 90deg.
   This version folds with scaleX to a tiny vertical line instead. It is much smoother. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw42FoldToLine .48s cubic-bezier(.22, .84, .18, 1) both !important;
  filter: none !important;
  will-change: transform, opacity !important;
  transform-origin: 50% 50% !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw42LineToCard .52s cubic-bezier(.22, .84, .18, 1) .08s both !important;
  filter: none !important;
  will-change: transform, opacity !important;
  transform-origin: 50% 50% !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

@keyframes tw42FoldToLine {
  0% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scaleX(1)
      scaleY(1);
  }
  55% {
    opacity: .95;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scaleX(.16)
      scaleY(.92);
  }
  82% {
    opacity: .55;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scaleX(.025)
      scaleY(.78);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scaleX(.012)
      scaleY(.72);
  }
}

@keyframes tw42LineToCard {
  0% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scaleX(.012)
      scaleY(.72);
  }
  1% {
    opacity: .48;
    visibility: visible;
  }
  42% {
    opacity: .78;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scaleX(.12)
      scaleY(.88);
  }
  76% {
    opacity: 1;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scaleX(.72)
      scaleY(.98);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scaleX(1)
      scaleY(1);
  }
}

/* No real form rendering while the fold is happening. */
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 8px, 0) !important;
}

/* The form appears after the fold, then floats visibly. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation:
    tw42FormFadeIn .24s cubic-bezier(.16, 1, .3, 1) both,
    tw42FormFloating .4s ease-out .26s both,
    tw42FormFloatLoop 4.8s ease-in-out .66s infinite !important;
  filter: none !important;
  will-change: transform, box-shadow !important;
}

@keyframes tw42FormFadeIn {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tw42FormFloating {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -6px, 0);
  }
}

/* A real visible float, but no scaling/blur so it stays sharp. */
@keyframes tw42FormFloatLoop {
  0%, 100% {
    transform: translate3d(0, -6px, 0);
    box-shadow:
      0 48px 138px rgba(0,0,0,.39),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.30);
  }
  50% {
    transform: translate3d(0, -14px, 0);
    box-shadow:
      0 58px 160px rgba(0,0,0,.43),
      0 0 48px rgba(215,155,39,.14),
      inset 0 1px 0 rgba(255,255,255,.36);
  }
}

.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw42FormFadeOut .14s ease both !important;
}

@keyframes tw42FormFadeOut {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
  }
}

/* Keep form crisp while it floats. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Keep the shine subtle and independent of text movement. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, rgba(241,201,107,.08), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.11) 50%, transparent 57% 100%);
  transform: translateX(-55%);
  animation: tw42FormShine 6.2s ease-in-out infinite;
  z-index: 0;
}

@keyframes tw42FormShine {
  0%, 36% { transform: translateX(-58%); opacity: 0; }
  50% { opacity: .7; }
  72%, 100% { transform: translateX(58%); opacity: 0; }
}


/* V43: return to the better rotate flip, but make it fast + one smooth motion.
   No scaleX fold, no heavy shadow/filter during the move. */

/* Kill the V42 scale-fold and replace with a single smooth rotate-to-line move. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw43RotateToLine .50s cubic-bezier(.16, 1, .3, 1) both !important;
  will-change: transform, opacity !important;
  transform-origin: 50% 50% !important;
  filter: none !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw43LineToRotate .54s cubic-bezier(.16, 1, .3, 1) .08s both !important;
  will-change: transform, opacity !important;
  transform-origin: 50% 50% !important;
  filter: none !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* One continuous movement: dashboard rotates to a very thin side line and fades out. */
@keyframes tw43RotateToLine {
  0% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  72% {
    opacity: .86;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(82deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.99);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(89.4deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.94);
  }
}

/* Reverse: form fades away, then the thin side line opens back into the dashboard. */
@keyframes tw43LineToRotate {
  0% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-89.4deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.94);
  }
  1% {
    opacity: .5;
    visibility: visible;
  }
  30% {
    opacity: .75;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-78deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.97);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

/* The real form is not painted during the opening flip, so no stutter. */
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 8px, 0) !important;
}

/* More visible dynamic floating once the form is open.
   This moves the whole tablet-form vertically, but does not scale or blur it. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation:
    tw43FormAppear .24s cubic-bezier(.16, 1, .3, 1) both,
    tw43FormFloatDynamic 3.8s ease-in-out .28s infinite !important;
  filter: none !important;
  will-change: transform, box-shadow !important;
  transform-origin: center center !important;
}

@keyframes tw43FormAppear {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -4px, 0);
  }
}

/* Dynamic enough to notice, but still sharp: translate only, no scale/filter. */
@keyframes tw43FormFloatDynamic {
  0%, 100% {
    transform: translate3d(0, -4px, 0);
    box-shadow:
      0 46px 135px rgba(0,0,0,.39),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.30);
  }
  50% {
    transform: translate3d(0, -18px, 0);
    box-shadow:
      0 62px 166px rgba(0,0,0,.44),
      0 0 54px rgba(215,155,39,.16),
      inset 0 1px 0 rgba(255,255,255,.36);
  }
}

.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw43FormFadeOut .16s ease both !important;
}

@keyframes tw43FormFadeOut {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -4px, 0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 8px, 0);
  }
}

/* Add subtle dynamic glow inside the form without moving text. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(241,201,107,.11), transparent 25%),
    radial-gradient(circle at 78% 76%, rgba(0,31,72,.055), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.13) 50%, transparent 57% 100%);
  transform: translateX(-55%);
  animation: tw43FormShine 5.4s ease-in-out infinite;
  z-index: 0;
}

@keyframes tw43FormShine {
  0%, 34% { transform: translateX(-58%); opacity: 0; }
  50% { opacity: .75; }
  74%, 100% { transform: translateX(58%); opacity: 0; }
}

/* Keep the floating form crisp. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Keep the vertical line narrow, but not tiny; this matches the previous flip feel better. */
.tw35-tablet.flip-opening .tw35-visual-card,
.tw35-tablet.flip-closing .tw35-visual-card {
  pointer-events: none !important;
}


/* V44: force the flipped booking form to visibly float.
   This overrides the earlier "keep it sharp" rules that were accidentally flattening the motion. */

/* The outer tablet form card floats as one object. Text stays crisp because only the wrapper moves. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
  animation: tw44FloatingTabletForm 3.4s ease-in-out infinite !important;
  transform-origin: center center !important;
  will-change: transform, box-shadow !important;
  filter: none !important;
}

/* Stronger, visible movement: up/down + tiny rotate only on the outer shell. */
@keyframes tw44FloatingTabletForm {
  0%, 100% {
    transform: translate3d(0, -4px, 0) rotateZ(-.18deg) !important;
    box-shadow:
      0 46px 138px rgba(0,0,0,.39),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.30);
  }
  50% {
    transform: translate3d(0, -20px, 0) rotateZ(.22deg) !important;
    box-shadow:
      0 66px 174px rgba(0,0,0,.44),
      0 0 58px rgba(215,155,39,.18),
      inset 0 1px 0 rgba(255,255,255,.38);
  }
}

/* Make sure the inner screen/content does not cancel or inherit transforms. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Add a subtle moving light sweep so the form feels alive even when the user is not scrolling. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(241,201,107,.12), transparent 25%),
    radial-gradient(circle at 78% 76%, rgba(0,31,72,.07), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.16) 50%, transparent 57% 100%);
  transform: translateX(-58%);
  animation: tw44FormLightSweep 4.8s ease-in-out infinite !important;
  z-index: 0;
}

@keyframes tw44FormLightSweep {
  0%, 26% { transform: translateX(-62%); opacity: 0; }
  48% { opacity: .88; }
  74%, 100% { transform: translateX(62%); opacity: 0; }
}

/* Keep the form clickable while the floating wrapper moves. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card *,
.tw35-tablet.booking-open:not(.flip-animating) input,
.tw35-tablet.booking-open:not(.flip-animating) select,
.tw35-tablet.booking-open:not(.flip-animating) button,
.tw35-tablet.booking-open:not(.flip-animating) label {
  pointer-events: auto !important;
}

/* Respect users who reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .tw35-tablet.booking-open:not(.flip-animating) .tw35-form-card {
    animation: none !important;
    transform: translate3d(0, -4px, 0) !important;
  }
}


/* V45: real independent floating wrapper + updated "Save 12+ hours" copy */

/* The form was not visibly floating because previous important transform rules
   on .tw35-form-card overrode animation transforms. This wrapper is independent
   and carries the floating motion, while the form itself remains sharp/clickable. */
.tw45-form-float-shell {
  position: absolute !important;
  inset: 0 !important;
  min-height: 388px !important;
  z-index: 4 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0);
  will-change: transform, opacity;
}

/* Form card stays stable inside the floating shell. */
.tw45-form-float-shell .tw35-form-card {
  position: absolute !important;
  inset: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Hide the floating shell during the flip so the animation remains clean. */
.tw35-tablet.flip-opening .tw45-form-float-shell,
.tw35-tablet.flip-closing .tw45-form-float-shell {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 10px, 0) !important;
}

/* Visible floating after the form is open. This is intentionally strong enough to see. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: tw45FloatShell 3.2s ease-in-out infinite !important;
}

/* Use translate-only floating. No blur, no scale. Text and fields remain sharp. */
@keyframes tw45FloatShell {
  0%, 100% {
    transform: translate3d(0, -4px, 0) rotateZ(-0.12deg);
  }
  50% {
    transform: translate3d(0, -22px, 0) rotateZ(0.14deg);
  }
}

/* Override all older transform animations on the real form card.
   Dynamic glow remains, but motion happens on the wrapper above. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-card {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
  animation: tw45FormGlowOnly 3.2s ease-in-out infinite !important;
  filter: none !important;
  will-change: box-shadow !important;
}

@keyframes tw45FormGlowOnly {
  0%, 100% {
    box-shadow:
      0 46px 138px rgba(0,0,0,.39),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.30);
  }
  50% {
    box-shadow:
      0 66px 174px rgba(0,0,0,.44),
      0 0 58px rgba(215,155,39,.18),
      inset 0 1px 0 rgba(255,255,255,.38);
  }
}

/* Keep all inner form elements clickable even while the wrapper floats. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell,
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell *,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw35-booking-form *,
.tw35-tablet.booking-open:not(.flip-animating) input,
.tw35-tablet.booking-open:not(.flip-animating) select,
.tw35-tablet.booking-open:not(.flip-animating) button,
.tw35-tablet.booking-open:not(.flip-animating) label {
  pointer-events: auto !important;
}

/* Preserve crisp rendering. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-screen,
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-screen *,
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-booking-form,
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-booking-form * {
  filter: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Subtle light sweep remains independent of the floating transform. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-screen::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(241,201,107,.12), transparent 25%),
    radial-gradient(circle at 78% 76%, rgba(0,31,72,.07), transparent 24%),
    linear-gradient(115deg, transparent 0 43%, rgba(255,255,255,.16) 50%, transparent 57% 100%);
  transform: translateX(-58%);
  animation: tw45FormLightSweep 4.8s ease-in-out infinite !important;
  z-index: 0;
}

@keyframes tw45FormLightSweep {
  0%, 26% { transform: translateX(-62%); opacity: 0; }
  48% { opacity: .88; }
  74%, 100% { transform: translateX(62%); opacity: 0; }
}

/* The visible front badge text should read clearly and stay fully visible before flip. */
.tw35-note {
  z-index: 6 !important;
  opacity: 1 !important;
}

/* Respect reduced motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
    animation: none !important;
    transform: translate3d(0, -4px, 0) !important;
  }
}


/* V46: softer premium floating + "Saved" badge copy */

/* Override V45's stronger float with a subtler, smoother premium movement. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  animation: tw46SubtleFloatShell 4.8s ease-in-out infinite !important;
}

@keyframes tw46SubtleFloatShell {
  0%, 100% {
    transform: translate3d(0, -5px, 0) rotateZ(-0.05deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotateZ(0.06deg);
  }
}

/* Smooth the glow so the motion feels calmer and more luxurious. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-card {
  animation: tw46SoftFormGlow 4.8s ease-in-out infinite !important;
}

@keyframes tw46SoftFormGlow {
  0%, 100% {
    box-shadow:
      0 46px 138px rgba(0,0,0,.38),
      0 0 0 1px rgba(255,255,255,.06),
      inset 0 1px 0 rgba(255,255,255,.30);
  }
  50% {
    box-shadow:
      0 56px 154px rgba(0,0,0,.41),
      0 0 36px rgba(215,155,39,.12),
      inset 0 1px 0 rgba(255,255,255,.35);
  }
}

/* Keep the light sweep subtle. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-screen::after {
  animation: tw46SoftLightSweep 6.2s ease-in-out infinite !important;
}

@keyframes tw46SoftLightSweep {
  0%, 32% { transform: translateX(-62%); opacity: 0; }
  50% { opacity: .58; }
  74%, 100% { transform: translateX(62%); opacity: 0; }
}


/* V47: faster, smoother flip.
   One lightweight transform-only motion. No heavy filters/shadows during the flip. */

/* Opening: quick flip toward a thin line and disappear */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw47FastFlipOpen .34s cubic-bezier(.2, .82, .18, 1) both !important;
  will-change: transform, opacity !important;
  filter: none !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-origin: 50% 50% !important;
  pointer-events: none !important;
}

/* Closing: quick line back into dashboard */
.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw47FastFlipClose .36s cubic-bezier(.2, .82, .18, 1) .06s both !important;
  will-change: transform, opacity !important;
  filter: none !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-origin: 50% 50% !important;
  pointer-events: none !important;
}

/* Rotate + slight scaleX creates the flip/line effect without the browser struggling at a full 90deg. */
@keyframes tw47FastFlipOpen {
  0% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scaleX(1)
      scaleY(1);
  }
  62% {
    opacity: .92;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(62deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scaleX(.34)
      scaleY(.98);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(78deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scaleX(.055)
      scaleY(.88);
  }
}

@keyframes tw47FastFlipClose {
  0% {
    opacity: 0;
    visibility: hidden;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-78deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scaleX(.055)
      scaleY(.88);
  }
  1% {
    opacity: .62;
    visibility: visible;
  }
  58% {
    opacity: 1;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-34deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scaleX(.62)
      scaleY(.98);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scaleX(1)
      scaleY(1);
  }
}

/* Do not paint the form while the card is flipping open. */
.tw35-tablet.flip-opening .tw45-form-float-shell,
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
  transform: translate3d(0, 7px, 0) !important;
}

/* Form appears quickly after the flip. Existing V46 subtle float remains after arrival. */
.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  animation:
    tw47FormQuickAppear .16s cubic-bezier(.16, 1, .3, 1) both,
    tw46SubtleFloatShell 4.8s ease-in-out .18s infinite !important;
}

@keyframes tw47FormQuickAppear {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 5px, 0);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
}

/* Closing: form leaves immediately, then line expands back. */
.tw35-tablet.flip-closing .tw45-form-float-shell,
.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw47FormQuickExit .10s ease both !important;
}

@keyframes tw47FormQuickExit {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
  }
}

/* Keep it crisp and responsive. */
.tw35-tablet.flip-opening .tw35-visual-card *,
.tw35-tablet.flip-closing .tw35-visual-card * {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}


/* V48: one smooth flip-around movement.
   The visual tablet now rotates as one 3D card from dashboard to a booking-preview back side.
   After the flip completes, the real editable form replaces the preview. */

/* Restore the visual card as a true two-sided card during the flip. */
.tw35-visual-card {
  transform-style: preserve-3d !important;
  overflow: visible !important;
}

.tw35-visual-card .tw35-face {
  position: absolute !important;
  inset: 1.05rem !important;
  min-height: 356px !important;
  height: calc(100% - 2.1rem) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
}

/* Front face: dashboard. */
.tw35-visual-card .tw35-front-preview {
  display: block !important;
  transform: rotateY(0deg) translateZ(1px) !important;
}

/* Back face: booking preview. It is visible only as the card flips around. */
.tw35-visual-card .tw35-back-preview {
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  transform: rotateY(180deg) translateZ(1px) !important;
}

.tw35-back-preview .tw35-preview-lines {
  display: grid !important;
  gap: .7rem !important;
  margin-top: 1rem !important;
}

.tw35-back-preview .tw35-preview-lines span {
  display: block !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: rgba(0,31,72,.07) !important;
  border: 1px solid rgba(0,31,72,.08) !important;
}

/* Opening: one continuous 3D card rotation to the booking side. */
.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw48FlipAroundToForm .62s cubic-bezier(.17, .88, .2, 1) both !important;
  transform-style: preserve-3d !important;
  will-change: transform, opacity !important;
  filter: none !important;
  pointer-events: none !important;
}

/* Closing: one continuous reverse rotation back to dashboard. */
.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw48FlipAroundToDashboard .58s cubic-bezier(.17, .88, .2, 1) both !important;
  transform-style: preserve-3d !important;
  will-change: transform, opacity !important;
  filter: none !important;
  pointer-events: none !important;
}

@keyframes tw48FlipAroundToForm {
  0% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  50% {
    opacity: 1;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(90deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.992);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(172deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

@keyframes tw48FlipAroundToDashboard {
  0% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(172deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  50% {
    opacity: 1;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(90deg)
      rotateZ(-2deg)
      translate3d(0,-2px,0)
      scale(.992);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform:
      perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

/* During opening, do not show the real form until the visual card finished its full flip. */
.tw35-tablet.flip-opening .tw45-form-float-shell,
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

/* When the animation is complete, swap the preview for the real, editable form. */
.tw35-tablet.booking-open:not(.flip-animating) .tw35-visual-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  animation:
    tw48FormSoftAppear .18s cubic-bezier(.16, 1, .3, 1) both,
    tw46SubtleFloatShell 4.8s ease-in-out .2s infinite !important;
}

/* While closing, real form exits instantly and the visual card handles the full reverse flip. */
.tw35-tablet.flip-closing .tw45-form-float-shell,
.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw48FormSoftExit .12s ease both !important;
}

@keyframes tw48FormSoftAppear {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
}

@keyframes tw48FormSoftExit {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
  }
}

/* Keep the face rendering clean during the flip. */
.tw35-tablet.flip-opening .tw35-visual-card *,
.tw35-tablet.flip-closing .tw35-visual-card * {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}


/* V49: subtle floating motion for the starting tablet.
   Applied only before the tablet is flipped, so it does not affect the booking form or flip animation. */
.tw35-tablet:not(.booking-open):not(.flip-animating) .tw35-scene {
  animation: tw49StartTabletFloat 5.6s ease-in-out infinite !important;
  will-change: transform;
}

.tw35-tablet:not(.booking-open):not(.flip-animating) .tw35-note {
  animation: tw49StartBadgeFloat 5.6s ease-in-out infinite !important;
  will-change: transform;
}

@keyframes tw49StartTabletFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes tw49StartBadgeFloat {
  0%, 100% {
    transform: translate(-50%, -58%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg);
  }
  50% {
    transform: translate(-50%, -66%) rotateX(9deg) rotateY(-8deg) rotateZ(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw35-tablet:not(.booking-open):not(.flip-animating) .tw35-scene,
  .tw35-tablet:not(.booking-open):not(.flip-animating) .tw35-note {
    animation: none !important;
  }
}


/* V50: faster, smoother one-movement flip */
.tw35-visual-card {
  transform-style: preserve-3d !important;
  transform-origin: center center !important;
  will-change: transform, opacity !important;
  contain: paint !important;
}

.tw35-visual-card .tw35-face {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform-style: preserve-3d !important;
}

.tw35-visual-card .tw35-front-preview {
  display: block !important;
  transform: rotateY(0deg) translateZ(1px) !important;
}

.tw35-visual-card .tw35-back-preview {
  display: grid !important;
  grid-template-rows: auto auto 1fr !important;
  transform: rotateY(180deg) translateZ(1px) !important;
}

.tw35-tablet.flip-opening .tw35-visual-card {
  animation: tw50OneMoveFlipOpen .46s cubic-bezier(.16, 1, .3, 1) both !important;
  filter: none !important;
  pointer-events: none !important;
}

.tw35-tablet.flip-closing .tw35-visual-card {
  animation: tw50OneMoveFlipClose .46s cubic-bezier(.16, 1, .3, 1) both !important;
  filter: none !important;
  pointer-events: none !important;
}

@keyframes tw50OneMoveFlipOpen {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(calc(9deg + var(--tw35-tilt-y)))
      rotateY(calc(-8deg + var(--tw35-tilt-x)))
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  50% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(90deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.996);
  }
  92% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(164deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(172deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

@keyframes tw50OneMoveFlipClose {
  0% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(172deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
  50% {
    opacity: 1;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(90deg)
      rotateZ(-2deg)
      translate3d(0,-1px,0)
      scale(.996);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: perspective(1200px)
      rotateX(9deg)
      rotateY(-8deg)
      rotateZ(-2deg)
      translate3d(0,0,0)
      scale(1);
  }
}

.tw35-tablet.flip-opening .tw45-form-float-shell,
.tw35-tablet.flip-opening .tw35-form-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  animation:
    tw50FormAppear .16s cubic-bezier(.16, 1, .3, 1) both,
    tw46SubtleFloatShell 4.8s ease-in-out .18s infinite !important;
}

@keyframes tw50FormAppear {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 5px, 0);
  }
  to {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
}

.tw35-tablet.flip-closing .tw45-form-float-shell,
.tw35-tablet.flip-closing .tw35-form-card {
  animation: tw50FormExit .10s ease both !important;
}

@keyframes tw50FormExit {
  from {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -5px, 0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 4px, 0);
  }
}

.nav a[href="customer/"] {
  font-weight: 950;
}


/* V51 localhost portal additions */
.nav a[href="customer/"] {
  font-weight: 950;
}

.form-note.form-highlight,
.mini-form-note.form-highlight {
  color: var(--gold) !important;
  font-weight: 900 !important;
}

.form-note.form-success,
.mini-form-note.form-success {
  color: #0b7f48 !important;
  font-weight: 900 !important;
}

/* V63: premium appointment fields and tighter flipped tablet form */
.timewise-date-field {
  position: relative;
}

.timewise-date-field input {
  color: var(--navy);
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,250,240,.9)) padding-box,
    linear-gradient(135deg, rgba(215,155,39,.65), rgba(0,31,72,.28)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(0,31,72,.08);
}

.timewise-date-field::after {
  content: "";
  position: absolute;
  right: .65rem;
  bottom: .72rem;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(215,155,39,.13);
  pointer-events: none;
}

.tw35-booking-form {
  gap: .46rem !important;
}

.tw35-booking-form label {
  font-size: .68rem !important;
}

.tw35-booking-form input,
.tw35-booking-form select {
  min-height: 34px !important;
  padding: .46rem .58rem !important;
  border-radius: 11px !important;
  font-size: .78rem !important;
}

.tw35-booking-form button {
  min-height: 40px !important;
  padding: .58rem .8rem !important;
  margin-top: .05rem !important;
}

.tw35-booking-form .mini-form-note {
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

.tw35-form-screen {
  padding: .78rem !important;
}

.tw35-form-screen .booking-brand {
  margin-bottom: .62rem !important;
}

/* V63: public page loading overlay */
.twai-public-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 1rem;
  color: #fff;
  font-weight: 950;
  background:
    radial-gradient(circle at center, rgba(241,201,107,.18), transparent 34%),
    linear-gradient(135deg, #001f48, #061228);
  transition: opacity .45s ease, visibility .45s ease;
}

.twai-public-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.twai-public-loader-wheel {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#fff,#fff) padding-box,
    conic-gradient(from 0deg, var(--gold), #fff8d9, var(--navy), var(--gold)) border-box;
  border: 5px solid transparent;
  animation: twaiPublicLoaderSpin 1.15s cubic-bezier(.45,.05,.2,.95) infinite;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.twai-public-loader-wheel img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

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

/* V64: premium booking date/time and stable tablet submit button */
.timewise-date-field {
  padding: .12rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.65), rgba(255,250,240,.48)) padding-box,
    linear-gradient(135deg, rgba(0,31,72,.18), rgba(215,155,39,.52)) border-box;
  border: 1px solid transparent;
}

.timewise-date-field input {
  min-height: 44px !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 92% 18%, rgba(241,201,107,.26), transparent 28%),
    linear-gradient(135deg, #fff, #fffaf0) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(0,31,72,.10) !important;
}

.timewise-date-field input::-webkit-calendar-picker-indicator {
  filter: sepia(1) saturate(1.8) hue-rotate(355deg);
  cursor: pointer;
}

.tw35-booking-form button,
.mini-booking-form.tw35-booking-form button {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(215,155,39,.38) !important;
  box-shadow: 0 14px 34px rgba(215,155,39,.24) !important;
  transform: translateZ(0);
}

.tw35-tablet.booking-open .tw35-form-screen {
  overflow: visible !important;
}

/* V65: premium public booking slots */
.timewise-slot-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: .45rem;
  padding: .65rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,31,72,.06), rgba(215,155,39,.12));
  border: 1px solid rgba(0,31,72,.09);
}

.timewise-slot-shell > span {
  color: var(--navy);
  font-size: .74rem;
  font-weight: 900;
}

.timewise-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  max-height: 118px;
  overflow: auto;
  padding-right: .15rem;
}

.timewise-slot-grid em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: .78rem;
}

.timewise-slot {
  display: grid;
  gap: .08rem;
  min-height: 48px;
  border: 1px solid rgba(0,31,72,.10);
  border-radius: 14px;
  padding: .4rem;
  color: var(--navy);
  background: linear-gradient(180deg, #fff, #fffaf0);
  box-shadow: 0 8px 18px rgba(0,31,72,.08);
  cursor: pointer;
}

.timewise-slot strong {
  font-size: .84rem;
}

.timewise-slot small {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
}

.timewise-slot.selected {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #0a4b8f);
  border-color: rgba(215,155,39,.55);
}

.timewise-slot.selected small {
  color: rgba(255,255,255,.72);
}

.timewise-slot.reserved {
  color: #7d8796;
  background: #eef1f5;
  border-color: rgba(102,112,133,.18);
  box-shadow: none;
  cursor: not-allowed;
  opacity: .74;
}

@media (max-width: 720px) {
  .timewise-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* V70: direct slot booking with hidden time field and safer tablet fit */
.tw35-booking-form input[name="preferredTime"],
.contact-form input[name="preferredTime"] {
  display: none;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell {
  max-height: min(92vh, 720px);
  overflow: visible;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-card {
  max-height: min(86vh, 650px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tw35-booking-form .timewise-slot-shell,
.contact-form .timewise-slot-shell {
  grid-column: 1 / -1;
}

.tw35-booking-form .timewise-slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 150px;
  overflow: auto;
}

.contact-form .timewise-slot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .tw35-booking-form .timewise-slot-grid,
  .contact-form .timewise-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* V72 final override: luxury date/dropdown controls after tablet-fit rules */
.tw35-booking-form input[type="date"],
.tw35-booking-form select,
.contact-form input[type="date"],
.contact-form select {
  min-height:42px !important;
  padding:.62rem .78rem !important;
  border:1px solid rgba(215,155,39,.3) !important;
  border-radius:15px !important;
  color:var(--navy) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,155,39,.16), transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#fbfdff 62%,#fff8e9 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 10px 22px rgba(0,31,72,.08) !important;
  color-scheme:light;
}

.tw35-booking-form select,
.contact-form select {
  appearance:none !important;
  -webkit-appearance:none !important;
  padding-right:2.3rem !important;
  background:
    linear-gradient(45deg, transparent 50%, rgba(215,155,39,.96) 50%) calc(100% - 1.12rem) 50% / 7px 7px no-repeat,
    linear-gradient(135deg,#ffffff 0%,#fbfdff 62%,#fff8e9 100%) !important;
}

.tw35-booking-form input[type="date"]:focus,
.tw35-booking-form select:focus,
.contact-form input[type="date"]:focus,
.contact-form select:focus {
  outline:none !important;
  border-color:rgba(215,155,39,.62) !important;
  box-shadow:0 0 0 4px rgba(215,155,39,.15), 0 14px 30px rgba(0,31,72,.12) !important;
}

.tw35-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor:pointer;
  opacity:.88;
  filter:sepia(1) saturate(2.2) hue-rotate(350deg);
}

/* V73: denser premium booking controls and aligned final consultation form */
html,
body {
  max-width:100%;
}

body {
  overflow-x:hidden;
}

.two-col > *,
.contact-grid > * {
  min-width:0;
}

.brand-panel {
  width:100% !important;
  max-width:100% !important;
  justify-self:stretch !important;
  overflow:hidden !important;
}

.brand-panel.reveal,
.brand-panel.reveal.in-view {
  transform:none !important;
}

.brand-panel img,
.banner-motto {
  max-width:100% !important;
}

#contact .contact-grid {
  align-items:start;
  grid-template-columns:minmax(0,.95fr) minmax(420px,.88fr);
  gap:clamp(1.5rem,4vw,3.2rem);
}

#contact .contact-grid > div:first-child {
  padding-top:.2rem;
}

.contact-form {
  align-self:start;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.72rem .8rem !important;
  padding:clamp(1rem,2vw,1.35rem) !important;
}

.contact-form label {
  gap:.32rem !important;
  font-size:.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding:.72rem .85rem !important;
}

.contact-form textarea {
  min-height:96px;
  resize:vertical;
}

.contact-form .full,
.contact-form .timewise-slot-shell,
.contact-form > button,
.contact-form .form-note {
  grid-column:1 / -1;
}

.contact-form > button {
  justify-self:start;
  margin-top:.05rem;
}

.tw35-booking-form .timewise-slot-shell,
.contact-form .timewise-slot-shell {
  gap:.5rem;
  padding:.58rem;
  border:1px solid rgba(215,155,39,.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(215,155,39,.16), transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.94) 60%,rgba(255,247,230,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(0,31,72,.08);
}

.tw35-booking-form .timewise-slot-shell > span,
.contact-form .timewise-slot-shell > span {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  font-size:.7rem;
  letter-spacing:.02em;
}

.tw35-booking-form .timewise-slot-shell > span strong,
.contact-form .timewise-slot-shell > span strong {
  color:var(--gold);
  font-size:.68rem;
  white-space:nowrap;
}

.tw35-booking-form .timewise-slot-grid,
.contact-form .timewise-slot-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.38rem;
  max-height:132px;
  overflow-y:auto;
  padding-right:.18rem;
  scrollbar-width:thin;
  scrollbar-color:rgba(215,155,39,.6) rgba(0,31,72,.05);
}

.tw35-booking-form .timewise-slot-grid::-webkit-scrollbar,
.contact-form .timewise-slot-grid::-webkit-scrollbar {
  width:7px;
}

.tw35-booking-form .timewise-slot-grid::-webkit-scrollbar-track,
.contact-form .timewise-slot-grid::-webkit-scrollbar-track {
  background:rgba(0,31,72,.05);
  border-radius:999px;
}

.tw35-booking-form .timewise-slot-grid::-webkit-scrollbar-thumb,
.contact-form .timewise-slot-grid::-webkit-scrollbar-thumb {
  background:linear-gradient(180deg,var(--gold),var(--gold-2));
  border-radius:999px;
}

.timewise-slot-shell[hidden] {
  display:none !important;
}

.mini-booking-form.tw35-booking-form .timewise-slot,
.tw35-booking-form .timewise-slot,
.contact-form .timewise-slot {
  position:relative;
  z-index:30;
  width:100% !important;
  min-width:0 !important;
  justify-self:stretch !important;
  grid-column:auto !important;
  min-height:42px;
  padding:.34rem .38rem;
  border-color:rgba(215,155,39,.26);
  background:linear-gradient(135deg,#ffffff,#fff8e9);
  box-shadow:0 8px 18px rgba(0,31,72,.075);
  pointer-events:auto !important;
  cursor:pointer;
}

.mini-booking-form.tw35-booking-form .timewise-slot.selected,
.tw35-booking-form .timewise-slot.selected,
.contact-form .timewise-slot.selected {
  color:#fff !important;
  border-color:rgba(215,155,39,.75) !important;
  background:linear-gradient(135deg,var(--navy),#0a4b8f 58%,var(--gold)) !important;
  box-shadow:0 14px 30px rgba(0,31,72,.18), 0 0 0 3px rgba(215,155,39,.16) !important;
}

.mini-booking-form.tw35-booking-form .timewise-slot.selected small,
.tw35-booking-form .timewise-slot.selected small,
.contact-form .timewise-slot.selected small {
  color:rgba(255,255,255,.78) !important;
}

.tw35-booking-form .timewise-slot strong,
.contact-form .timewise-slot strong {
  font-size:.78rem;
  pointer-events:none;
}

.tw35-booking-form .timewise-slot small,
.contact-form .timewise-slot small {
  font-size:.58rem;
  pointer-events:none;
}

.mini-booking-form.tw35-booking-form .timewise-slot.reserved,
.tw35-booking-form .timewise-slot.reserved,
.contact-form .timewise-slot.reserved {
  pointer-events:none !important;
  cursor:not-allowed;
}

.tw35-tablet.booking-open:not(.flip-animating) .tw45-form-float-shell .tw35-form-card {
  max-height:min(84vh,620px);
}

.tw35-tablet.booking-open .tw35-booking-form {
  gap:.52rem;
}

@media (max-width:1120px) {
  #contact .contact-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width:720px) {
  .contact-form {
    grid-template-columns:1fr;
  }

  .tw35-booking-form .timewise-slot-grid,
  .contact-form .timewise-slot-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* V76 public booking polish: luxury date fields and selectable call slots. */
.timewise-date-field {
  position:relative;
  isolation:isolate;
}

.timewise-date-field input[type="date"] {
  appearance:none;
  -webkit-appearance:none;
  min-height:46px;
  padding:.78rem 2.65rem .78rem .9rem;
  border:1px solid rgba(215,155,39,.28);
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(255,249,236,.92)),
    #fff;
  color:var(--navy);
  font-weight:850;
  letter-spacing:.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 14px 32px rgba(0,31,72,.08);
}

.timewise-date-field input[type="date"]:focus {
  border-color:rgba(215,155,39,.68);
  box-shadow:
    0 0 0 4px rgba(215,155,39,.16),
    0 18px 38px rgba(0,31,72,.12);
}

.timewise-date-field input[type="date"]::-webkit-calendar-picker-indicator {
  width:1.25rem;
  height:1.25rem;
  cursor:pointer;
  opacity:.9;
  filter:sepia(1) saturate(1.6) hue-rotate(350deg) brightness(.8);
}

.tw35-booking-form .timewise-slot-shell,
.contact-form .timewise-slot-shell {
  grid-column:1 / -1;
  display:grid;
  gap:.62rem;
  width:100%;
  padding:.72rem;
  border:1px solid rgba(215,155,39,.24);
  border-radius:20px;
  background:
    radial-gradient(circle at top left,rgba(241,201,107,.26),transparent 38%),
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,250,255,.92));
  box-shadow:0 18px 40px rgba(0,31,72,.1);
}

.tw35-booking-form .timewise-slot-shell[hidden],
.contact-form .timewise-slot-shell[hidden] {
  display:none !important;
}

.tw35-booking-form .timewise-slot-shell > span,
.contact-form .timewise-slot-shell > span {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.7rem;
  color:rgba(0,31,72,.72);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.tw35-booking-form .timewise-slot-shell > span strong,
.contact-form .timewise-slot-shell > span strong {
  color:var(--gold);
  font-size:.72rem;
  white-space:nowrap;
}

.tw35-booking-form .timewise-slot-grid,
.contact-form .timewise-slot-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.48rem;
  max-height:142px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:.1rem .24rem .1rem 0;
  scrollbar-width:thin;
  scrollbar-color:rgba(215,155,39,.62) rgba(0,31,72,.08);
}

.contact-form .timewise-slot-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-height:188px;
}

.tw35-booking-form .timewise-slot,
.contact-form .timewise-slot {
  display:grid;
  place-items:center;
  gap:.08rem;
  min-width:0;
  min-height:54px;
  padding:.56rem .42rem;
  border:1px solid rgba(0,31,72,.1);
  border-radius:16px;
  background:linear-gradient(135deg,#fff,rgba(247,250,255,.96));
  color:var(--navy);
  box-shadow:0 10px 24px rgba(0,31,72,.08);
  cursor:pointer;
  text-align:center;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}

.tw35-booking-form .timewise-slot strong,
.contact-form .timewise-slot strong {
  color:inherit;
  font-size:.9rem;
  font-weight:950;
  line-height:1;
}

.tw35-booking-form .timewise-slot small,
.contact-form .timewise-slot small {
  max-width:100%;
  color:rgba(0,31,72,.54);
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.1;
  text-transform:uppercase;
  white-space:normal;
}

.tw35-booking-form .timewise-slot:hover:not(:disabled),
.contact-form .timewise-slot:hover:not(:disabled) {
  transform:translateY(-2px);
  border-color:rgba(215,155,39,.48);
  box-shadow:0 16px 30px rgba(0,31,72,.12);
}

.tw35-booking-form .timewise-slot.selected,
.contact-form .timewise-slot.selected {
  border-color:rgba(241,201,107,.72) !important;
  background:linear-gradient(135deg,var(--navy),#0b4a89 62%,var(--gold)) !important;
  color:#fff !important;
  box-shadow:0 18px 36px rgba(0,31,72,.22) !important;
}

.tw35-booking-form .timewise-slot.selected small,
.contact-form .timewise-slot.selected small {
  color:rgba(255,255,255,.78) !important;
}

.tw35-booking-form .timewise-slot.reserved,
.tw35-booking-form .timewise-slot:disabled,
.contact-form .timewise-slot.reserved,
.contact-form .timewise-slot:disabled {
  border-color:rgba(107,114,128,.16);
  background:linear-gradient(135deg,rgba(229,234,242,.9),rgba(248,250,252,.94));
  color:#8b95a5;
  box-shadow:none;
  cursor:not-allowed;
}

@media (max-width:720px) {
  .tw35-booking-form .timewise-slot-grid,
  .contact-form .timewise-slot-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* V77: validation text should read as light red while fields keep the gold highlight. */
.form-note.form-highlight,
.mini-form-note.form-highlight {
  color:#e86f7b !important;
}

/* V78: public email verification step after booking submission. */
.application-verification-panel {
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(160px,.7fr) auto;
  gap:.75rem;
  align-items:end;
  padding:.85rem;
  border:1px solid rgba(215,155,39,.26);
  border-radius:22px;
  background:
    radial-gradient(circle at top left,rgba(241,201,107,.22),transparent 38%),
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(247,250,255,.94));
  box-shadow:0 18px 42px rgba(0,31,72,.10);
}

.application-verification-panel span {
  display:block;
  color:#b58124;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.application-verification-panel strong {
  display:block;
  color:var(--navy);
  margin:.15rem 0;
}

.application-verification-panel p {
  margin:0;
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
}

.application-verification-panel label {
  display:grid;
  gap:.28rem;
  color:var(--navy);
  font-weight:900;
  font-size:.76rem;
}

.application-verification-panel input {
  min-height:46px;
  border:1px solid rgba(215,155,39,.30);
  border-radius:16px;
  background:#fff;
  color:var(--navy);
  font-size:1.08rem;
  font-weight:950;
  letter-spacing:.18em;
  text-align:center;
}

.application-verification-panel button {
  min-height:46px;
  white-space:nowrap;
  border:0;
  border-radius:16px;
  padding:0 1.15rem;
  background:
    linear-gradient(135deg,var(--navy),#0b4f8f 58%,var(--gold));
  color:#fff;
  font-weight:950;
  letter-spacing:.02em;
  box-shadow:0 16px 32px rgba(0,31,72,.18), inset 0 1px 0 rgba(255,255,255,.26);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.application-verification-panel button:hover:not(:disabled) {
  transform:translateY(-1px);
  box-shadow:0 20px 42px rgba(0,31,72,.22), inset 0 1px 0 rgba(255,255,255,.30);
}

.application-verification-panel button:disabled {
  opacity:.72;
  cursor:wait;
  transform:none;
}

.application-verification-panel .form-message {
  grid-column:1 / -1;
  margin:0;
}

@media (max-width:820px) {
  .application-verification-panel {
    grid-template-columns:1fr;
    align-items:stretch;
  }
}
