:root {
  --bg-gray: #ececec;
  --body-ink: #121212;
  --form-border: #8f8f8f;
  --field-tint: #e3e8bc;
  --submit-cyan: #42afe3;
  --golf-blue: #173a66;
  --golf-green: #00ad57;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--body-ink);
  background: var(--bg-gray);
}

.app,
.screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.screen-form {
  background: var(--bg-gray);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(0.55rem, 1.1vw, 0.95rem) clamp(0.8rem, 1.4vw, 1.2rem) 0.9rem;
  overflow-y: auto;
}

.form-shell {
  width: clamp(262px, 30vw, 380px);
}

h1 {
  margin: 0 0 11px;
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  color: #242424;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 4px;
  font-size: clamp(10.4px, 0.82vw, 12.4px);
  font-weight: 700;
  line-height: 1.28;
}

p strong {
  font-weight: 800;
}

.editorial-line {
  font-style: italic;
  margin-bottom: 4px;
}

.outro {
  margin-bottom: 10px;
}

form {
  margin: 0;
}

label {
  display: block;
  margin: 0 0 3px;
  font-size: clamp(9.8px, 0.78vw, 11.7px);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  height: clamp(22px, 1.8vw, 28px);
  margin: 0 0 clamp(6px, 0.55vw, 9px);
  padding: 2px clamp(7px, 0.55vw, 10px);
  border: 1px solid var(--form-border);
  border-radius: 2px;
  color: #1a1a1a;
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 500;
}

input[type="text"],
input[type="email"] {
  background: var(--field-tint);
}

select {
  appearance: none;
  background: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #5f5f5f 50%),
    linear-gradient(135deg, #5f5f5f 50%, transparent 50%);
  background-position: calc(100% - 12px) 9px, calc(100% - 8px) 9px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 20px;
}

select::-ms-expand {
  display: none;
}

fieldset {
  border: 0;
  margin: clamp(5px, 0.5vw, 8px) 0 clamp(8px, 0.75vw, 12px);
  padding: 0;
}

.check {
  margin: 0 0 clamp(3px, 0.35vw, 5px);
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.3vw, 5px);
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 700;
  line-height: 1.2;
}

.check input[type="checkbox"] {
  width: clamp(10px, 0.85vw, 13px);
  height: clamp(10px, 0.85vw, 13px);
  margin: 0;
}

.submit-btn {
  width: 100%;
  height: clamp(19px, 1.55vw, 25px);
  border: 0;
  border-radius: 1px;
  background: var(--submit-cyan);
  color: #fff;
  font-size: clamp(8px, 0.68vw, 10px);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.screen-thankyou {
  background: var(--golf-blue);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.screen-thankyou::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: clamp(12px, 1.7vw, 18px);
  background: var(--golf-green);
}

.thankyou-wrap {
  width: min(100%, 760px);
  text-align: center;
  padding-top: clamp(24px, 4.2vw, 46px);
}

.brand {
  margin: 0 0 clamp(34px, 6.2vw, 64px);
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-size: clamp(108px, 19vw, 210px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: 0.018em;
}

.screen-thankyou p {
  margin: 0 0 clamp(34px, 6.6vw, 66px);
  font-size: clamp(10px, 1.08vw, 12px);
  font-weight: 500;
}

#returnBtn {
  width: clamp(158px, 15vw, 220px);
  height: clamp(24px, 2vw, 30px);
  border: 0;
  border-radius: 0;
  background: var(--golf-green);
  color: #fff;
  font-size: clamp(8px, 0.75vw, 10px);
  font-weight: 700;
  letter-spacing: 0.09em;
  cursor: pointer;
}

.offer-embed-section {
  width: min(92vw, 520px);
  margin: clamp(22px, 3vw, 32px) auto 0;
  position: relative;
}

.adpx-embed {
  width: 100%;
  min-height: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(4, 13, 29, 0.22);
  overflow: hidden;
}

.adpx-embed:empty {
  min-height: 120px;
}

.offer-overlay-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(217, 222, 229, 0.95);
  color: #1e2935;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.offer-embed-section.modal-phase {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.offer-embed-section.modal-phase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 29, 0.58);
}

.offer-embed-section.modal-phase .adpx-embed {
  position: relative;
  width: min(94vw, 760px);
  min-height: 180px;
  border-radius: 12px;
  background: #f3f5f7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.offer-embed-section.modal-phase .offer-overlay-close {
  display: inline-grid;
  place-items: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .form-shell {
    width: min(100%, 340px);
  }

  h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  p {
    font-size: 11px;
    line-height: 1.33;
  }

  label {
    font-size: 11px;
  }

  input[type="text"],
  input[type="email"],
  select {
    height: 36px;
    font-size: 13px;
  }

  .check {
    font-size: 12px;
    margin-bottom: 5px;
    gap: 6px;
  }

  .check input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  .submit-btn {
    height: 34px;
    font-size: 11px;
  }

  #returnBtn {
    height: 34px;
    font-size: 10px;
    width: min(180px, 78vw);
  }

  .offer-embed-section {
    width: min(92vw, 420px);
    margin-top: 20px;
  }

  .adpx-embed {
    min-height: 150px;
    border-radius: 10px;
  }

  .offer-embed-section.modal-phase {
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .offer-embed-section.modal-phase .adpx-embed {
    width: min(96vw, 560px);
    margin: 0;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
  }

  .offer-overlay-close {
    top: max(8px, env(safe-area-inset-top, 8px));
    right: max(8px, env(safe-area-inset-right, 8px));
  }
}
