/* ==========================================================================
   WG Lab (WG | lab) — Standalone Booking & Pain Questionnaire Web App
   Minimalist Glassmorphism • Light Typography • 100% Mobile-First Responsive
   ========================================================================== */

:root {
  /* Brand Colors — WG Lab (#TeamWG) */
  --vf-navy: #192136;
  --vf-navy-deep: #111726;
  --vf-cobalt: #6DA0E1;
  --vf-cobalt-deep: #4A7FC4;
  --vf-cobalt-glow: rgba(109, 160, 225, 0.22);
  --vf-mist: #BCCAE0;
  --vf-ice: #EEF2F9;

  /* Glassmorphism Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-strong: rgba(255, 255, 255, 0.84);
  --glass-bg-subtle: rgba(255, 255, 255, 0.48);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-cobalt: rgba(109, 160, 225, 0.36);
  --glass-shadow: 0 18px 46px -14px rgba(25, 33, 54, 0.08), 0 4px 16px -4px rgba(25, 33, 54, 0.04);
  --glass-blur: blur(20px);

  /* Text Hierarchy */
  --text-primary: #192136;
  --text-secondary: #485675;
  --text-muted: #7685A3;
  --text-on-dark: #F7F9FC;
  --text-on-dark-muted: #BCCAE0;

  /* Typography — Light & Minimalist (No heavy bolds) */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Transitions */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 9999px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Strict Responsive Box Model */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-primary);
  background-color: #EEF2F9;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(109, 160, 225, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 90% 18%, rgba(188, 202, 224, 0.35) 0%, transparent 46%),
    radial-gradient(circle at 50% 88%, rgba(109, 160, 225, 0.16) 0%, transparent 50%),
    linear-gradient(180deg, #F5F8FD 0%, #E9EFF8 52%, #F3F6FC 100%);
  background-attachment: fixed;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: 300;
  color: inherit;
  border: none;
  background: none;
  max-width: 100%;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Subtle Topographic Ambient Pattern */
.topo-bg-pattern {
  position: relative;
}

.topo-bg-pattern::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    repeating-radial-gradient(
      circle at 15% 25%,
      transparent 0,
      transparent 38px,
      rgba(109, 160, 225, 0.07) 39px,
      transparent 40px
    );
  z-index: 0;
}

/* Container — Fluid & Responsive */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(0.85rem, 3.5vw, 2rem);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Minimalist Header — ONLY Logo & "Agendamentos"
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(245, 248, 253, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 28px -10px rgba(25, 33, 54, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.65rem;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.header-page-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2vw, 1.02rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--vf-navy);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(109, 160, 225, 0.28);
  box-shadow: 0 4px 14px -6px rgba(25, 33, 54, 0.06);
}

.header-page-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vf-cobalt);
  box-shadow: 0 0 0 3px rgba(109, 160, 225, 0.2);
}

/* ==========================================================================
   Typography Utilities (Minimalist Light/Regular)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vf-cobalt-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(109, 160, 225, 0.3);
  padding: 0.36rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.heading-display {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--vf-navy) 0%, var(--vf-cobalt-deep) 60%, var(--vf-cobalt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 400;
}

.heading-card {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.text-lead {
  font-size: clamp(0.86rem, 1.5vw, 0.96rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Main App Section & Responsive Grid Layout
   ========================================================================== */
.registration-section {
  padding-top: clamp(1.1rem, 3vw, 2.4rem);
  padding-bottom: clamp(6.5rem, 10vw, 4.5rem);
  width: 100%;
  max-width: 100%;
}

/* CRITICAL FIX FOR DEVTOOLS RESPONSIVENESS:
   Using minmax(0, 1fr) and min-width: 0 on all grid children prevents
   horizontal flex/scroll strips from forcing a wide minimum width. */
.registration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.registration-card,
.registration-info-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.registration-info-col {
  position: sticky;
  top: 88px;
}

/* Main Frosted Glass Booking Card */
.registration-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 3vw, 2.2rem);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.card-top-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--vf-cobalt-deep);
  font-weight: 400;
  display: block;
  margin-bottom: 0.18rem;
}

/* ==========================================================================
   App Segmented Step Header & Progress Bar
   ========================================================================== */
.app-step-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 0.35rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 20px -10px rgba(25, 33, 54, 0.08);
  width: 100%;
}

