:root {
  --navy: #071b2d;
  --navy2: #102f49;
  --cream: #f7f3ea;
  --paper: #fffdf9;
  --gold: #bd9650;
  --ink: #102538;
  --muted: #687584;
  --line: rgba(10, 35, 55, 0.13);
  --danger: #b42318;
  --success: #147a55;
  --shadow: 0 28px 80px rgba(3, 18, 31, 0.26);
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--navy);
}
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Segoe UI", sans-serif;
  background: var(--navy);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
.map-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 20, 34, 0.92),
      rgba(3, 20, 34, 0.72) 45%,
      rgba(3, 20, 34, 0.58) 70%,
      rgba(3, 20, 34, 0.74)
    ),
    linear-gradient(180deg, rgba(4, 22, 37, 0.1), rgba(3, 18, 31, 0.58)),
    url("/assets/sea-breeze-map.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.map-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 72% 35%,
    transparent 0 25%,
    rgba(3, 18, 31, 0.12) 55%,
    rgba(3, 18, 31, 0.5) 100%
  );
}
.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  width: min(1500px, 100%);
  margin: auto;
  padding: 22px clamp(20px, 4vw, 58px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(205, 172, 106, 0.75);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}
.brand-mark span {
  transform: rotate(-45deg);
  font-family: Georgia, serif;
  color: #e0c68e;
}
.site-link {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 27, 45, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(12px);
  transition: 0.18s;
}
.site-link:hover {
  border-color: #d9ba7a;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.landing {
  flex: 1;
  width: min(1500px, 100%);
  margin: auto;
  padding: 22px clamp(20px, 4vw, 58px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(560px, 0.88fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
}
.intro {
  color: white;
  max-width: 650px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(205, 172, 106, 0.64);
  border-radius: 999px;
  color: #e3ca93;
  background: rgba(7, 27, 45, 0.28);
  font-size: 12px;
  font-weight: 750;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b36f;
}
.hero-title {
  margin: 24px 0 0;
  font:
    500 clamp(48px, 5vw, 86px) / 0.98 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em {
  display: block;
  color: #d8ba7a;
  font-style: normal;
}
.hero-copy {
  max-width: 550px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}
.trust-row {
  display: flex;
  gap: 22px;
  margin-top: 29px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.trust-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-row i {
  width: 7px;
  height: 7px;
  border: 1px solid #d4b36f;
  border-radius: 50%;
}
.form-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: rgba(250, 248, 243, 0.97);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.form-card:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(10, 35, 55, 0.07);
  border-radius: 23px;
  pointer-events: none;
}
.form-inner {
  position: relative;
  padding: clamp(24px, 2.7vw, 38px);
}
.form-head {
  text-align: center;
  margin-bottom: 22px;
}
.form-head .kicker {
  color: #9a7a3f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.form-head h1,
.form-head h2 {
  margin: 7px 0 6px;
  font:
    600 clamp(30px, 3vw, 42px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.025em;
}
.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.field-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.field-group:first-child {
  grid-column: 1/-1;
}
.field-group label,
.section-label {
  display: block;
  margin: 0 0 7px;
  color: #263d50;
  font-size: 12px;
  font-weight: 800;
}
.field,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: 0;
  transition: 0.18s;
}
.field {
  height: 50px;
  padding: 0 14px;
}
.textarea {
  min-height: 78px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.5;
}
.field:focus,
.textarea:focus {
  border-color: #ae8843;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(189, 150, 80, 0.1);
}
.field[aria-invalid="true"] {
  border-color: #c63d32;
}
.error-text {
  min-height: 15px;
  margin: 4px 2px 0;
  color: var(--danger);
  font-size: 11px;
}
.form-section {
  margin-top: 14px;
  border: 0;
  padding: 0;
}
.choice-grid,
.budget-grid {
  display: grid;
  gap: 9px;
}
.choice-grid {
  grid-template-columns: 1fr 1fr;
}
.budget-grid {
  grid-template-columns: repeat(3, 1fr);
}
.choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card,
.budget-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  color: #253d50;
  font-weight: 750;
  text-align: center;
  transition: 0.16s;
}
.choice-card {
  min-height: 58px;
  padding: 10px;
  font-size: 13px;
}
.budget-card {
  min-height: 45px;
  padding: 8px;
  font-size: 11px;
}
.choice-card:hover,
.budget-card:hover {
  border-color: rgba(174, 136, 67, 0.62);
  background: #fff;
}
.choice-input:focus-visible + label {
  outline: 3px solid rgba(189, 150, 80, 0.28);
  outline-offset: 2px;
}
.choice-input:checked + label {
  border-color: #ad8743;
  background: #f7efdf;
  box-shadow: inset 0 0 0 1px rgba(173, 135, 67, 0.15);
}
.privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.privacy input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  accent-color: #9b7738;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.form-alert {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ee;
  color: var(--danger);
  font-size: 12px;
}
.form-alert.show {
  display: block;
}
.submit-btn {
  width: 100%;
  height: 54px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 13px 26px rgba(7, 27, 45, 0.2);
  transition: 0.18s;
}
.submit-btn:hover {
  background: var(--navy2);
  transform: translateY(-1px);
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 35px;
  background: rgba(250, 248, 243, 0.99);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}
.success.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(20, 122, 85, 0.25);
  background: #e9f5ef;
  color: var(--success);
  font-size: 30px;
}
.success h3 {
  margin: 0;
  font:
    600 30px Georgia,
    serif;
}
.success p {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.6;
}
.secondary-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 1023px) {
  .landing {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }
  .intro {
    text-align: center;
    margin: auto;
  }
  .hero-copy {
    margin: auto;
  }
  .trust-row {
    justify-content: center;
  }
  .form-card {
    margin: auto;
  }
  .map-bg {
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 20, 34, 0.88),
        rgba(3, 20, 34, 0.72) 40%,
        rgba(3, 20, 34, 0.78)
      ),
      url("/assets/sea-breeze-map.webp");
    background-position: center top;
  }
}

