:root {
  --bg: #070708;
  --panel: rgba(16, 16, 19, 0.94);
  --panel-border: rgba(212, 176, 103, 0.18);
  --gold: #d4b067;
  --gold-soft: rgba(212, 176, 103, 0.16);
  --text: #f7f3eb;
  --muted: rgba(247, 243, 235, 0.72);
  --field: rgba(255, 255, 255, 0.045);
  --field-border: rgba(255, 255, 255, 0.09);
  --danger: #ff8f8f;
  --success: #d6b163;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(212, 176, 103, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(212, 176, 103, 0.06), transparent 25%),
    linear-gradient(180deg, #0b0b0d 0%, #050506 100%);
}

.page-shell {
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(26px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.app-card {
  width: min(100%, 470px);
  background: linear-gradient(180deg, rgba(20, 20, 24, 0.98), rgba(9, 9, 11, 0.98));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212, 176, 103, 0.09), transparent 18%, transparent 82%, rgba(212, 176, 103, 0.04));
  pointer-events: none;
}

.screen {
  display: none;
  padding: 28px 20px 22px;
  position: relative;
}

.screen.active { display: block; }

.hero {
  margin-bottom: 20px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(212, 176, 103, 0.26), rgba(212, 176, 103, 0.08));
  border: 1px solid rgba(212, 176, 103, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 30px rgba(0,0,0,0.36);
  margin-bottom: 14px;
}

.brand-name {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
}

h1, h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 3.15rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(2.3rem, 7vw, 3rem);
}

.hero-copy,
.thank-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.section-label {
  margin: 22px 0 12px;
  padding-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid-single {
  grid-template-columns: 1fr;
}

.field-full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(247, 243, 235, 0.9);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  padding: 0 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder {
  color: rgba(247, 243, 235, 0.34);
}

input:focus,
select:focus {
  border-color: rgba(212, 176, 103, 0.56);
  box-shadow: 0 0 0 4px rgba(212, 176, 103, 0.12);
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 4px),
    calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

option {
  color: #111;
}

.summary-card {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212, 176, 103, 0.17);
  background: linear-gradient(180deg, rgba(212, 176, 103, 0.08), rgba(255,255,255,0.03));
}

.summary-head {
  margin-bottom: 10px;
}

.summary-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.summary-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  color: rgba(247, 243, 235, 0.9);
}

.summary-row + .summary-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.summary-row strong {
  font-size: 1rem;
}

.total-row strong {
  color: var(--gold);
  font-size: 1.22rem;
}

.consent-wrap {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  margin-top: 18px;
  padding: 14px 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(212, 176, 103, 0.16);
  background: rgba(255,255,255,0.03);
  color: rgba(247, 243, 235, 0.9);
  cursor: pointer;
  user-select: none;
}

.consent-wrap input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(212, 176, 103, 0.42);
  background: rgba(255,255,255,0.04);
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.consent-copy {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(247, 243, 235, 0.95);
}

.consent-wrap:hover .consent-box {
  border-color: rgba(212, 176, 103, 0.62);
}

.consent-wrap input:focus + .consent-box {
  box-shadow: 0 0 0 4px rgba(212, 176, 103, 0.12);
}

.consent-wrap input:checked + .consent-box {
  background: linear-gradient(180deg, #deb968 0%, #b48b3a 100%);
  border-color: rgba(212, 176, 103, 0.95);
}

.consent-wrap input:checked + .consent-box::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #18130a;
  border-bottom: 2px solid #18130a;
  transform: rotate(40deg);
}

.status-wrap {
  min-height: 22px;
  margin-top: 12px;
}

.form-status {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.form-status.success {
  color: var(--success);
}

.submit-btn,
.instagram-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: none;
}

.submit-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #deb968 0%, #b48b3a 100%);
  color: #18130a;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 30px rgba(180, 139, 58, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.submit-btn:active {
  transform: translateY(1px) scale(0.997);
}

.submit-btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(24, 19, 10, 0.2);
  border-top-color: #18130a;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-loader {
  display: inline-block;
}

.screen-thankyou {
  min-height: 640px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 42px 24px 28px;
}

.screen-thankyou.active {
  display: flex;
}

.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(212, 176, 103, 0.2), rgba(212, 176, 103, 0.06));
  border: 1px solid rgba(212, 176, 103, 0.28);
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.redirect-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  margin-top: 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 176, 103, 0.18);
  background: rgba(212, 176, 103, 0.08);
  color: rgba(247, 243, 235, 0.88);
}

.instagram-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text);
  font-weight: 700;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 420px) {
  .screen {
    padding-left: 16px;
    padding-right: 16px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field-full {
    grid-column: auto;
  }
}
