/* ============ Art Club LR theme ============ */

:root {
  --blue: #6BA5D9;
  --blue-dark: #4A88C4;
  --blue-pale: #D8E6F3;
  --blue-bg: #EDF4FA;
  --pink: #F08CA4;
  --pink-dark: #E06E8C;
  --pink-pale: #FBE3E9;
  --green: #BCC63E;
  --green-dark: #9AA32E;
  --ink: #333333;
  --muted: #6b7280;
  --paper: #FFFEFB;
  --danger: #C0392B;
}

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

body {
  margin: 0;
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--blue-bg);
}

img { max-width: 100%; }
a { color: var(--blue-dark); }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--ink); line-height: 1.25; }
h2 { font-size: 1.7rem; margin: 0 0 .6em; }

em { font-style: italic; }
.muted { color: var(--muted); font-size: .92em; font-weight: 400; }
.center { text-align: center; }
.left-text { text-align: left; }

/* ---------- Header ---------- */

.site-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 18px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; display: block; }
.brand-mark .logo-img { width: 100%; height: auto; display: block; }
.brand-name { font-size: 1.5rem; white-space: nowrap; }
.brand-art { font-family: 'Cabin Sketch', cursive; font-weight: 700; color: var(--pink); letter-spacing: 1px; }
.brand-club { font-family: 'Yellowtail', cursive; color: var(--green); margin-left: -2px; }

.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.site-nav a:hover { color: var(--blue-dark); }
.site-nav a.active:not(.btn) { color: var(--pink-dark); border-bottom: 3px solid var(--pink); padding-bottom: 2px; }
.nav-insta { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-dark) !important; }

/* ---------- Paper sheet with squiggle frame ---------- */

.paper {
  position: relative;
  max-width: 1060px;
  margin: 8px auto 40px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(74, 136, 196, 0.18);
  padding: 46px;
}

.paper-inner { position: relative; z-index: 1; }
.paper-inner.narrow { max-width: 720px; margin: 0 auto; }
.paper-inner.wide { max-width: 100%; }

.sq { position: absolute; z-index: 0; pointer-events: none; }
.sq-top, .sq-bottom { left: 34px; right: 34px; height: 40px; background: url('/img/squiggle-h.svg') repeat-x center; }
.sq-top { top: 2px; transform: scaleY(-1); }
.sq-bottom { bottom: 2px; }
.sq-left, .sq-right { top: 40px; bottom: 40px; width: 40px; background: url('/img/squiggle-v.svg') repeat-y center; }
.sq-left { left: 2px; }
.sq-right { right: 2px; transform: scaleX(-1); }

/* ---------- Typography accents ---------- */

.script-title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 3.4rem;
  color: var(--ink);
  text-align: center;
  margin: .2em 0 .4em;
}
.script-accent { color: var(--pink); }
.script-line { font-family: 'Great Vibes', cursive; font-size: 1.9rem; color: var(--blue-dark); margin: .2em 0; }
.script-heading { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2.6rem; margin: 0 0 .3em; color: var(--ink); }
.lede { font-size: 1.12rem; max-width: 640px; margin: 0 auto 1.2em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 9px 22px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 13px 30px; font-size: 1.08rem; }
.btn-sm { padding: 5px 14px; font-size: .88rem; }
.btn-pink { background: var(--pink); color: #fff !important; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-blue { background: var(--blue); color: #fff !important; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue-dark) !important; border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-bg); }
.btn-danger { color: var(--danger) !important; border-color: var(--danger); }
.btn-danger:hover { background: #fdf0ee; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 2em 0 .5em; }

/* ---------- Home ---------- */

.hero { text-align: center; padding-top: 8px; }
.hero-logo { width: min(310px, 70vw); margin: 0 auto; }
.hero-logo .logo-img { width: 100%; height: auto; display: block; }
.hero h1 { font-size: 2rem; margin: .3em auto .4em; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 1.4em 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 2.2em 0; }
.card {
  background: #fff;
  border: 2px solid var(--blue-pale);
  border-radius: 14px;
  padding: 20px 22px 14px;
  box-shadow: 0 4px 14px rgba(74, 136, 196, 0.08);
}
.card-script { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 2rem; color: var(--pink); margin: 0; }

.home-blurb { text-align: center; max-width: 640px; margin: 2.5em auto; }

.insta-band { text-align: center; background: var(--pink-pale); border-radius: 14px; padding: 20px; margin-top: 2em; }
.insta-band a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--pink-dark); text-decoration: none; font-size: 1.05rem; }
.insta-band a:hover { text-decoration: underline; }

/* ---------- About / Pricing ---------- */

.about-section { margin-bottom: 1.8em; }
.about-section h2 { color: var(--blue-dark); }