/* V3: restrained, contemporary form language and entrance motion. */
.map-bg {
  animation: map-reveal 1.15s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.topbar {
  animation: topbar-enter 0.7s 0.08s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.eyebrow {
  cursor: default !important;
  user-select: none;
  animation: content-enter 0.7s 0.18s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.eyebrow:hover {
  background: rgba(7, 27, 45, 0.28);
  border-color: rgba(205, 172, 106, 0.64);
  transform: none;
}
.hero-title {
  font-family: Arial, "Segoe UI", sans-serif;
  font-weight: 320;
  letter-spacing: -0.065em;
  animation: content-enter 0.78s 0.25s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.hero-title em {
  font-weight: 620;
  letter-spacing: -0.055em;
}
.hero-rule,
.hero-copy,
.trust-row {
  animation: content-enter 0.72s 0.34s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.site-link b {
  transition: transform 0.2s ease;
}
.site-link:hover b {
  transform: translate(2px, -2px);
}
.form-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(247, 247, 244, 0.975);
  box-shadow: 0 28px 80px rgba(2, 17, 29, 0.34);
  animation: form-enter 0.82s 0.18s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}
.form-card::before {
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    transparent 7%,
    #c39e58 50%,
    transparent 93%
  );
}
.form-head {
  text-align: left;
}
.form-head .kicker {
  color: #8d6b31;
  font-weight: 750;
  letter-spacing: 0.2em;
}
.form-head h1,
.form-head h2 {
  font-family: Arial, "Segoe UI", sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -0.045em !important;
}
.field-group label,
.section-label {
  color: #263f51;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.field,
.textarea {
  border-color: #d8dfe1;
  border-radius: 8px !important;
  background: #fcfcfb;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.field:hover,
.textarea:hover {
  border-color: #bdc7cb;
}
.field:focus,
.textarea:focus {
  border-color: #9c7a3e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(189, 150, 80, 0.12);
}
.choice-card,
.budget-card {
  position: relative;
  border-color: #d8dfe1;
  border-radius: 8px !important;
  background: #fcfcfb;
  color: #233d50;
  font-weight: 680;
  box-shadow: none;
}
.choice-card {
  justify-content: flex-start;
  padding-left: 35px !important;
}
.choice-card::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #aab5ba;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff inset;
}
.choice-input:checked + .choice-card,
.choice-input:checked + .budget-card {
  border-color: #0b2a40;
  background: #0b2a40;
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 27, 45, 0.12);
}
.choice-input:checked + .choice-card::before {
  border-color: #d9bd83;
  background: #d9bd83;
  box-shadow: 0 0 0 3px #0b2a40 inset;
}
.choice-input:focus-visible + .choice-card,
.choice-input:focus-visible + .budget-card {
  outline: 3px solid rgba(189, 150, 80, 0.2);
  outline-offset: 2px;
}
.privacy {
  color: #63727d;
}
.privacy input {
  accent-color: #0b2a40;
}
.submit-btn {
  border-radius: 8px !important;
  letter-spacing: -0.01em;
}
.submit-btn span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.submit-btn:hover span {
  transform: translateX(4px);
}

@keyframes map-reveal {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.01);
  }
}
@keyframes topbar-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes form-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .form-card {
    border-radius: 18px;
  }
  .form-card::before {
    inset: 0 auto auto 0;
    border-radius: 0;
  }
}

