
    :root {
      --brown: #6f5427;
      --dark: #4a3928;
      --gold: #a78445;
      --cream: #f5efe8;
      --paper: #fffdfb;
      --ink: #4b3929;
      --muted: #8a8179;
      --line: #e8e1da;
      --soft: #f7f3ef;
      --header: 68px;
      --font: 'Source Serif 4', serif;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      min-height: 100vh;
      min-height: 100dvh;
      background: var(--cream);
      color: var(--ink);
      font-family: var(--font);
      font-weight: 500;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body.menu-open {
      overflow: hidden;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
    }

    [hidden] {
      display: none !important;
    }

    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }

    /* Layout Components */
    .app-shell {
      /* width: min(1320px, 100%); */
      min-height: 100vh;
      min-height: 100dvh;
      margin: auto;
      background: var(--paper);
      box-shadow: 0 12px 36px rgba(74, 57, 40, .08);
      overflow: clip;
    }

    /* Registration Main Grid */
    .registration-layout {
      display: grid;
      grid-template-columns: minmax(0, 46.35%) minmax(0, 53.65%);
      min-height: calc(100dvh - var(--header));
    }

    .visual-panel {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      min-height: 640px;
      background: linear-gradient(180deg, rgba(32, 26, 21, .18), rgba(20, 17, 15, .76)),
                  url('https://images.unsplash.com/photo-1510798831971-661eb04b3739?auto=format&fit=crop&w=1400&q=88') center/cover no-repeat;
      transition: opacity .18s ease;
    }

    .visual-panel.is-changing {
      opacity: .78;
    }

    .visual-copy {
      position: absolute;
      left: clamp(30px, 4vw, 52px);
      right: clamp(30px, 4vw, 52px);
      bottom: clamp(34px, 5vw, 56px);
      color: #fff;
      text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    }

    .visual-title {
      max-width: 520px;
      margin: 0;
      font-size: clamp(32px, 3.4vw, 46px);
      line-height: 1.03;
      font-weight: 600;
      letter-spacing: -.7px;
    }

    .visual-rule {
      width: 78px;
      height: 2px;
      margin: 22px 0 20px;
      background: #c49a3f;
    }

    .visual-sub {
      max-width: 500px;
      margin: 0;
      color: rgba(255, 255, 255, .82);
      font-size: 13px;
      line-height: 1.62;
    }

    .wizard-panel {
      background: var(--paper);
      padding: clamp(34px, 4vw, 54px) clamp(30px, 4.7vw, 64px) 42px;
      overflow: auto;
      min-width: 0;
    }

    .wizard-inner {
      width: min(100%, 720px);
      min-height: 100%;
      margin: auto;
      display: flex;
      flex-direction: column;
    }

    /* Progress Tracker */
    .progress-track {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-bottom: clamp(28px, 4vw, 42px);
    }

    .progress-line,
    .progress-fill {
      position: absolute;
      top: 14px;
      left: calc(12.5% + 14px);
      height: 2px;
      border-radius: 2px;
    }

    .progress-line {
      right: calc(12.5% + 14px);
      background: #ded9d4;
    }

    .progress-fill {
      width: 0;
      background: #5a4630;
      transition: width .35s ease;
    }

    .step-node {
      position: relative;
      z-index: 2;
      text-align: center;
    }

    .step-dot {
      width: 29px;
      height: 29px;
      margin: 0 auto 8px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid #e5e0db;
      background: #eeeae6;
      color: #a9a39d;
      font-size: 11px;
      font-weight: 700;
      transition: .2s;
    }

    .step-node.active .step-dot {
      background: #7b6334;
      border-color: #7b6334;
      color: #fff;
      transform: scale(1.06);
    }

    .step-node.completed .step-dot {
      background: #4a3928;
      border-color: #4a3928;
      color: #fff;
    }

    .step-label {
      color: #8c8279;
      font-size: 9px;
      line-height: 1.15;
      letter-spacing: .5px;
      font-weight: 700;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .step-node.active .step-label,
    .step-node.completed .step-label {
      color: #6c5a3f;
    }

    /* Form Steps */
    .wizard-step {
      display: none;
      animation: stepIn .3s ease both;
    }

    .wizard-step.active {
      display: block;
    }

    @keyframes stepIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    .step-heading {
      margin: 0 0 6px;
      font-size: clamp(27px, 2.5vw, 34px);
      line-height: 1.08;
      font-weight: 700;
      letter-spacing: -.45px;
    }

    .step-intro {
      margin: 0;
      color: #898079;
      font-size: 13px;
      line-height: 1.5;
    }

    .account-copy {
      margin-bottom: clamp(34px, 6vh, 64px);
    }

    .field-stack,
    .compact-stack,
    .guest-fields {
      display: grid;
      gap: 14px;
    }

    .control {
      width: 100%;
      min-height: 47px;
      border: 1px solid #ded8d2;
      border-radius: 9px;
      background: #fff;
      padding: 0 14px;
      color: #4a4038;
      font-size: 13px;
      outline: 0;
      transition: .18s;
    }

    .control:focus {
      border-color: #9a7f54;
      box-shadow: 0 0 0 3px rgba(122, 98, 52, .12);
    }

    textarea.control {
      min-height: 78px;
      padding: 11px 13px;
      resize: vertical;
      line-height: 1.45;
    }

    select.control {
      appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, #6d635b 50%),
                        linear-gradient(135deg, #6d635b 50%, transparent 50%);
      background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
      background-size: 5px 5px;
      background-repeat: no-repeat;
      padding-right: 34px;
    }

    /* Buttons and Actions */
    .primary-action {
      border: 1px solid var(--brown);
      border-radius: 8px;
      background: var(--brown);
      color: #fff;
      min-height: 46px;
      padding: 10px 24px;
      font-size: 12px;
      font-weight: 700;
      transition: .18s;
    }

    .primary-action:hover {
      background: #5e4723;
      border-color: #5e4723;
      transform: translateY(-1px);
    }

    .secondary-action {
      border: 0;
      background: transparent;
      padding: 10px 0;
      color: #675c54;
      font-size: 12px;
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .step1-actions {
      margin-top: clamp(38px, 7vh, 72px);
    }

    .step1-actions .primary-action {
      width: 100%;
    }

    .signin-line {
      margin-top: 16px;
      text-align: center;
      color: #7f766f;
      font-size: 11.5px;
    }

    .signin-line a {
      font-weight: 700;
    }

    /* Role Selection Grid */
    .role-copy {
      margin-bottom: 34px;
    }

    .role-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      margin-bottom: 34px;
    }

    .role-card {
      border: 1px solid #ded7d0;
      border-radius: 13px;
      background: #fff;
      padding: 14px;
      cursor: pointer;
      transition: .2s;
    }

    .role-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(75, 57, 41, .08);
    }

    .role-card.selected {
      border: 2px solid #8a7041;
      padding: 13px;
      box-shadow: 0 5px 14px rgba(91, 69, 36, .08);
    }

    .role-image {
      width: 100%;
      aspect-ratio: 1.45/1;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 12px;
    }

    .role-card h3 {
      margin: 0 0 5px;
      font-size: 16px;
    }

    .role-card p {
      margin: 0;
      color: #847b73;
      font-size: 11.5px;
      line-height: 1.4;
    }

    .action-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
    }

    .action-row .primary-action {
      min-width: 137px;
    }

    /* Details Step Controls */
    .details-copy {
      margin-bottom: 28px;
    }

    .details-grid,
    .guest-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
      align-items: start;
    }

    .field-label {
      display: block;
      margin: 0 0 6px;
      color: #6f655d;
      font-size: 10.5px;
      font-weight: 700;
    }

    .upload-box {
      min-height: 172px;
      border: 1.5px dashed #d8d0c8;
      border-radius: 12px;
      background: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 16px;
      cursor: pointer;
      transition: .2s;
    }

    .upload-box:hover,
    .upload-box.drag {
      border-color: #a98c5b;
      background: #fffaf3;
    }

    .upload-box i {
      margin-bottom: 9px;
      color: #81735e;
      font-size: 25px;
    }

    .upload-title {
      font-size: 11.5px;
      font-weight: 700;
    }

    .upload-help {
      margin-top: 4px;
      font-size: 9.5px;
      line-height: 1.4;
      color: #a0978f;
    }

    .form-error {
      min-height: 18px;
      margin-top: 8px;
      color: #a54e46;
      font-size: 10.5px;
    }

    .control.field-invalid {
      border-color: #a54e46 !important;
    }

    .amenities-wrap {
      margin-top: 16px;
    }

    .check-list {
      display: grid;
      gap: 8px;
    }

    .check-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      cursor: pointer;
    }

    .check-item input {
      accent-color: #7b6334;
      width: 16px;
      height: 16px;
    }

    .details-actions {
      margin-top: 28px;
      padding-right: 78px;
    }

    .guest-note {
      margin-top: 16px;
    }

    /* Step 4 Success Screen */
    .success-step {
      text-align: center;
      padding-top: clamp(46px, 8vh, 84px);
    }

    .success-icon {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      margin: 0 auto 30px;
      background: #7b6334;
      color: #fff;
      font-size: 26px;
      box-shadow: 0 0 0 12px #f2eadb;
    }

    .success-copy {
      max-width: 470px;
      margin: 17px auto 0;
      color: #7f766f;
      font-size: 13px;
      line-height: 1.55;
    }

    .success-actions {
      width: min(100%, 550px);
      margin: 56px auto 0;
      display: grid;
      gap: 10px;
    }

    .outline-action {
      min-height: 44px;
      border: 1.5px solid #8b7042;
      border-radius: 8px;
      background: #fff;
      color: #6d552d;
      font-size: 12px;
      font-weight: 700;
    }

    /* Accessibility Utilities */
    .sr-only,
    .status-live {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    /* Media Queries */
    @media (max-width: 1120px) {
      .registration-layout {
        grid-template-columns: 44% 56%;
      }
      .wizard-panel {
        padding-inline: 34px;
      }
    }

    @media (max-width: 991.98px) {
      :root {
        --header: 64px;
      }
      .registration-layout {
        grid-template-columns: 1fr;
        min-height: 0;
      }
      .visual-panel {
        min-height: clamp(380px, 55vw, 520px);
      }
      .wizard-panel {
        overflow: visible;
        padding: 42px clamp(22px, 6vw, 54px) 54px;
      }
    }

    @media (max-width: 767.98px) {
      /* .brand img {
        width: 40px;
        height: 40px;
      } */
      .brand-name {
        font-size: 15px;
      }
      .role-grid,
      .details-grid,
      .guest-grid {
        grid-template-columns: 1fr;
      }
      .role-image {
        aspect-ratio: 1.8/1;
        max-height: 240px;
      }
      .details-actions {
        padding-right: 68px;
      }
    }

    @media (max-width: 640px) {
      :root {
        --header: 60px;
      }
      .visual-panel {
        min-height: 350px;
      }
      .visual-copy {
        left: 22px;
        right: 22px;
        bottom: 28px;
      }
      .visual-title {
        font-size: clamp(29px, 8.5vw, 36px);
      }
      .visual-sub {
        font-size: 11.5px;
      }
      .wizard-panel {
        padding: 32px 16px 42px;
      }
      .step-label {
        font-size: 7.5px;
        letter-spacing: .2px;
      }
      .step-heading {
        font-size: 27px;
      }
      .role-grid {
        gap: 14px;
      }
      .action-row .primary-action {
        min-width: 125px;
      }
    }

    @media (max-width: 420px) {
      .brand-name {
        display: none;
      }
      .header-right {
        gap: 5px;
      }
      .step-label {
        font-size: 6.7px;
      }
      .register-top {
        padding-inline: 11px;
      }
    }

    @media (max-height: 720px) and (min-width: 992px) {
      .site-header {
        position: relative;
      }
      .registration-layout {
        min-height: 620px;
      }
      .wizard-panel {
        padding-top: 30px;
      }
      .account-copy {
        margin-bottom: 32px;
      }
      .step1-actions {
        margin-top: 34px;
      }
      .role-image {
        max-height: 145px;
      }
      .upload-box {
        min-height: 140px;
      }
      .success-step {
        padding-top: 40px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }
    }


    /* Role-skipped state: 3 visible nodes instead of 4
   (used when ?role=host/guest presets the role and
   Step 2 "Choose Role" is hidden) */
.progress-track.role-skipped {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-track.role-skipped .progress-line,
.progress-track.role-skipped .progress-fill {
  left: calc(16.667% + 14px);
}

.progress-track.role-skipped .progress-line {
  right: calc(16.667% + 14px);
}
.date-field-group {
  display: grid;
  gap: 6px;
}

.date-input-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px 0 14px;
}

.date-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 45px;
  font-size: 13px;
  color: #4a4038;
  -webkit-appearance: none;
  appearance: none;
}

/* Stretch the native picker trigger over the whole row so tapping
   anywhere opens the date picker, but keep it invisible since we
   draw our own calendar icon */
.date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.date-field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #81735e;
  pointer-events: none;
}
.preferred-date-wrap {
  position: relative;
  width: 100%;
}

.preferred-date-input {
  position: relative;
  z-index: 1;
  background: transparent;
  cursor: pointer;
}


.preferred-date-input:invalid::-webkit-datetime-edit {
  color: transparent;
}

.preferred-date-placeholder {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8179;
  font-size: 13px;
  pointer-events: none;
  z-index: 0;
}

/* JS toggles this based on the input's real value — needed because
   iOS renders its own placeholder text inside the native control,
   which :valid/::-webkit-datetime-edit can't reach. */
.preferred-date-wrap.has-value .preferred-date-placeholder {
  display: none;
}