:root {
  --white: #fff;
  --danger: #d30000;
  --glass: linear-gradient(173.54deg, rgba(48, 53, 39, .25) 5.09%, rgba(255, 255, 255, .25) 126.85%);
  --glass-soft: linear-gradient(173.54deg, rgba(48, 53, 39, .22) 5.09%, rgba(45, 49, 33, .0975) 126.85%);
  --button: linear-gradient(90deg, rgba(44, 25, 0, .22) 16.35%, rgba(146, 83, 0, .22) 100%);
  --font-main: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --title-form-gap: 24px;
  --offer-small-text-size: clamp(8px, 1.9vw, 20px);
  --offer-divider-color: rgba(255, 255, 255, 0.18);
  --offer-divider-width: 1px;
  --terms-bottom-gap: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background-color: #12130a;
  background-image: url("assets/main.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

html.success-html {
  background-image: url("assets/success.jpg");
}

body {
  font-family: var(--font-main);
  color: var(--white);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  background: transparent;
}

.main-screen {
  position: relative;
  width: 100%;
  margin-top: calc(-1 * var(--safe-top));
  padding-top: var(--safe-top);
  padding-bottom: 0;
  background-color: #12130a;
  background-image: url("assets/main.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.screen {
  position: relative;
  width: 100%;
  min-height: min(177.7778vw, 1920px);
}

.screen-inner {
  position: relative;
  width: 81.4815%;
  margin: 0 auto;
}

.registration-inner {
  padding-top: min(11.1111vw, 120px);
}

.redwood-logo {
  display: block;
  width: min(49.6324vw, 536.03px);
  max-width: 61%;
  height: auto;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.registration-content {
  margin-top: min(6.8519vw, 74px);
}

.registration-content h1 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(22px, 5.5556vw, 60px);
  line-height: 1.0833;
  font-weight: 600;
  letter-spacing: -.02em;
}

.glass {
  background: var(--glass);
  border-radius: min(2.3148vw, 25px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.title-form-spacer {
  width: 100%;
  height: var(--title-form-gap);
  flex: 0 0 var(--title-form-gap);
}

.form-card {
  margin-top: 0;
  min-height: min(123.7963vw, 1337px);
  padding: min(5.7407vw, 62px) min(4.6296vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: min-height .28s ease, padding .28s ease;
}

.form-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fields-list {
  width: 100%;
}

.field {
  width: 100%;
  min-height: min(19.8148vw, 214px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: min(2.2222vw, 24px);
}

.field label {
  display: block;
  font-size: clamp(11px, 2.8704vw, 31px);
  line-height: 1.258;
  text-transform: uppercase;
  font-weight: 400;
}

.field>input,
.field>.iti>input {
  width: 100%;
  height: min(8.3333vw, 90px);
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: min(2.3148vw, 25px);
  background: #fff;
  color: #1f1b18;
  outline: none;
  box-shadow: -1px 5px 31.6px rgba(124, 101, 90, .2);
  font-size: clamp(14px, 2.5vw, 27px);
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field>input:focus,
.field>.iti>input:focus {
  box-shadow: -1px 5px 31.6px rgba(124, 101, 90, .2), 0 0 0 2px rgba(255, 255, 255, .25);
}

.field.is-invalid>input,
.field.is-invalid>.iti>input {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  min-height: min(3.5185vw, 38px);
  font-size: clamp(10px, 2.8704vw, 31px);
  line-height: 1.258;
  color: var(--danger);
  text-transform: lowercase;
  opacity: 0;
}

.field.is-invalid .field-error {
  opacity: 1;
}

.field>input:not(#phone) {
  padding: 0 4%;
}

.field>.iti {
  width: 100%;
  display: block;
}

.field>.iti>#phone {
  width: 100%;
  height: min(8.3333vw, 90px);
  min-height: 36px;
  margin: 0;
}

.field .iti__country-container {
  height: 100%;
}

.field .iti__selected-country {
  border-radius: min(2.3148vw, 25px) 0 0 min(2.3148vw, 25px);
}

.field .iti__selected-dial-code {
  color: #1f1b18;
  font-size: clamp(13px, 2.3vw, 25px);
}

.iti__dropdown-content {
  z-index: 2147483646;
  color: #1f1b18;
  font-family: var(--font-main);
}

.iti__country-list {
  color: #1f1b18;
}

.iti__search-input {
  font-family: var(--font-main);
  color: #1f1b18;
}

.submit-button {
  width: min(32.037vw, 346px);
  height: min(7.6852vw, 83px);
  min-width: 125px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--button);
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(11px, 2.8704vw, 31px);
  line-height: 1;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: .66;
  cursor: wait;
}

.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.submit-button.loading .button-label {
  display: none;
}

.submit-button.loading .spinner {
  display: block;
}

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

.form-message {
  margin: min(2vw, 20px) 0 0;
  min-height: 1em;
  text-align: center;
  font-size: clamp(10px, 2vw, 20px);
}

.form-message.error-state {
  color: #8b0000;
}

.inline-success {
  display: none;
  width: 100%;
  min-height: min(39.6296vw, 428px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(5vw, 54px);
}

.form-card.is-success {
  min-height: min(52.5407vw, 567.44px);
  padding: min(6.4815vw, 70px) min(4.6296vw, 50px);
}

.form-card.is-success .form-fields {
  display: none;
}

.form-card.is-success .inline-success {
  display: flex;
}

.checkmark {
  position: relative;
  width: min(17.0111vw, 183.72px);
  height: min(19.8556vw, 214.44px);
}

.checkmark::before {
  content: "";
  position: absolute;
  left: 38%;
  top: 7%;
  width: 33%;
  height: 70%;
  border-right: min(2.1vw, 23px) solid #fff;
  border-bottom: min(2.1vw, 23px) solid #fff;
  border-radius: 3px;
  transform: rotate(40deg);
}

.inline-success p {
  margin: 0;
  width: 78%;
  font-size: clamp(11px, 2.8704vw, 31px);
  line-height: 1.1935;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.offers-inner {
  height: calc(min(177.7778vw, 1920px) - min(11.1111vw, 120px));
  margin-top: min(11.1111vw, 120px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: min(4vw, 43px);
}

.offers-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: min(6.0185vw, 65px);
}

.offers-copy h2 {
  margin: 0;
  width: 102%;
  font-size: clamp(24px, 6.4815vw, 70px);
  line-height: 1.1286;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.offers-copy p {
  margin: min(1.8806vw, 20.31px) 0 0;
  font-size: clamp(12px, 2.963vw, 32px);
  line-height: 1.25;
}

.glass-soft {
  background: var(--glass-soft);
  border-radius: min(2.3148vw, 25px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.offers-table {
  position: relative;
  width: 100%;
  min-height: min(60.6481vw, 655px);
  overflow: visible;
  padding-top: min(8.4194vw, 90.93px);
}

.offer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: min(26.1148vw, 282.04px);
}

.offer-header {
  position: absolute;
  inset: 0 0 auto 0;
  min-height: min(8.4194vw, 90.93px);
}

.offer-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
  text-align: center;
  font-size: clamp(11px, 2.8704vw, 31px);
  line-height: 1.06;
  font-weight: 600;
  text-transform: uppercase;
}

.offer-cell+.offer-cell {
  border-left: var(--offer-divider-width) solid var(--offer-divider-color);
}

.offer-header {
  border-bottom: var(--offer-divider-width) solid var(--offer-divider-color);
}

.offer-row:not(.offer-header):not(:last-child) {
  border-bottom: var(--offer-divider-width) solid var(--offer-divider-color);
}

.offer-header .offer-cell {
  padding-top: 0;
  align-items: center;
}

.offer-header .blank {
  color: transparent;
}

.villa {
  font-weight: 500;
}

.offer-detail {
  flex-direction: column;
  gap: min(1.2vw, 13px);
}

.offer-detail strong {
  font-size: 1em;
  line-height: .97;
}

.offer-detail span {
  max-width: 90%;
  font-size: var(--offer-small-text-size);
  line-height: 1.15;
  text-transform: none;
  font-weight: 400;
}

.commission {
  position: absolute;
  top: min(6.20vw, 67px);
  width: min(21.2963vw, 230px);
  height: min(6.85vw, 74px);
  transform: rotate(-4deg) skewX(2deg);
  border-radius: 999px;
  background: var(--button);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
  z-index: 3;
}

.commission-one {
  left: 34.8%;
}

.commission-two {
  left: 69.5%;
}

.commission span {
  width: 45%;
  font-size: clamp(6px, 1.58vw, 17px);
  line-height: 1.2;
  text-align: right;
  letter-spacing: .05em;
  text-transform: lowercase;
}

.commission strong {
  font-size: clamp(19px, 5.22vw, 56px);
  line-height: 1;
}

.terms-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--safe-bottom) + var(--terms-bottom-gap));
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: clamp(11px, 2.963vw, 32px);
  line-height: 1.1875;
  color: rgba(255, 255, 255, .82);
}

@media (min-width: 1081px) {
  .screen {
    min-height: 1920px;
  }

  .offers-inner {
    height: 1800px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: 100%;
  }

  .glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .registration-inner {
    padding-top: max(min(11.1111vw, 120px), 18px);
  }
}

.language-switcher {
  position: fixed;
  top: calc(var(--safe-top) + 10px);
  right: max(var(--safe-right), 10px);
  z-index: 2147483647;
  margin: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.language-option {
  position: relative;
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.language-radio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.language-option>span {
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 38px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  transition: color .15s ease, background .15s ease;
}

.language-radio:checked+span {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.language-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .38);
  pointer-events: none;
}

html[lang="th"] body,
html[lang="th"] button,
html[lang="th"] input {
  font-family: "Thonburi", "Sukhumvit Set", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="th"] .registration-content h1,
html[lang="th"] .offers-copy h2 {
  line-height: 1.2;
  letter-spacing: 0;
}

html[lang="th"] .offer-cell {
  line-height: 1.18;
}


.success-page-body {
  min-height: 100dvh;
  background: #8a99aa;
}

.success-page {
  position: relative;
  width: min(100%, 1080px);
  min-height: 100dvh;
  margin: 0 auto;
  margin-top: calc(-1 * var(--safe-top));
  padding:
    calc(var(--safe-top) + clamp(34px, 11.1111vw, 120px)) max(var(--safe-right), 0px) max(var(--safe-bottom), 24px) max(var(--safe-left), 0px);
  background-image: url("assets/success.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  overflow: hidden;
}

.success-page-inner {
  position: relative;
  width: 81.4815%;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - clamp(58px, 13vw, 150px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-page .redwood-logo {
  flex: 0 0 auto;
}

.success-content {
  width: 100%;
  margin-top: clamp(46px, 13.3vw, 144px);
}

.success-content h1 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(22px, 5.5556vw, 60px);
  line-height: 1.0833;
  font-weight: 600;
  letter-spacing: -.02em;
}

.success-card {
  width: 100%;
  min-height: min(52.5407vw, 567.44px);
  margin-top: var(--title-form-gap);
  padding: min(6.4815vw, 70px) min(4.6296vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(6.0185vw, 65px);
}

.success-card .checkmark {
  flex: 0 0 auto;
}

.success-card p {
  margin: 0;
  width: 78%;
  font-size: clamp(11px, 2.8704vw, 31px);
  line-height: 1.1935;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

html[lang="th"] .success-content h1 {
  line-height: 1.2;
  letter-spacing: 0;
}

html[lang="th"] .success-card p {
  line-height: 1.35;
}