:root {
  --ink: #172331;
  --muted: #667281;
  --navy: #073b66;
  --blue: #0d72b9;
  --gold: #f1bd20;
  --gold-dark: #c99500;
  --red: #a5141c;
  --paper: #ffffff;
  --soft: #f3f7fa;
  --line: #d9e2e9;
  --success: #157347;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(20, 38, 55, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(13,114,185,.13), transparent 30%),
    linear-gradient(180deg, #eef8fc 0%, #f8fafc 55%, #eef2f5 100%);
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #fff;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.35fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.raffle-card, .form-card {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.raffle-card {
  position: sticky;
  top: 20px;
  padding: 36px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 42, 73, .94), rgba(3, 42, 73, .96)),
    url("assets/tomuli-raffle-banner.jpg") center/cover;
}

.raffle-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 45px solid rgba(241,189,32,.13);
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .11em;
  color: var(--gold);
}

.raffle-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .98;
  text-transform: uppercase;
}

.raffle-card h1 span { color: var(--gold); }

.intro {
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin: 22px 0 26px;
}

.details-list {
  display: grid;
  gap: 12px;
}

.details-list div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: 14px;
}

.details-list span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.65);
  margin-bottom: 5px;
}

.details-list strong { font-size: 1rem; }


.special-offer {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 216, 90, .7);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241,189,32,.24), rgba(255,255,255,.08));
  box-shadow: inset 0 0 25px rgba(241,189,32,.08);
  text-align: center;
}
.special-offer .offer-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.special-offer strong {
  display: block;
  font-size: 1.25rem;
  color: #fff;
}
.special-offer small {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.summary-price small {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: var(--success);
  font-weight: 800;
  font-size: .78rem;
}

.notice {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 15px;
  border-left: 4px solid var(--gold);
  background: rgba(0,0,0,.19);
  border-radius: 8px;
  line-height: 1.55;
  font-size: .9rem;
}

.form-card {
  background: var(--paper);
  padding: 36px;
}

.form-heading { margin-bottom: 26px; }
.form-heading .eyebrow { color: var(--red); }
.form-heading h2 { margin: 0 0 6px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.form-heading p:last-child { margin: 0; color: var(--muted); }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: .94rem;
}
.field label span { color: var(--muted); font-weight: 500; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: .2s ease;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13,114,185,.11);
}

.invalid { border-color: var(--danger) !important; }
.error {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: var(--danger);
  font-size: .78rem;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 20px;
  border-radius: 14px;
  margin: 2px 0 20px;
  background: linear-gradient(135deg, #f9e8a6, #fff6d4);
  border: 1px solid #ecd16b;
}
.order-summary div:last-child { text-align: right; }
.order-summary span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #735900; }
.order-summary strong { display: block; margin-top: 4px; font-size: 1.25rem; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.5;
  font-size: .88rem;
  cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.checkbox-error { margin-bottom: 15px; }

button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 16px 20px;
  color: #161616;
  background: linear-gradient(135deg, var(--gold), #ffd85a);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(201,149,0,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(201,149,0,.3); }
button:disabled { cursor: not-allowed; opacity: .68; transform: none; }

.form-message {
  display: none;
  margin-top: 16px;
  border-radius: 12px;
  padding: 15px;
  line-height: 1.5;
}
.form-message.success { display: block; color: var(--success); background: #eaf8f0; border: 1px solid #b8dfc8; }
.form-message.failure { display: block; color: var(--danger); background: #fff0ee; border: 1px solid #f0c0ba; }

footer { text-align: center; color: var(--muted); padding: 28px 10px 12px; font-size: .84rem; }

@media (max-width: 900px) {
  .page-shell { padding: 12px; }
  .content-grid { grid-template-columns: 1fr; }
  .raffle-card { position: relative; top: auto; }
}

@media (max-width: 620px) {
  .hero, .raffle-card, .form-card { border-radius: 16px; }
  .raffle-card, .form-card { padding: 24px 19px; }
  .two-column { grid-template-columns: 1fr; gap: 0; }
  .order-summary { align-items: center; }
}

.payment-section {
  margin: 4px 0 24px;
  padding: 22px;
  border: 1px solid #ecd16b;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf5, #fff7d8);
}
.payment-heading { margin-bottom: 16px; }
.payment-heading .eyebrow { color: var(--red); margin-bottom: 5px; }
.payment-heading h3 { margin: 0 0 6px; font-size: 1.25rem; }
.payment-heading p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .87rem; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-card { padding: 18px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #073b66, #062d4d); box-shadow: 0 10px 24px rgba(7,59,102,.18); }
.account-label { display: inline-block; color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.payment-card h4 { margin: 8px 0 14px; font-size: .92rem; line-height: 1.4; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.payment-row span { display: block; color: rgba(255,255,255,.65); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.payment-row strong { font-size: .9rem; overflow-wrap: anywhere; }
.copy-button { width: auto; flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; box-shadow: none; font-size: .72rem; background: var(--gold); }
.copy-button:hover { box-shadow: none; }
.payment-note { margin-top: 10px; padding: 11px; border-radius: 9px; line-height: 1.55; font-size: .78rem; background: rgba(255,255,255,.09); }
.copy-message { min-height: 18px; margin: 9px 0 0; text-align: center; color: var(--success); font-size: .78rem; font-weight: 700; }
.submit-button { margin-top: 4px; }

@media (max-width: 700px) {
  .payment-grid { grid-template-columns: 1fr; }
  .payment-section { padding: 16px; }
}

/* Keep the banner near its natural resolution on larger screens so it stays sharp. */
@media (min-width: 901px) {
  .hero {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
