/* ===== ModWash — Ray-Ban Meta Giveaway (mockup match) ===== */
:root {
  --blue-top: #0f418b;       /* gradient top */
  --blue-bottom: #1b205f;    /* gradient bottom */
  --blue-head: #103f89;      /* headline blue */
  --blue-logo: #0047bb;      /* ModWash logo blue */
  --magenta: #cb007c;        /* ModWash magenta */
  --magenta-dark: #a80067;
  --ink: #1d2733;
  --muted: #6b7682;
  --line: #d9dee4;
  --line-focus: var(--magenta);
  --danger: #d83a3a;
  --white: #ffffff;
  --card-radius: 22px;
  --field-radius: 9px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--blue-top) 0%, var(--blue-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.stage {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Card ===== */
.card {
  width: 100%;
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(8, 17, 45, 0.35);
}

.card-head {
  background: var(--magenta);
  text-align: center;
  padding: 22px 24px 20px;
}
.logo { display: inline-block; height: 60px; width: auto; }

.card-body { padding: 30px 30px 26px; }

/* ===== Headline ===== */
.headline {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--blue-head);
  font-size: 27px;
  line-height: 1.02;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}

.subhead { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.subhead strong { color: var(--ink); }
.prompt { color: var(--ink); font-size: 14.5px; font-weight: 600; margin: 0 0 18px; }

/* ===== Prize photo ===== */
.prize-photo {
  display: block;
  width: 86%;
  max-width: 320px;
  height: auto;
  margin: 6px auto 24px;
}

/* ===== Form ===== */
#giveaway-form { margin: 0; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field label .hint { font-weight: 400; color: #9aa4ae; }
.field input,
.field select {
  width: 100%;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--field-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { height: 45px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7682' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px; }
.field select:invalid { color: #aeb6bf; }
.field input::placeholder { color: #aeb6bf; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(203, 0, 124, 0.14);
}
.field input.invalid,
.field select.invalid { border-color: var(--danger); }
.error { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 13px; }

/* Consent */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 20px; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--magenta); flex-shrink: 0; }
.consent span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ===== Enter button ===== */
.btn-enter {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--magenta);
  color: var(--white);
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 18px;
  border: none;
  border-radius: var(--field-radius);
  padding: 15px 24px;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.btn-enter:hover { background: var(--magenta-dark); }
.btn-enter:active { transform: translateY(1px); }
.btn-enter[disabled] { cursor: not-allowed; opacity: 0.9; }

.btn-spinner {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-enter.loading .btn-label { opacity: 0.6; }
.btn-enter.loading .btn-spinner { display: inline-block; }

/* Fine print */
.fineprint {
  font-size: 10.5px;
  line-height: 1.5;
  color: #9aa4ae;
  text-align: center;
  margin: 16px 0 0;
}

/* ===== Success ===== */
.success-check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-size: 32px; font-weight: 900;
  display: grid; place-items: center;
  margin: 4px auto 18px;
  animation: pop .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
#success-view { text-align: center; }
#success-view .headline { text-align: center; }
#success-view .subhead { text-align: center; }
#success-view .prompt { text-align: center; }

/* ===== Tagline ===== */
.tagline {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.3px;
  margin: 26px 0 6px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 420px) {
  .stage { padding: 26px 14px 22px; }
  .card-body { padding: 26px 22px 22px; }
  .headline { font-size: 24px; }
  .field-row { gap: 11px; }
}
