/* ============================================================
   ISKCON Windsor Event Registration — Stylesheet
   Theme: Saffron, Gold & Cream
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --saffron:    #e07000;
  --saffron-dk: #b35a00;
  --gold:       #f5c518;
  --gold-lt:    #fff3cc;
  --cream:      #fff8f0;
  --white:      #ffffff;
  --text:       #2d2d2d;
  --text-lt:    #666666;
  --border:     #e8d5b0;
  --green:      #1a7f37;
  --red:        #cc0000;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--saffron); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--saffron-dk) 0%, var(--saffron) 100%);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.logo-block { display: flex; align-items: center; gap: 14px; }
.lotus { font-size: 2.4rem; line-height: 1; }
.org-name { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; letter-spacing: .5px; }
.mantra { font-size: .78rem; opacity: .85; letter-spacing: .5px; }

.event-chip {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 24px;
  padding: 6px 18px;
  text-align: center;
}
.chip-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.chip-date  { display: block; font-family: 'Cinzel', serif; font-weight: 600; font-size: .95rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #ff8c00 0%, #e07000 40%, #b35a00 100%);
  color: #fff;
  text-align: center;
  padding: 54px 20px 48px;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  margin-bottom: 10px;
}
.hero-sub  { font-size: 1rem; opacity: .9; max-width: 620px; margin: 0 auto 18px; }
.hero-meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: .9rem; opacity: .9; }
.sep       { opacity: .4; }

/* ── Main Layout ──────────────────────────────────────────── */
.main { padding: 36px 0 60px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
}
.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--saffron-dk);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-note { font-size: .85rem; color: var(--text-lt); margin-bottom: 16px; }

/* ── Form Fields ──────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.req  { color: var(--saffron); }

input[type=text],
input[type=email],
input[type=tel],
input[type=number],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(224,112,0,.15);
}
textarea { resize: vertical; min-height: 76px; }

/* ── Services List ────────────────────────────────────────── */
.services-list { display: flex; flex-direction: column; gap: 10px; }

.svc-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.svc-item:has(.svc-chk:checked) {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(224,112,0,.12);
  background: #fff9f2;
}

.svc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
.svc-row input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--saffron); flex-shrink: 0; }
.svc-icon { font-size: 1.5rem; flex-shrink: 0; }
.svc-info { flex: 1; }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.svc-name  { font-weight: 600; font-size: .95rem; }
.svc-price {
  font-weight: 700;
  color: var(--saffron-dk);
  font-size: .9rem;
  white-space: nowrap;
}
.svc-price small { font-weight: 400; font-size: .75rem; }
.custom-mark { color: var(--gold); font-size: .8rem; }
.svc-desc  { font-size: .82rem; color: var(--text-lt); margin-top: 3px; }

/* Extras panel */
.svc-extras { padding: 12px 16px 16px; border-top: 1px dashed var(--border); background: #fffaf4; }
.extra-block { margin-bottom: 12px; }
.extra-label { font-size: .82rem; font-weight: 600; display: block; margin-bottom: 6px; }

.quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.qt-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--saffron);
  background: #fff;
  color: var(--saffron-dk);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.qt-btn:hover { background: var(--saffron); color: #fff; }

/* ── Order Summary ────────────────────────────────────────── */
.summary-box {
  margin-top: 22px;
  background: var(--gold-lt);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 18px 20px;
}
.summary-title { font-family: 'Cinzel', serif; font-size: .95rem; color: var(--saffron-dk); margin-bottom: 12px; }
.summary-empty { color: var(--text-lt); font-size: .88rem; }
.sum-line { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px solid var(--gold);
  margin-top: 10px;
  padding-top: 10px;
  color: var(--saffron-dk);
}

/* ── Alert ────────────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; }
.alert-error { background: #fff0f0; border: 1.5px solid #ffbcbc; color: var(--red); }
.alert p { margin: 4px 0; }

/* ── Submit Bar ───────────────────────────────────────────── */
.submit-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.submit-note { font-size: .85rem; color: var(--text-lt); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dk) 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(224,112,0,.4);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224,112,0,.5); text-decoration: none; color: #fff; }

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  background: var(--white);
  color: var(--saffron-dk);
  border: 2px solid var(--saffron);
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-secondary:hover { background: var(--saffron); color: #fff; text-decoration: none; }

.btn-outline {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: transparent;
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
  border-radius: 30px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--cream); text-decoration: none; }

/* ── Invoice Page ─────────────────────────────────────────── */
.invoice-wrap { max-width: 800px; margin: 0 auto; }

.invoice-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px 48px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .invoice-card { padding: 24px 18px; } }

.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.inv-org  { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700; color: var(--saffron-dk); }
.inv-addr { font-size: .85rem; color: var(--text-lt); margin-top: 4px; }
.inv-number { font-family: 'Cinzel', serif; font-size: 1.6rem; color: var(--saffron); text-align: right; margin-bottom: 8px; }

.inv-meta-tbl { font-size: .85rem; border-collapse: collapse; }
.inv-meta-tbl th { text-align: left; color: var(--text-lt); padding-right: 12px; padding-bottom: 4px; font-weight: 600; }
.inv-meta-tbl td { padding-bottom: 4px; }