.app-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
}

.app-step-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.52rem 0.35rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.8vw, 0.76rem);
  font-weight: 400;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-step-tab.active {
  background: var(--vf-navy);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -4px rgba(25, 33, 54, 0.25);
}

.app-progress-track {
  height: 3px;
  background: rgba(188, 202, 224, 0.32);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.35rem 0.35rem 0.1rem;
}

.app-progress-fill {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--vf-cobalt-deep), var(--vf-cobalt));
  border-radius: 999px;
  transition: width 300ms ease;
}

/* ==========================================================================
   Form Blocks, Inputs & Grids
   ========================================================================== */
.step-block {
  margin-bottom: 1.85rem;
  scroll-margin-top: 90px;
  min-width: 0;
  width: 100%;
}

.intake-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--vf-navy);
  padding-bottom: 0.55rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(188, 202, 224, 0.42);
}

.intake-block-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.64rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(109, 160, 225, 0.15);
  color: var(--vf-cobalt-deep);
  border: 1px solid rgba(109, 160, 225, 0.32);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
  width: 100%;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(188, 202, 224, 0.55);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #93A2BE;
  font-weight: 300;
}

.form-input:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--vf-cobalt);
  box-shadow: 0 0 0 3px rgba(109, 160, 225, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
}

/* ==========================================================================
   Pain Questionnaire Chips & Intensity Pills
   ========================================================================== */
.pain-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.pain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.82rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(188, 202, 224, 0.52);
  transition: all var(--transition-fast);
  text-align: left;
  line-height: 1.3;
}

.pain-chip:hover {
  border-color: var(--vf-cobalt);
  background: rgba(255, 255, 255, 0.92);
}

.pain-chip.selected {
  background: var(--vf-navy);
  color: #FFFFFF;
  border-color: var(--vf-navy);
  font-weight: 400;
  box-shadow: 0 6px 16px -6px rgba(25, 33, 54, 0.28);
}

.pain-level-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.modality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.pain-level-pill {
  padding: 0.62rem 0.5rem;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 300;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(188, 202, 224, 0.52);
  transition: all var(--transition-fast);
  line-height: 1.25;
}

.pain-level-pill:hover {
  border-color: var(--vf-cobalt);
}

.pain-level-pill.selected {
  background: rgba(109, 160, 225, 0.18);
  color: var(--vf-navy);
  border-color: var(--vf-cobalt);
  font-weight: 400;
  box-shadow: 0 4px 14px -6px rgba(109, 160, 225, 0.35);
}

/* ==========================================================================
   Horizontal Swipeable App Date Strip & Tactile Shift Cards
   ========================================================================== */
.date-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-input-compact {
  width: auto !important;
  padding: 0.32rem 0.65rem !important;
  font-size: 0.76rem !important;
  border-radius: 10px !important;
}

.app-date-strip {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.55rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.app-date-strip::-webkit-scrollbar {
  height: 4px;
}

.app-date-strip::-webkit-scrollbar-thumb {
  background: rgba(109, 160, 225, 0.35);
  border-radius: 999px;
}

.app-date-card {
  flex: 0 0 66px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(188, 202, 224, 0.52);
  transition: all var(--transition-fast);
  user-select: none;
}

.app-date-card:hover {
  border-color: var(--vf-cobalt);
}

.app-date-card__weekday {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 400;
}

.app-date-card__day {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-block: 0.08rem;
}

.app-date-card__month {
  font-size: 0.62rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.app-date-card.selected {
  background: var(--vf-navy);
  border-color: var(--vf-navy);
  color: #FFFFFF;
  box-shadow: 0 8px 18px -6px rgba(25, 33, 54, 0.32);
  transform: translateY(-1px);
}

.app-date-card.selected .app-date-card__weekday,
.app-date-card.selected .app-date-card__month {
  color: var(--vf-mist);
}

.app-date-card.selected .app-date-card__day {
  color: #FFFFFF;
}

.app-shift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.app-shift-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0.68rem 0.75rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(188, 202, 224, 0.52);
  text-align: left;
  transition: all var(--transition-fast);
  min-width: 0;
}

.app-shift-card:hover {
  border-color: var(--vf-cobalt);
}

.app-shift-card__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-primary);
}

