/* ============================================================
   Lexington International Pre-School — payment portal styles
   Palette: pine green / sunshine yellow / sky / paper
   ============================================================ */
:root {
  --pine:      #0E5A4E;
  --pine-deep: #0A423A;
  --sunshine:  #FFC63F;
  --sky:       #BFE3E0;
  --coral:     #E2574C;
  --paper:     #F7F6F0;
  --card:      #FFFFFF;
  --ink:       #21302D;
  --muted:     #5E6E6A;
  --line:      #E2E4DC;
  --radius:    16px;
  --display:   "Fredoka", system-ui, sans-serif;
  --body:      "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head { background: var(--pine); color: #fff; }
.head-inner {
  display: flex; align-items: center; gap: 18px;
  padding-top: 26px; padding-bottom: 22px;
}
.logo {
  height: 64px; width: auto; max-width: 120px;
  background: #fff; border-radius: 14px; padding: 8px;
  flex-shrink: 0;
}
.eyebrow {
  margin: 0; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sunshine); font-weight: 800;
}
.site-head h1 {
  margin: 2px 0 0; font-family: var(--display);
  font-weight: 600; font-size: clamp(20px, 4.6vw, 30px); line-height: 1.15;
}

/* crayon stripe — the signature */
.crayons { display: flex; height: 10px; }
.crayons span { flex: 1; }
.crayons span:nth-child(1) { background: #F5A623; border-radius: 0 6px 6px 0; }
.crayons span:nth-child(2) { background: #E2574C; }
.crayons span:nth-child(3) { background: #FFC63F; }
.crayons span:nth-child(4) { background: #6FB7AE; }
.crayons span:nth-child(5) { background: #3E7CB1; border-radius: 6px 0 0 6px; }

/* ---------- intro ---------- */
.lede { margin: 26px 0 18px; font-size: 16.5px; color: var(--muted); }
.lede strong { color: var(--ink); }

.notice {
  margin-top: 22px; padding: 12px 16px; border-radius: 12px;
  font-size: 14.5px;
}
.notice-test { background: #FFF3D1; border: 1.5px dashed #D8A526; color: #6B5210; }
.notice-error { background: #FCE9E7; border: 1.5px solid #E8B0AB; color: #83271F; }

/* ---------- form card ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 24px rgba(14, 90, 78, .07);
  margin-bottom: 48px;
}
.section { padding: 26px 26px 8px; }
.section + .section { border-top: 1px solid var(--line); }

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
  font-size: 18px; margin: 0 0 16px; color: var(--pine-deep);
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-yellow { background: var(--sunshine); }
.dot-green  { background: #6FB7AE; }
.dot-blue   { background: #3E7CB1; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span2 { grid-column: span 2; }

.field span {
  display: block; font-weight: 800; font-size: 13.5px;
  margin-bottom: 6px; color: var(--ink);
}
.field span em { color: var(--coral); font-style: normal; }
.field span small { font-weight: 600; color: var(--muted); }

.field input, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #FDFDFB; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(14, 90, 78, .14);
}

.amount-box {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #FDFDFB; padding-left: 14px;
}
.amount-box b { font-size: 17px; color: var(--pine); }
.amount-box input { border: none; background: transparent; padding-left: 0; font-weight: 800; font-size: 19px; }
.amount-box input:focus { box-shadow: none; }
.amount-box:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(14,90,78,.14); }
.hint { display: block; margin-top: 6px; color: var(--pine); font-weight: 700; }

/* ---------- pay button ---------- */
.pay-row { padding: 24px 26px 28px; border-top: 1px solid var(--line); background: #FBFAF5; }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  background: var(--pine); color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  transition: background .15s, transform .1s;
}
.pay-btn:hover { background: var(--pine-deep); }
.pay-btn:active { transform: scale(.99); }
.pay-btn:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 2px; }
.secure-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- result pages ---------- */
.result {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; margin: 40px 0 48px;
  box-shadow: 0 6px 24px rgba(14,90,78,.07);
}
.result .big-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 34px; margin-bottom: 14px;
}
.icon-ok   { background: #E4F3EC; }
.icon-warn { background: #FFF3D1; }
.result h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 10px; color: var(--pine-deep); }
.result p  { color: var(--muted); max-width: 46ch; margin: 0 auto 8px; }
.result .ref { font-weight: 800; color: var(--ink); }
.btn-link {
  display: inline-block; margin-top: 20px; padding: 13px 26px;
  background: var(--pine); color: #fff; text-decoration: none;
  border-radius: 10px; font-family: var(--display); font-weight: 600;
}
.btn-link:hover { background: var(--pine-deep); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 14px; }
.site-foot p { margin: 0 0 4px; }
.tiny { font-size: 12.5px; }

/* ---------- admin table ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--pine); color: #fff; font-weight: 700; position: sticky; top: 0; }
.admin-table tr:nth-child(even) td { background: #FAFAF6; }
.badge { padding: 2px 9px; border-radius: 99px; font-weight: 800; font-size: 12px; }
.badge-ok { background: #E4F3EC; color: #146044; }
.badge-bad { background: #FCE9E7; color: #83271F; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 48px; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .logo { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