.inv-divider { border: none; border-top: 2px solid var(--gold); margin-bottom: 20px; }

.inv-section-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-lt); margin-bottom: 6px; }
.inv-name { font-weight: 700; font-size: 1.05rem; }
.inv-billed { margin-bottom: 24px; font-size: .9rem; line-height: 1.7; }

.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .9rem; }
.inv-table th { background: var(--saffron-dk); color: #fff; padding: 10px 14px; text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.inv-table td { padding: 10px 14px; border-bottom: 1px solid #f0e0cc; }
.inv-table tbody tr:hover { background: var(--cream); }
.inv-note { font-size: .78rem; color: var(--text-lt); margin-top: 2px; }
.tc { text-align: center; }
.tr { text-align: right; }
.th-desc  { width: 50%; }
.th-qty   { width: 10%; text-align: center; }
.th-unit  { width: 20%; text-align: center; }
.th-total { width: 20%; text-align: right; }

.total-row td { background: var(--gold-lt); font-weight: 700; border-top: 2px solid var(--gold); }
.total-label  { font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; color: var(--saffron-dk); }
.total-amount { font-size: 1.15rem; color: var(--saffron-dk); }

.inv-reg-notes { font-size: .85rem; color: var(--text-lt); margin-bottom: 20px; padding: 10px 14px; background: var(--cream); border-radius: 8px; }

/* Badges */
.badge { display: inline-block; padding: 3px 12px; border-radius: 14px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-paid    { background: #d4edda; color: var(--green); }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-failed  { background: #f8d7da; color: var(--red); }

/* PayPal section */
.paypal-section {
  background: linear-gradient(135deg, #f9f9ff 0%, #fff8f0 100%);
  border: 1.5px solid #d0d0e8;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.paypal-title { font-family: 'Cinzel', serif; color: var(--saffron-dk); font-size: 1.05rem; margin-bottom: 8px; }
.paypal-note  { font-size: .9rem; color: var(--text-lt); margin-bottom: 18px; }
.paypal-msg   { margin-top: 12px; font-size: .9rem; }

/* Paid banner */
.paid-banner {
  background: #d4edda;
  border: 2px solid #a3d9a5;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.paid-icon  { font-size: 2rem; }
.paid-title { font-weight: 700; font-size: 1.1rem; color: var(--green); margin-bottom: 4px; }
.paid-txn   { font-size: .8rem; color: var(--text-lt); margin-bottom: 8px; }
.paid-banner p { font-size: .9rem; margin-bottom: 4px; }

.inv-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

.inv-footer-note {
  border-top: 1px dashed var(--border);
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-lt);
}

/* ── Success / Cancel pages ───────────────────────────────── */
.result-card {
  max-width: 620px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
}
@media (max-width: 600px) { .result-card { padding: 32px 20px; } }

.success-card { border-top: 5px solid var(--green); }
.cancel-card  { border-top: 5px solid #f0a500; }
.result-icon  { font-size: 3.5rem; margin-bottom: 16px; }
.result-title { font-family: 'Cinzel', serif; font-size: 1.7rem; color: var(--saffron-dk); margin-bottom: 12px; }
.result-sub   { font-size: 1rem; margin-bottom: 8px; }

.confirm-details {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
  text-align: left;
}
.cd-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.cd-row:last-child { border-bottom: none; }
.cd-row span:first-child { color: var(--text-lt); font-weight: 600; }

.confirm-email-note { font-size: .88rem; color: var(--text-lt); margin-bottom: 24px; }
.result-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.hare-krishna-footer { color: var(--text-lt); font-size: .85rem; }
.hare-krishna-footer p { margin-bottom: 6px; }
.hare-krishna-footer em { font-style: italic; }

/* ── Admin ────────────────────────────────────────────────── */
.admin-body { background: #f5f5f0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--saffron);
}
.stat-green  { border-color: var(--green); }
.stat-orange { border-color: #f0a500; }
.stat-gold   { border-color: var(--gold); }
.stat-num   { font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; color: var(--saffron-dk); }
.stat-label { font-size: .82rem; color: var(--text-lt); margin-top: 4px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-tab {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--saffron);
  color: var(--saffron);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.filter-tab:hover, .filter-tab.active { background: var(--saffron); color: #fff; text-decoration: none; }

.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-input { width: 280px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; }
.admin-table thead th { background: var(--saffron-dk); color: #fff; padding: 12px 14px; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.admin-table tbody td { padding: 11px 14px; border-bottom: 1px solid #f0e8dc; }
.admin-table tbody tr:hover { background: var(--cream); }
.tbl-link { color: var(--saffron); font-weight: 600; font-size: .82rem; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--saffron);
  color: var(--saffron);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pg-btn:hover, .pg-btn.active { background: var(--saffron); color: #fff; text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--saffron-dk);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 20px;
  font-size: .85rem;
  margin-top: 40px;
}
.site-footer a { color: var(--gold-lt); }

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  .site-header, .site-footer { display: none; }
  .invoice-card { box-shadow: none; border: 1px solid #ccc; }
  body { background: #fff; }
}

/* ── Utility ──────────────────────────────────────────────── */
.filter-form { flex: 1; }
code { font-family: monospace; font-size: .82rem; background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }
