/* Fruit Frenzy payment page.
   Navy brand side + white form side.
   Desktop: full-height split screen (no floating card). Mobile: navy header, white form sheet.
   Brand tokens: navy #1D1F3F, gold #F2CE75, warm grey #E6E2E1, muted #A9A9BC, Montserrat. */

* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Montserrat", sans-serif; color: #E6E2E1; line-height: 1.6;
  background:
    radial-gradient(700px 480px at -8% 108%, rgba(242,206,117,.09), transparent 60%),
    radial-gradient(700px 480px at 30% -10%, rgba(242,206,117,.10), transparent 60%),
    #1D1F3F;
  background-attachment: fixed;
}
.container { min-height: 100vh; display: flex; flex-direction: column; padding: 0 10px; }
.grid-layout { display: block; padding: 22px 0 0; }

/* ---------- Brand side (navy) ---------- */
.intro-section { text-align: left; padding: 0 8px; }
.brand-logo { display: block; align-self: flex-start; width: auto; height: 52px; margin-bottom: 10px; }
.eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #F2CE75; line-height: 1.4; }
.intro-section h1 { font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin: 0 0 12px; color: #fff; }
.intro-section .description { font-size: .95rem; line-height: 1.7; color: #d6d3e4; margin: 0; }

.hero-price, .trust-list, .section-sub { display: none; }

/* ---------- Form side (white) ---------- */
.payment-section { margin: 18px 0 0; padding: 22px 18px 20px; background: #fff; border-top: 4px solid #F2CE75; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.payment-details h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 12px; color: #1D1F3F; }
.section-sub { margin: 0 0 24px; font-size: .88rem; color: #6b6b6b; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .88rem; color: #1D1F3F; }
.form-group .optional-tag, .form-group .field-hint { font-weight: 400; color: #6b6b6b; font-size: .82rem; }
.form-group .field-hint { display: block; margin-top: 4px; }

.form-group input,
.phone-input {
  width: 100%; border: 1px solid #d3cfdc; border-radius: 10px; background: #fff; color: #111;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input { padding: 13px 14px; font-size: 1rem; font-weight: 500; font-family: "Montserrat", sans-serif; outline: none; }
.form-group input::placeholder, .phone-input input::placeholder { color: #767676; font-weight: 400; }
.form-group input:hover:not(:focus), .phone-input:hover:not(:focus-within) { border-color: #b3adbf; }
.form-group input:focus, .phone-input:focus-within { border-color: #1D1F3F; box-shadow: 0 0 0 3px rgba(242,206,117,.65); }
.form-group input.invalid, .phone-input.invalid { border-color: #d32f2f; }

.phone-input { display: flex; align-items: center; padding-left: 14px; }
.phone-input > span { padding-right: 12px; border-right: 1px solid #e4e1ec; font-weight: 600; color: #1D1F3F; white-space: nowrap; flex-shrink: 0; }
.phone-input input { border: none; outline: none; flex-grow: 1; padding: 13px 14px; font-size: 1rem; font-weight: 500; font-family: "Montserrat", sans-serif; background: transparent; color: #111; box-shadow: none; }
.phone-input input:focus { box-shadow: none; }

.form-error { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #b3261e; font-size: .9rem; font-weight: 500; }
.form-error.show { display: block; }

/* Price summary: plain rows */
.price-summary { margin-top: 22px; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 1rem; color: #1D1F3F; }
.price-row.muted { color: #5c5c5c; font-size: .92rem; }
.price-row[hidden] { display: none; } /* GST row: unhidden by app.js only when pricing.gstRate > 0 */
.total-row { border-top: 1.5px solid #1D1F3F; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }

.tax-note { margin-top: -2px; text-align: right; font-size: .78rem; color: #6b6b6b; }

.pay-button-container button { margin-top: 22px; width: 100%; padding: 17px; font-size: 18px; font-weight: 600; color: #000; border-radius: 12px; border: none; background-color: #F2CE75; cursor: pointer; font-family: "Montserrat", sans-serif; transition: filter .15s, box-shadow .15s; }
.pay-button-container button:hover:not(:disabled) { filter: brightness(.97); }
.pay-button-container button:focus-visible { outline: 3px solid #1D1F3F; outline-offset: 2px; }
.pay-button-container button:disabled { opacity: .6; cursor: not-allowed; }
.secure-note { margin-top: 14px; text-align: center; font-size: .8rem; color: #6b6b6b; }

/* Mobile-only sticky pay bar */
footer { position: fixed; bottom: 0; left: 0; width: 100%; background: #15172f; border-top: 1px solid rgba(242,206,117,.28); display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; color: #fff; z-index: 50; }
.footer-total { font-size: .95rem; font-weight: 500; }
#buy-now-btns { background: #F2CE75; color: #000; border: none; padding: 12px 26px; border-radius: 10px; font-size: 1em; font-weight: 700; cursor: pointer; font-family: "Montserrat", sans-serif; }
#buy-now-btns:disabled { opacity: .6; cursor: not-allowed; }

/* Site footer (links + copyright) */
.site-footer { margin-top: auto; padding: 18px 0 96px; text-align: center; font-size: .8rem; color: #A9A9BC; line-height: 1.8; }
.site-footer a { color: #A9A9BC; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .sep { margin: 0 8px; opacity: .6; }

/* Shown only when JavaScript is disabled */
.noscript-msg { padding: 12px 16px; background: #fdecea; color: #b3261e; font-size: .95rem; font-weight: 500; text-align: center; }

/* ============================================================
   DESKTOP (>= 901px): full-height split screen.
   Left half navy (brand + price), right half white (form).
   .grid-layout is flattened so both halves become grid items.
   ============================================================ */
@media (min-width: 901px) {
  .container { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 0; max-width: none; }
  .grid-layout { display: contents; }
  footer { display: none; }

  .intro-section {
    grid-column: 1; grid-row: 1; align-self: center; justify-self: end;
    width: 100%; max-width: 600px; padding: 56px 64px 24px 40px;
  }
  .brand-logo { height: 56px; margin-bottom: 20px; }
  .intro-section h1 { font-size: 1.85rem; line-height: 1.3; margin-bottom: 14px; }
  .intro-section .description { font-size: 1.02rem; max-width: 95%; }

  .hero-price { display: flex; flex-direction: column; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
  .hero-price-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #A9A9BC; }
  .hero-price-amt { font-size: 2.6rem; font-weight: 800; line-height: 1.15; color: #F2CE75; margin-top: 4px; }
  .hero-price-sub { font-size: .92rem; color: #E6E2E1; margin-top: 2px; }
  .trust-list { display: block; margin: 18px 0 0; padding: 0; list-style: none; }
  .trust-list li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: .84rem; color: #c9c6da; line-height: 1.5; }
  .trust-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #F2CE75; font-weight: 700; }

  .payment-section {
    grid-column: 2; grid-row: 1 / span 2; margin: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 56px 64px; background: #fff; border-top: 0; border-radius: 0; box-shadow: none;
  }
  .payment-section > * { width: 100%; max-width: 460px; }
  .payment-details h2 { font-size: 1.4rem; margin-bottom: 4px; }
  .section-sub { display: block; }
  .form-group { margin-bottom: 18px; }
  .price-summary { margin-top: 26px; }
  .pay-button-container button { box-shadow: 0 8px 20px rgba(242,206,117,.45); }
  .pay-button-container button:hover:not(:disabled) { box-shadow: 0 10px 24px rgba(242,206,117,.6); }

  .site-footer { grid-column: 1; grid-row: 2; margin: 0; padding: 20px 24px 28px; }
}