.price-card {
  background: #fff;
  border: 2px solid var(--blue-pale);
  border-radius: 14px;
  padding: 10px 26px;
  margin: 1.5em 0;
  box-shadow: 0 4px 14px rgba(74, 136, 196, 0.08);
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table td { padding: 16px 4px; border-bottom: 1px solid var(--blue-pale); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price { text-align: right; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.total-row td { border-top: 3px double var(--blue); }
.total-row .price { color: var(--pink-dark); font-size: 1.8rem; }

.pay-box { background: var(--blue-bg); border-radius: 14px; padding: 22px 26px; margin: 1.5em 0; }
.pay-box h2 { margin-top: 0; }
.pay-box ul { margin: .5em 0; padding-left: 1.3em; }
.pay-box li { margin-bottom: .4em; }

/* ---------- Forms ---------- */

.form-section { margin: 2.2em 0; }
.form-section h2 { border-bottom: 3px solid var(--blue-pale); padding-bottom: .3em; overflow-wrap: anywhere; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 1em; }
.field { display: block; }
.field > span, .field-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field em { color: var(--pink-dark); font-style: normal; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], input[type="password"], select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--blue-pale);
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--blue); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Nested group fieldsets look like plain fields */
.group-field { border: 0; padding: 0; margin: 0 0 1em; min-width: 0; }
.group-field legend.field-label { padding: 0; }

.child-card {
  position: relative;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: #FAFCFE;
  padding: 18px 22px 10px;
  margin: 0 0 20px;
}
.child-card legend {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0 10px;
  color: var(--blue-dark);
}
.remove-child { position: absolute; top: 14px; right: 14px; }

.day-picks { display: flex; gap: 10px; flex-wrap: wrap; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-weight: 700; font-size: 1.02rem;
  color: var(--blue-dark);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.day-pick input:checked + span { background: var(--blue); color: #fff; }
.day-pick input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pill-radio span {
  display: inline-block;
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  color: var(--pink-dark);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.pill-radio input:checked + span { background: var(--pink); color: #fff; }
.pill-radio input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.check-line { display: flex; align-items: flex-start; gap: 10px; margin: 1em 0; font-weight: 500; cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pink); flex-shrink: 0; }

.photo-release { background: var(--pink-pale); border-radius: 12px; padding: 14px 18px; margin: 1em 0; }
.photo-release .muted { margin: 4px 0 10px; }

.pay-note { background: var(--blue-bg); border-radius: 14px; padding: 4px 26px 12px; }

.agreement-text { background: #fff; border: 2px solid var(--blue-pale); border-radius: 12px; padding: 4px 20px; margin-bottom: 1.2em; font-size: .98rem; }

.sig-block { margin: 1.2em 0; }
.sig-wrap { position: relative; }
#sig-pad {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--blue);
  border-radius: 12px;
  background: #fff;
  touch-action: none;
  display: block;
  cursor: crosshair;
}
.sig-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sig-date { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 8px 0; }

.form-errors {
  background: var(--pink-pale);
  border: 2px solid var(--pink);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 1.5em 0;
}
.form-errors ul { margin: .4em 0 .2em; padding-left: 1.3em; }

/* ---------- Admin ---------- */

.admin-form { max-width: 380px; margin: 0 auto; text-align: left; display: grid; gap: 16px; }
.admin-form .btn { justify-self: center; margin-top: 6px; }

.admin-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.admin-topbar .script-title { margin: 0; text-align: left; }
.admin-actions { display: flex; gap: 10px; align-items: center; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 1.6em 0; }
.stat { background: var(--blue-bg); border-radius: 14px; text-align: center; padding: 14px 8px; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2rem; color: var(--blue-dark); }
.stat-label { font-size: .9rem; font-weight: 600; color: var(--muted); }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.admin-table th {
  text-align: left; font-family: 'Quicksand', sans-serif; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 3px solid var(--blue-pale); padding: 8px 10px;
}
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--blue-pale); vertical-align: top; }
.actions-cell { white-space: nowrap; }
.actions-cell .btn { margin-left: 4px; }

.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th { text-align: left; width: 180px; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; vertical-align: top; }
.detail-table td { padding: 8px 0; overflow-wrap: anywhere; }
.detail-table tr { border-bottom: 1px solid var(--blue-pale); }

.sig-view { border: 2px solid var(--blue-pale); border-radius: 12px; background: #fff; padding: 10px; margin-bottom: 1em; }
.sig-view img { display: block; max-height: 200px; margin: 0 auto; }

/* ---------- Footer ---------- */

.site-footer { max-width: 1060px; margin: 0 auto; padding: 0 24px 40px; text-align: center; }
.footer-squiggle { height: 40px; background: url('/img/squiggle-h.svg') repeat-x center; opacity: .5; margin-bottom: 8px; }
.footer-script { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--blue-dark); margin: 0; }
.footer-inner p { margin: .4em 0; }
.insta-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pink-dark); text-decoration: none; }
.insta-link:hover { text-decoration: underline; }
.footer-admin { margin-top: 1em !important; }
.footer-admin a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-admin a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .paper { padding: 36px 40px; margin: 4px 10px 30px; }
  .sq-top, .sq-bottom { left: 24px; right: 24px; height: 30px; background-size: 30px 30px; }
  .sq-left, .sq-right { top: 30px; bottom: 30px; width: 30px; background-size: 30px 30px; }
  .cards { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .script-title { font-size: 2.6rem; }
  .site-header { justify-content: center; }
  .admin-topbar { justify-content: center; }
}
