:root {
  --maroon-dark: #5c1717;
  --maroon: #7a1f1f;
  --maroon-light: #a53a2c;
  --gold: #c89b3c;
  --cream: #f6f2ea;
  --ink: #2b2420;
  --ink-soft: #6b6259;
  --border: #e8e0d3;
  --success: #2e7d4f;
  --error: #b3402f;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 9px 12px; color: white; background: var(--maroon-dark); border-radius: 7px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; }
.image-side { position: relative; overflow: hidden; background: linear-gradient(145deg, #d9c4a9, #f3e6d2 72%, #f6f2ea); }
.image-side picture { position: absolute; inset: 0; display: block; }
.image-side .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: saturate(1.08) contrast(1.04) brightness(0.98); opacity: 0; transition: opacity .22s ease-out; }
.image-side.is-loaded .hero-image { opacity: 1; }
.image-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(20,6,6,0.28) 100%); pointer-events: none; }
.image-side::after { content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 140px; background: linear-gradient(90deg, transparent, var(--cream) 92%); pointer-events: none; }
.content-side { background: var(--cream); display: flex; align-items: flex-start; justify-content: center; padding: 44px 5vw 56px; }
.content-inner { width: 100%; max-width: 600px; }
.brand-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.brand-mark .glyph { width: 60px; height: 60px; border-radius: 14px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 30px; flex-shrink: 0; overflow: hidden; }
.brand-mark .glyph img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark .name { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: var(--maroon-dark); line-height: 1.1; }
.brand-mark .name span { display: block; font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.donation-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; padding: 0; border: 0; }
.donation-tiles legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.donation-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; transition: border-color .15s, background .15s, color .15s; }
.donation-tile:hover { border-color: var(--maroon-light); }
.donation-tile:has(input:focus-visible) { outline: 3px solid rgba(165,58,44,.18); outline-offset: 2px; }
.donation-tile input[type='radio'] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.donation-tile.active, .donation-tile:has(input[type='radio']:checked) { background: var(--maroon); border-color: var(--maroon); color: #fdf8ee; }
.donation-tile.active .tile-amount, .donation-tile:has(input:checked) .tile-amount { color: #fff; }
.donation-tile .tile-amount { font-size: 17px; font-weight: 700; }
.donation-tile .tile-label { font-size: 12px; color: var(--ink-soft); }
.donation-tile.active .tile-label, .donation-tile:has(input:checked) .tile-label { color: #fff; }
.donation-tile.custom { grid-column: 1 / -1; flex-direction: column; gap: 4px; border-style: dashed; }
.donation-tile.custom input.tile-input { position: static; width: 140px; height: auto; opacity: 1; font: inherit; font-size: 17px; font-weight: 700; text-align: center; border: none; border-bottom: 1px solid var(--border); background: transparent; color: var(--maroon-dark); outline: none; padding: 2px 0; }
.donation-tile.custom input.tile-input:focus { border-color: var(--maroon-light); }
.donation-tile.custom.active input.tile-input, .donation-tile.custom:has(input[type='radio']:checked) input.tile-input { color: #fdf8ee; border-color: rgba(253,248,238,.6); }
.donation-tile.custom input.tile-input::placeholder { color: #b8aea3; }
.donation-tile.custom.active input.tile-input::placeholder { color: #fff; }
.donation-tile.custom input.tile-input::-webkit-inner-spin-button, .donation-tile.custom input.tile-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.form-panel h1, .contact-panel h1 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; margin: 18px 0 4px; color: var(--maroon-dark); }
.v2-back-link { display: inline-flex; align-items: center; margin-top: 18px; color: var(--maroon); font-size: 12px; font-weight: 600; text-decoration: none; }
.v2-back-link:hover { color: var(--maroon-light); text-decoration: underline; text-underline-offset: 3px; }
.v2-back-link:focus-visible { outline: 3px solid rgba(165,58,44,.18); outline-offset: 3px; border-radius: 4px; }
.v2-back-link + h1 { margin-top: 10px; }
.form-panel .subtitle { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--maroon-light); box-shadow: 0 0 0 3px rgba(165,58,44,.12); }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: var(--error); }
.field select { cursor: pointer; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.4; }
.checkbox-row input { width: auto; margin-top: 2px; accent-color: var(--maroon-light); }
#addressField input:disabled { background: #faf6ef; color: var(--ink-soft); cursor: not-allowed; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.selected-summary { margin-bottom: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; }
.selected-summary .label { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: var(--maroon-dark); line-height: 1.1; }
.selected-summary .tier-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.selected-summary .amount { font-family: inherit; font-size: 28px; font-weight: 700; color: var(--maroon-dark); }
button.pay-btn, a.pay-btn { width: 100%; padding: 15px; background: linear-gradient(135deg,var(--maroon),var(--maroon-light)); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; transition: transform .12s,box-shadow .12s; box-shadow: 0 8px 20px -8px rgba(122,31,31,.5); }
.button-label { color: #fff; }
button.pay-btn:hover, a.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(122,31,31,.55); }
button.pay-btn:disabled { cursor: wait; opacity: .72; transform: none; }
.link-btn { display: block; text-align: center; text-decoration: none; }
.button-spinner { display: none; width: 15px; height: 15px; margin-left: 8px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; vertical-align: -3px; animation: spin .7s linear infinite; }
button.pay-btn[data-loading='true'] .button-spinner { display: inline-block; }
.payment-trust { display: grid; gap: 4px; margin-top: 12px; color: var(--ink-soft); text-align: center; font-size: 11px; line-height: 1.4; }
.payment-trust-title { color: var(--maroon-dark); font-weight: 600; }
.payment-methods { letter-spacing: .02em; }
#status { margin-top: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; }
#status:not(:empty) { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.62); }
#status[data-tone='error'] { color: var(--error); border-color: rgba(179,64,47,.24); background: rgba(179,64,47,.06); }
#status[data-tone='success'] { color: var(--success); border-color: rgba(46,125,79,.22); background: rgba(46,125,79,.06); }
#status[data-tone='info'] { color: var(--ink-soft); }
.contact-panel { margin-top: 36px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 12px; }
.contact-panel p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; margin: 8px 0 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .image-side { min-height: 34vh; }
  .image-side::after { top: auto; right: 0; left: 0; bottom: -1px; width: auto; height: 100px; background: linear-gradient(180deg, transparent, var(--cream) 92%); }
}
@media (max-width: 560px) {
  .image-side { min-height: 34vh; }
  .image-side .hero-image { object-position: center 43%; }
  .content-side { padding: 28px 20px 44px; }
  .brand-mark .name { font-size: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field input { font-size: 16px; }
  .selected-summary { flex-direction: column; align-items: flex-start; gap: 6px; }
  button.pay-btn { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
