/* Order form: same colours and fonts as the invites, calm and easy to fill in */
:root {
  --bg: #0f3d2e;
  --card: #fffaf0;
  --red: #b3202a;
  --gold: #d4a73c;
  --green: #1f7a4d;
  --text: #2b2b2b;
  --muted: #7a7366;
  --line: #e4dccb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  color: var(--text);
  padding: 24px 14px 40px;
}

.sheet {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 30px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}
h1, h2 {
  font-family: "Mountains of Christmas", cursive;
  color: var(--red);
  text-align: center;
  line-height: 1.1;
}
h1 { font-size: 2.3rem; margin: 6px 0 10px; }
h2 { font-size: 2.2rem; margin-bottom: 10px; }

.lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.lead a { color: var(--green); font-weight: 700; }

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.block {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
legend {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--gold);
  width: 100%;
}

/* --- Package cards --- */
.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}
.package input { position: absolute; opacity: 0; } /* hide the round dot; the card IS the button */
.package:has(input:checked) {
  border-color: var(--green);
  background: #eef8f2;
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.15);
}
.package:has(input:focus-visible) { outline: 2px solid var(--gold); }
.pkg-name  { font-weight: 700; }
.pkg-price { font-size: 1.4rem; font-weight: 700; color: var(--green); }
.pkg-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* --- Fields --- */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  font-size: 0.9rem;
}
.opt, .hint-inline { font-weight: 400; color: var(--muted); }
.hint { font-weight: 400; font-size: 0.82rem; color: var(--muted); }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;              /* 16px+ stops iPhones zooming in when you tap a box */
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-weight: 400;
  width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

/* the spam-robot trap: off-screen, invisible to people */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

.total {
  text-align: center;
  font-size: 1.1rem;
}
.total strong { color: var(--green); font-size: 1.3rem; }

.error {
  color: var(--red);
  font-weight: 700;
  text-align: center;
}
.error:empty { display: none; }

.submit {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(179, 32, 42, 0.35);
}
.submit:disabled { opacity: 0.6; cursor: wait; }

/* --- After ordering --- */
.done {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
}
.code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green);
}
.small-code { font-size: 1.1rem; letter-spacing: 0; word-break: break-all; }
.pay {
  background: white;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.small { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 420px) {
  .packages, .row { grid-template-columns: 1fr; } /* stack on narrow phones */
}