/* V5: the page stays fixed; only the form body scrolls. */
.form-card,
.form-inner,
#registrationForm {
  min-height: 0;
}
.form-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#registrationForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.form-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b89a60 transparent;
  padding: 1px 10px 8px 0;
}
.form-scroll::-webkit-scrollbar {
  width: 6px;
}
.form-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b89a60;
}
.form-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.field-group label small {
  display: block;
  margin-top: 2px;
  color: #76838b;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}
.option-grid {
  display: grid;
  gap: 7px;
}
.option-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.option-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.option-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.option-grid-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.room-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.form-section-pair {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 16px;
}
.form-section-pair > div {
  min-width: 0;
}
.option-grid .budget-card {
  height: 36px;
  min-height: 36px;
  padding: 5px 7px;
}
#registrationForm > .submit-btn {
  flex: 0 0 47px;
  margin-top: 9px;
}

@media (min-width: 1024px) {
  .form-card {
    height: min(710px, calc(100dvh - 88px));
    max-width: 760px;
  }
  .form-head {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 1023px) {
  .form-card {
    height: min(760px, calc(100dvh - 28px));
  }
  .option-grid-5,
  .option-grid-7,
  .room-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-card {
    width: 100%;
    height: calc(100dvh - 28px);
  }
  .option-grid-3,
  .option-grid-5,
  .option-grid-7,
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-section-pair {
    grid-template-columns: 1fr;
  }
}

/* V7: dynamic rental choices and expanded apartment preferences. */
.conditional-section[hidden] {
  display: none !important;
}
.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-group > label {
  min-height: 33px;
}
.field-group label small {
  display: block;
  min-height: 0;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding-top: 15px;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .site-link {
    min-height: 40px;
    padding: 0 13px;
  }
  .landing {
    padding: 18px 14px 24px;
    gap: 25px;
  }
  .intro {
    padding: 8px 7px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero-title {
    font-size: clamp(39px, 13vw, 55px);
    margin-top: 17px;
  }
  .hero-copy {
    font-size: 13px;
    line-height: 1.65;
  }
  .trust-row {
    display: none;
  }
  .form-card {
    border-radius: 23px;
  }
  .form-card:before {
    inset: 6px;
    border-radius: 18px;
  }
  .form-inner {
    padding: 22px 17px;
  }
  .field-stack {
    grid-template-columns: 1fr;
  }
  .field-group:first-child {
    grid-column: auto;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .budget-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-head {
    margin-bottom: 18px;
  }
  .form-head h1,
  .form-head h2 {
    font-size: 30px;
  }
  .choice-card {
    font-size: 12px;
  }
  .budget-card {
    font-size: 10px;
  }
}
@media (max-width: 380px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .budget-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-link span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* V2: compact luxury layout that fits a desktop viewport without scrolling. */
.eyebrow {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}
.eyebrow:focus-visible {
  outline: 3px solid rgba(224, 198, 142, 0.32);
  outline-offset: 4px;
}
.hero-rule {
  width: 68px;
  height: 2px;
  margin: 20px 0 17px;
  border-radius: 999px;
  background: #c8a35e;
}

@media (min-width: 1024px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  .shell {
    height: 100dvh;
    min-height: 0;
  }
  .topbar {
    flex: 0 0 58px;
    padding-top: 12px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .site-link {
    min-height: 40px;
    padding-inline: 15px;
  }
  .landing {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 14px;
    grid-template-columns: minmax(360px, 0.82fr) minmax(620px, 1fr);
    gap: clamp(34px, 5vw, 78px);
  }
  .intro {
    max-width: 590px;
  }
  .hero-title {
    margin-top: 18px;
    font-size: clamp(48px, 4.35vw, 72px);
    line-height: 0.96;
  }
  .hero-copy {
    max-width: 510px;
    font-size: 14px;
    line-height: 1.62;
  }
  .trust-row {
    margin-top: 20px;
    gap: 17px;
    font-size: 10px;
  }
  .form-card {
    max-width: 700px;
    border-radius: 24px;
  }
  .form-card::before {
    inset: 6px;
    border-radius: 19px;
  }
  .form-inner {
    padding: 20px 24px;
  }
  .form-head {
    margin-bottom: 13px;
  }
  .form-head .kicker {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  .form-head h1,
  .form-head h2 {
    margin: 4px 0 3px;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.035em;
  }
  .form-head p {
    font-size: 11px;
  }
  .field-stack {
    grid-template-columns: 1.1fr 0.95fr 0.95fr;
    gap: 9px;
  }
  .field-group:first-child {
    grid-column: auto;
  }
  .field-group label,
  .section-label {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .field {
    height: 42px;
    border-radius: 10px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .error-text {
    min-height: 9px;
    margin-top: 1px;
    font-size: 9px;
  }
  .form-section {
    margin-top: 7px;
  }
  .choice-grid,
  .budget-grid {
    gap: 7px;
  }
  .choice-card {
    min-height: 43px;
    padding: 7px;
    border-radius: 10px;
    font-size: 11px;
  }
  .budget-card {
    min-height: 36px;
    padding: 5px;
    border-radius: 9px;
    font-size: 10px;
  }
  .textarea {
    min-height: 52px;
    max-height: 62px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 11px;
  }
  .privacy {
    margin-top: 7px;
    gap: 7px;
    font-size: 9px;
    line-height: 1.35;
  }
  .privacy input {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .submit-btn {
    height: 45px;
    margin-top: 7px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 10px 22px rgba(7, 27, 45, 0.18);
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .topbar {
    flex-basis: 50px;
    padding-top: 8px;
  }
  .landing {
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .hero-title {
    font-size: clamp(44px, 4vw, 62px);
  }
  .trust-row {
    display: none;
  }
  .form-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .form-head {
    margin-bottom: 9px;
  }
  .form-head p {
    display: none;
  }
  .textarea {
    min-height: 44px;
    max-height: 44px;
  }
}

@media (max-width: 1023px) {
  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Final V5 precedence for the fixed form viewport. */
.form-card,
.form-inner,
#registrationForm {
  min-height: 0;
}
.form-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#registrationForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.form-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#registrationForm > .submit-btn {
  flex: 0 0 47px;
  height: 47px;
  margin-top: 9px;
}

@media (min-width: 1024px) {
  .form-card {
    width: 760px;
    max-width: 760px;
    height: min(710px, calc(100dvh - 88px));
  }
}

@media (max-width: 1023px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  .shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .topbar {
    flex: 0 0 58px;
  }
  .landing {
    min-height: 0;
    display: block;
    padding: 8px 14px 14px;
  }
  .intro {
    display: none;
  }
  .form-card {
    width: 100%;
    max-width: 760px;
    height: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .form-card {
    height: 100%;
    border-radius: 12px;
  }
  .form-card::before {
    inset: 0 auto auto 0;
    border-radius: 0;
  }
}

/* Keep the V3 card edge above the earlier compact/mobile sizing rules. */
.form-card {
  border-radius: 18px;
}
.form-card::before {
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border: 0;
  border-radius: 0;
}

/* V4: neutral typography and a quieter, professional form surface. */
body,
button,
input,
textarea,
select {
  font-family: Arial, "Segoe UI", sans-serif;
}
.hero-title {
  max-width: 650px;
  font-family: Arial, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-title em {
  margin-top: 5px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.hero-copy {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.form-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: rgba(250, 250, 248, 0.98);
  box-shadow: 0 25px 65px rgba(2, 17, 29, 0.3);
}
.form-card::before {
  height: 3px;
  background: linear-gradient(90deg, #9d7738 0%, #dfc180 48%, #9d7738 100%);
}
.form-head {
  position: relative;
  padding-bottom: 11px;
  border-bottom: 1px solid #e0e4e5;
  text-align: left;
}
.form-head h1,
.form-head h2 {
  margin: 0 0 4px !important;
  font-family: Arial, "Segoe UI", sans-serif !important;
  font-size: 27px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
}
.form-head p {
  margin: 0;
  color: #6b7880;
}
.field-group label,
.section-label {
  font-weight: 600;
  letter-spacing: 0;
}
.field,
.textarea,
.choice-card,
.budget-card {
  border-radius: 6px !important;
  background: #fff;
}
.choice-card,
.budget-card {
  font-weight: 600;
}
.choice-input:checked + .choice-card,
.choice-input:checked + .budget-card {
  border-color: #12344b;
  background: #12344b;
  box-shadow: none;
}
.submit-btn {
  border-radius: 6px !important;
  background: #08263b;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(7, 27, 45, 0.16);
}
.eyebrow {
  font-weight: 600;
}

@media (min-width: 1024px) {
  .form-card {
    max-width: 730px;
    border-radius: 12px;
  }
  .form-inner {
    padding: 20px 25px;
  }
}

/* V6 definitive form layout: stable focus, aligned fields, no empty tail. */
.form-card {
  height: min(680px, calc(100dvh - 90px));
}
.form-inner {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
#registrationForm {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 47px;
  overflow: hidden;
}
.form-scroll {
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
#registrationForm > .submit-btn {
  width: 100%;
  height: 47px;
  min-height: 47px;
  margin: 9px 0 0;
  align-self: end;
}
.field-stack {
  align-items: end;
}
.field-group > label {
  min-height: 29px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.field-group label small {
  min-height: 11px;
  margin-top: 1px;
  white-space: nowrap;
}
.choice-grid > div,
.budget-grid > div,
.option-grid > div,
.room-grid > div {
  position: relative;
}
.choice-input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}
.choice-input:focus-visible + label {
  outline: 3px solid rgba(189, 150, 80, 0.3);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .form-card {
    width: 730px;
    max-width: 730px;
  }
}

@media (max-width: 1023px) {
  .form-card {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .field-group > label {
    min-height: 0;
  }
  .field-group label small {
    white-space: normal;
  }
}