.app-shift-card__sub {
  font-size: 0.67rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.app-shift-card.selected {
  background: rgba(109, 160, 225, 0.18);
  border-color: var(--vf-cobalt);
  box-shadow: 0 6px 16px -6px rgba(109, 160, 225, 0.3);
}

.app-shift-card.selected .app-shift-card__title {
  color: var(--vf-navy);
}

.app-shift-card.selected .app-shift-card__sub {
  color: var(--vf-cobalt-deep);
}

/* ==========================================================================
   Buttons & Submit Bar
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-cobalt {
  background: linear-gradient(135deg, var(--vf-navy) 0%, #243252 100%);
  color: #FFFFFF;
  border: 1px solid rgba(109, 160, 225, 0.4);
  box-shadow: 0 12px 26px -8px rgba(25, 33, 54, 0.32);
}

.btn-cobalt:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px rgba(25, 33, 54, 0.4);
  border-color: var(--vf-cobalt);
}

.btn-sm {
  padding: 0.72rem 1.15rem;
  font-size: 0.78rem;
}

.icon-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.desktop-submit-row {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(188, 202, 224, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Live Intake Summary Card & Benefits Column
   ========================================================================== */
.patient-passport-card {
  background: linear-gradient(145deg, rgba(25, 33, 54, 0.96) 0%, rgba(17, 23, 38, 0.98) 100%);
  border: 1px solid rgba(109, 160, 225, 0.3);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  color: var(--text-on-dark);
  box-shadow: 0 20px 44px -14px rgba(17, 23, 38, 0.35);
  margin-top: 1.25rem;
  width: 100%;
  overflow: hidden;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.78rem;
}

.passport-full {
  grid-column: 1 / -1;
  min-width: 0;
}

.registration-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.registration-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.registration-benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(109, 160, 225, 0.16);
  color: var(--vf-cobalt-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Mobile Bottom Action Bar (App Dock)
   ========================================================================== */
.mobile-booking-dock {
  display: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 92px;
  right: 16px;
  left: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  background: rgba(25, 33, 54, 0.95);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 300;
  box-shadow: 0 14px 32px -8px rgba(17, 23, 38, 0.4);
  border: 1px solid rgba(109, 160, 225, 0.35);
  max-width: 100%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet, Mobile & Small Smartphones in DevTools)
   ========================================================================== */

/* Tablet & Mobile App View (<= 960px) */
@media (max-width: 960px) {
  .registration-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 640px;
    margin-inline: auto;
  }

  .registration-card {
    order: 1;
  }

  .registration-info-col {
    order: 2;
    position: static;
  }

  .app-shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-booking-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 1rem calc(0.72rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(188, 202, 224, 0.65);
    box-shadow: 0 -10px 28px -8px rgba(25, 33, 54, 0.12);
  }

  .mobile-booking-dock__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
  }

  .mobile-booking-dock__label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vf-cobalt-deep);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-booking-dock__summary {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--vf-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Smartphones (<= 640px) */
@media (max-width: 640px) {
  .header-inner {
    min-height: 58px;
    padding-block: 0.45rem;
  }

  .brand-logo-img {
    height: 25px;
  }

  .header-page-title {
    font-size: 0.82rem;
    padding: 0.35rem 0.78rem;
  }

  .registration-section {
    padding-top: 0.75rem;
    padding-bottom: 6.8rem;
  }

  .registration-card {
    padding: 1rem 0.9rem 1.25rem;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .pain-level-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-input,
  .form-textarea,
  select.form-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 0.75rem 0.85rem;
  }

  .pain-chip {
    font-size: 0.74rem;
    padding: 0.46rem 0.72rem;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .desktop-submit-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .desktop-submit-row .btn {
    width: 100%;
  }

  .passport-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact Smartphones (<= 400px, e.g. iPhone SE / Galaxy S8 in DevTools) */
@media (max-width: 400px) {
  .container {
    padding-inline: 0.65rem;
  }

  .registration-card {
    padding: 0.85rem 0.72rem 1.1rem;
  }

  .app-step-tab {
    font-size: 0.65rem;
    padding: 0.45rem 0.2rem;
  }

  .modality-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shift-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-booking-dock {
    padding-inline: 0.75rem;
  }

  .mobile-booking-dock .btn {
    padding: 0.68rem 0.95rem;
    font-size: 0.74rem;
  }
}
