/* ============================================================
   RD — CHECKOUT STYLES
   Castle Fields — Berkhamsted Castle Trust
   Fonts: Cormorant (headings) / Lato (body)
   Colours: Red #d80429 / Green #3C7A38 / Amber #ff9900 / Dark #292E2A
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --parchment:  #ffffff;
  --stone:      #f0ebe0;
  --stone-dark: #d9d0be;
  --ink:        #1c1a14;
  --ink-mid:    #3d3a2e;
  --ink-light:  #6b6553;
  --green:      #3C7A38;
  --green-mid:  #2d6030;
  --green-pale: #eaf4e8;
  --gold:       #a07c2a;
  --gold-pale:  #f5edd4;
  --red:        #d80429;
  --border:     rgba(60,55,35,0.15);
}

body { font-family: 'Lato', Arial, sans-serif; background: var(--parchment); color: #111; font-size: 20px; font-weight: 300; min-height: 100vh; padding-bottom: 60px; }
p    { font-family: 'Lato', Arial, sans-serif; color: #111; font-size: 16px; font-weight: 300; line-height: 1.6; }

/* ── DEV BANNER ── */
.RD-dev-banner { background: #1c1a14; color: #d4c08a; font-size: 11px; text-align: center; padding: 6px 16px; letter-spacing: .06em; text-transform: uppercase; }

/* ── HEADER ── */
.RD-header { background: #292e2a; padding: 14px 24px; display: flex; align-items: center; gap: 12px; }
.RD-header__title { font-family: 'Cormorant', serif; font-size: 18px; font-weight: 600; color: #fff; }
.RD-header__title span { display: block; font-size: 11px; font-weight: 300; font-family: 'Lato', Arial, sans-serif; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

/* ── LAYOUT ── */
.RD-wrap    { max-width: 520px; margin: 0 auto; padding: 32px 20px 0; }
.RD-page    { display: none; }
.RD-page--active { display: block; }

/* ── TYPOGRAPHY ── */
.RD-heading { font-family: 'Cormorant', serif; font-size: 36px; font-weight: 600; color: #292E2A; margin-bottom: 4px; line-height: 1.15; }
.RD-sub     { font-size: 16px; font-weight: 300; color: #111; margin-bottom: 24px; }

/* ── TIER CARDS ── */
.RD-tiers    { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 20px; }
.RD-tier     { border: 1px solid var(--border); border-radius: 4px; padding: 14px 8px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s; position: relative; }
.RD-tier:hover { border-color: var(--green-mid); }
.RD-tier.sel   { border: 2px solid var(--green); }
.RD-tier.pop   { border-color: #b0c8a0; }
.RD-tier__pop  { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
.RD-tier__n    { font-family: 'Cormorant', serif; font-size: 28px; font-weight: 600; color: var(--green); line-height: 1; }
.RD-tier__lbl  { font-size: 9px; color: var(--ink-light); letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 6px; }
.RD-tier__price{ font-size: 14px; font-weight: 500; color: var(--ink); }
.RD-tier__note { font-size: 10px; color: var(--ink-light); margin-top: 3px; line-height: 1.3; }

/* ── FORM CARDS ── */
.RD-card        { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.RD-card__title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); font-weight: 500; margin-bottom: 14px; }
.RD-group  { margin-bottom: 14px; }
.RD-label  { display: block; font-size: 12px; color: var(--ink-mid); margin-bottom: 5px; font-weight: 500; }
.RD-label em { color: var(--red); font-style: normal; margin-left: 2px; }
.RD-input  { width: 100%; border: 1px solid var(--stone-dark); border-radius: 3px; padding: 9px 12px; font-size: 14px; font-family: 'Lato', Arial, sans-serif; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; }
.RD-input:focus { border-color: var(--green-mid); }
.RD-hint   { font-size: 11px; color: var(--ink-light); margin-top: 4px; }
.RD-row2   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── GIFT AID ── */
.RD-giftaid       { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: var(--gold-pale); border: 1px solid #e0cfa0; border-radius: 3px; margin-bottom: 16px; cursor: pointer; }
.RD-giftaid input { margin-top: 2px; accent-color: var(--green); flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.RD-giftaid__text         { font-size: 13px; color: var(--ink-mid); line-height: 1.5; }
.RD-giftaid__text strong  { color: var(--gold); font-weight: 500; }

/* ── ORDER SUMMARY ── */
.RD-summary        { background: var(--green-pale); border: 1px solid #c0d8b0; border-radius: 4px; padding: 14px 16px; margin-bottom: 20px; }
.RD-summary__title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--green-mid); font-weight: 500; margin-bottom: 10px; }
.RD-summary__row   { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.RD-summary__row span:first-child { color: var(--ink-mid); }
.RD-summary__row--total { font-family: 'Cormorant', serif; font-weight: 600; font-size: 16px; border-top: 1px solid #c0d8b0; padding-top: 8px; margin-top: 6px; }

/* ── PAYMENT STUB ── */
.RD-payment          { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.RD-payment__header  { background: var(--stone); padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.RD-payment__label   { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); font-weight: 500; }
.RD-payment__badge   { font-size: 11px; font-weight: 500; color: var(--ink-mid); background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 3px 8px; }
.RD-payment__body    { padding: 24px 20px; text-align: center; }
.RD-payment__icon    { width: 44px; height: 44px; background: var(--stone); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.RD-payment__title   { font-family: 'Cormorant', serif; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.RD-payment__detail  { font-size: 12px; color: var(--ink-light); line-height: 1.5; max-width: 300px; margin: 0 auto 14px; }
.RD-fake-fields       { border: 2px dashed var(--stone-dark); border-radius: 3px; padding: 16px; background: var(--stone); margin-bottom: 10px; }
.RD-fake-fields-label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 10px; }
.RD-fake-field        { background: #fff; border: 1px solid var(--stone-dark); border-radius: 3px; padding: 9px 12px; font-size: 13px; color: var(--ink-light); margin-bottom: 8px; text-align: left; }
.RD-fake-field:last-child { margin-bottom: 0; }
.RD-fake-row          { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── BUTTONS ── */
.RD-btn               { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 4px; padding: 15px; font-size: 18px; font-weight: 400; font-family: 'Lato', Arial, sans-serif; cursor: pointer; letter-spacing: .02em; }
.RD-btn:hover:not(:disabled) { background: var(--green-mid); }
.RD-btn:disabled      { background: var(--stone-dark); color: var(--ink-light); cursor: not-allowed; }
.RD-btn--back         { background: none; color: var(--ink-light); border: 1px solid var(--border); font-size: 13px; padding: 9px 16px; width: auto; border-radius: 3px; margin-bottom: 20px; cursor: pointer; }
.RD-btn--back:hover   { background: var(--green-pale); }

/* ── ERRORS ── */
.RD-legal             { font-size: 11px; color: var(--ink-light); text-align: center; margin-top: 10px; line-height: 1.5; }
.RD-legal a           { color: var(--green); }
.RD-error             { display: none; background: #fef0f0; border: 1px solid #f5c0c0; border-radius: 4px; padding: 10px 14px; font-size: 13px; color: #c0000a; line-height: 1.5; margin-bottom: 14px; }
.RD-error.visible     { display: block; }
.RD-field-error       { border-color: #d80429 !important; }

/* ── CONFIRMATION ── */
.RD-confirm             { text-align: center; padding-top: 8px; }
.RD-confirm__icon       { width: 56px; height: 56px; background: var(--green-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 2px solid #b8d4a8; }
.RD-confirm__heading    { font-family: 'Cormorant', serif; font-size: 36px; font-weight: 600; color: #292E2A; margin-bottom: 8px; }
.RD-confirm__sub        { font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 300; color: #111; line-height: 1.6; max-width: 380px; margin: 0 auto 24px; }
.RD-confirm__card       { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px; margin-bottom: 16px; text-align: left; }
.RD-confirm__card-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); font-weight: 500; margin-bottom: 12px; }
.RD-confirm__row        { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink); margin-bottom: 7px; }
.RD-confirm__row:last-child { margin-bottom: 0; }
.RD-confirm__row span:first-child { color: var(--ink-light); }
.RD-confirm__note       { background: var(--gold-pale); border: 1px solid #e0cfa0; border-radius: 3px; padding: 12px 14px; font-size: 13px; color: var(--ink-mid); margin-bottom: 12px; line-height: 1.55; text-align: left; }
.RD-confirm__note--test { background: var(--stone); border-color: var(--stone-dark); }
.RD-confirm__actions    { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.RD-confirm__btn        { padding: 10px 20px; border-radius: 3px; font-size: 14px; font-weight: 500; font-family: 'Lato', Arial, sans-serif; cursor: pointer; text-decoration: none; border: none; }
.RD-confirm__btn--primary   { background: var(--green); color: #fff; }
.RD-confirm__btn--primary:hover { background: var(--green-mid); }
.RD-confirm__btn--secondary { background: #fff; color: var(--ink-mid); border: 1px solid var(--border); }
.RD-confirm__btn--secondary:hover { background: var(--green-pale); }

/* ── SOCIAL SHARE ── */
.RD-share        { margin-top: 20px; text-align: center; }
.RD-share__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-light); font-weight: 500; margin-bottom: 12px; }
.RD-share__btns  { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.RD-share__btn   { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 4px; font-size: 13px; font-weight: 500; font-family: 'Lato', Arial, sans-serif; text-decoration: none; cursor: pointer; border: none; }
.RD-share__btn svg          { width: 16px; height: 16px; flex-shrink: 0; }
.RD-share__btn--facebook    { background: #1877f2; color: #fff; }
.RD-share__btn--twitter     { background: #000; color: #fff; }
.RD-share__btn--whatsapp    { background: #25d366; color: #fff; }
.RD-share__btn--copy        { background: var(--stone); color: var(--ink); border: 1px solid var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .RD-tiers { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .RD-row2  { grid-template-columns: 1fr; }
  .RD-heading { font-size: 28px; }
}

/* Contact note below pay button */
.RD-contact-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-light, #888);
  margin-top: 12px;
}
.RD-contact-note a { color: var(--ink-light, #888); text-decoration: underline; }
