/*
 * app.css — custom CSS for the Indomie Scholarship parent portal.
 * Layered on top of Tailwind CDN.
 */

:root {
  --brand: #fb1200;
  --brand-dark: #c50e00;
  --brand-soft: #fff0ef;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* Brand buttons */
.btn-brand {
  background: var(--brand);
  color: #fff;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  border: 0;
  display: inline-block;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-brand:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: #fff;
  color: var(--brand);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--brand);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover { background: var(--brand-soft); }

.btn-secondary {
  background: #f0f0f0;
  color: #333;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  border: 0;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background: #e0e0e0; }

/* Brand bar (top of page) */
.brand-bar {
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  text-align: center;
}

/* Form inputs — Tailwind doesn't auto-style these without forms plugin */
.input, .select, .textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(251, 18, 0, 0.12);
}
/* Invalid field highlight, set by client-side validation. */
.inp-err, .inp-err:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* Profile page cards + read-only values */
.cf-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pf-value { font-size: 1rem; color: #1a1a1a; margin-top: 0.15rem; word-break: break-word; }
.pf-badge-ok {
  display: inline-block; margin-left: 0.4rem; vertical-align: middle;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  background: #d1fae5; color: #064e3b; padding: 0.05rem 0.4rem; border-radius: 6px;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.badge-draft { background: #e5e7eb; color: #4b5563; }
.badge-submitted { background: #dbeafe; color: #1e3a8a; }
.badge-under_review { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #064e3b; }
.badge-rejected { background: #fee2e2; color: #7f1d1d; }
.badge-shortlisted { background: var(--brand); color: #fff; }

/* OTP input */
.otp-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.5rem;
  font-weight: 600;
}

/* Alerts */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.alert-success { background: #d1fae5; color: #064e3b; }
.alert-error { background: #fee2e2; color: #7f1d1d; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e3a8a; }

/* Card */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #ececec;
}

/* Term card with progress border */
.term-card {
  border-left: 4px solid #ddd;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 0 6px 6px 0;
}
.term-card.done { border-left-color: #10b981; }

/* Loading spinner (used during fetches) */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Campaign window banner */
.campaign-banner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid transparent;
}
.campaign-banner-open    { background: #e7f5ff; color: #0a4a6e; border-color: #b3d9eb; }
.campaign-banner-soon    { background: #fff7e6; color: #6b4500; border-color: #f5d77a; }
.campaign-banner-closed  { background: #fce4e4; color: #6e1a1a; border-color: #f0a4a4; }
.campaign-banner strong  { font-weight: 600; }

/* Storage-blocked notice — shown on auth pages only when the browser
   blocks web storage (in-app browsers inside social apps / private mode),
   where a login/session cannot be saved. Soft/info styling, never alarming. */
.storage-notice {
  background: #e7f5ff;
  color: #0a4a6e;
  border-bottom: 1px solid #b3d9eb;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}
.storage-notice strong { font-weight: 600; }

/* ============================================================
   Homepage redesign (index.html) — playful, kid-friendly theme.
   Every class is prefixed .hp- so the other six pages, which still
   use the original styles, are completely unaffected.
   ============================================================ */
:root {
  --cloud-yellow:   #ffd100;
  --hp-blue-head:   #2f80c7;  --hp-blue-body:   #bfe2f6;  --hp-blue-text:   #14466e;
  --hp-green-head:  #49a23f;  --hp-green-body:  #c6e7af;  --hp-green-text:  #2f6b22;
  --hp-orange-head: #ef7d27;  --hp-orange-body: #f8d09f;  --hp-orange-text: #9a4f12;
}

.hp-hand { font-family: 'Patrick Hand', 'Comic Sans MS', cursive; }

/* Homepage body — cream so no gray gap shows between the cards and the footer */
.hp-page { background: #fff7dd; }

/* Yellow band behind the header + above the hero */
.hp-top    { background: var(--cloud-yellow); }
.hp-header { background: var(--cloud-yellow); position: relative; z-index: 1; }

.hp-navlink {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.15rem; color: #1a1a1a; text-decoration: none;
}
.hp-navlink:hover { color: #000; }

.hp-btn-white {
  font-family: 'Patrick Hand', cursive; font-size: 1.1rem;
  background: #fff; color: var(--brand); border: 0; cursor: pointer;
  border-radius: 999px; padding: 0.4rem 1.4rem; text-decoration: none;
  display: inline-block;
}

/* Hero — red block with scalloped yellow "cloud" edges top and bottom */
.hp-hero {
  position: relative; overflow: hidden; z-index: 2;   /* lift hero (and figure) above the menu bar */
  background: radial-gradient(125% 120% at 50% 0%, #ec140b 0%, #c50e00 100%);
  padding: 7.5rem 0 8rem;                              /* more red breathing room to the clouds */
  min-height: 560px;
  display: flex; align-items: center;
}
/* Hero figures: anchored big to the bottom-right; lower body bleeds off and is
   hidden behind the bottom cloud edge, so the full PNG is intentionally cropped. */
.hp-hero-img {
  position: absolute; bottom: -30%; right: 26px;
  height: 128%; width: auto; z-index: 2; pointer-events: none;
  object-position: bottom;
}
@media (min-width: 1200px) {
  .hp-hero-img { right: calc(50vw - 550px); }   /* a little left of the max-w-6xl content edge */
}
/* Cloud edges — actual Figma PNGs, scaled to width with true aspect ratio */
.hp-cloud-top, .hp-cloud-bottom {
  position: absolute; left: 0; width: 100%; height: auto;
  pointer-events: none; display: block;
}
.hp-cloud-top    { top: -7px;     z-index: 1; }   /* nudged up — a little red space below the puffs; behind the figure */
.hp-cloud-bottom {
  bottom: -10px; z-index: 3;                       /* nudged down — a little red space above the puffs; in front of the figure */
  filter: drop-shadow(0 -5px 5px rgba(0,0,0,0.22)); /* soft shadow following the puffs onto the red, fading via blur + opacity */
}

.hp-hero-title {
  font-family: 'Patrick Hand', cursive; color: #fff;
  font-size: 2.6rem; line-height: 1.05; text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}
.hp-hero-sub {
  font-family: 'Patrick Hand', cursive; color: #fff;
  font-size: 1.3rem; line-height: 1.4;
}

.hp-btn-green {
  font-family: 'Patrick Hand', cursive; font-size: 1.25rem;
  background: #36a93b; color: #fff; border: 0; border-bottom: 4px solid #237a27;
  border-radius: 999px; padding: 0.55rem 1.8rem; text-decoration: none; display: inline-block;
}
.hp-btn-green:hover { background: #2f9a34; }
.hp-btn-redoutline {
  font-family: 'Patrick Hand', cursive; font-size: 1.25rem;
  background: rgba(255,255,255,0.08); color: #fff; border: 2px solid #fff;
  border-radius: 999px; padding: 0.55rem 1.8rem; text-decoration: none; display: inline-block;
}
.hp-btn-redoutline:hover { background: rgba(255,255,255,0.18); }

/* Cards section — yellow fading to cream */
.hp-cards-section {
  background: linear-gradient(180deg, var(--cloud-yellow) 0%, #fff1c2 70%, #fff7dd 100%);
  padding: 2rem 0 3rem;
}
.hp-card {
  border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
}
.hp-card-head {
  font-family: 'Patrick Hand', cursive; color: #fff; font-size: 1.5rem; padding: 0.65rem 1.1rem;
}
.hp-card-body { padding: 1rem 1.2rem 1.1rem; flex: 1 1 auto; }
.hp-card-body li { font-family: 'Patrick Hand', cursive; font-size: 1.18rem; line-height: 1.4; }

.hp-card.blue   .hp-card-head { background: var(--hp-blue-head); }
.hp-card.blue   .hp-card-body { background: var(--hp-blue-body); }
.hp-card.blue   li            { color: var(--hp-blue-text); }
.hp-card.green  .hp-card-head { background: var(--hp-green-head); }
.hp-card.green  .hp-card-body { background: var(--hp-green-body); }
.hp-card.green  li            { color: var(--hp-green-text); }
.hp-card.orange .hp-card-head { background: var(--hp-orange-head); }
.hp-card.orange .hp-card-body { background: var(--hp-orange-body); }
.hp-card.orange li            { color: var(--hp-orange-text); }

@media (min-width: 768px) { .hp-hero-title { font-size: 3.4rem; } }

/* ============================================================
   Sign Up page (signup.html) — shares the playful theme.
   Prefixed .su-; reuses --cloud-yellow, .hp-btn-green, cloud PNGs.
   ============================================================ */
.su-page   { background: #fff; }
.su-header { background: #fff; }

/* Top yellow cloud curve hanging from the header into the page (matches the
   other pages' db-/lg-/rp- cloud-top). */
.su-cloud-top { display: block; width: 100%; height: auto; margin: 0; }

.su-btn-apply {
  font-family: 'Patrick Hand', cursive; font-size: 1.1rem;
  background: #fff; color: var(--brand); border: 2px solid var(--brand);
  border-radius: 999px; padding: 0.3rem 1.4rem; text-decoration: none; display: inline-block;
}
.su-btn-apply:hover { background: var(--brand-soft); }

.su-title   { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 2.5rem; line-height: 1.05; }
.su-sub     { font-family: 'Patrick Hand', cursive; color: #6b7280; font-size: 1.18rem; line-height: 1.4; }
.su-section { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.55rem; }
.su-label   { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.08rem; display: block; }
.su-help    { font-family: 'Patrick Hand', cursive; color: #9ca3af; font-size: 0.95rem; }

/* Slightly rounder, taller inputs to match the mockup — scoped to this form only */
.su-form .input, .su-form .select, .su-form .textarea {
  border-radius: 10px; padding: 0.6rem 0.85rem; font-size: 1rem; border-color: #d9d9d9;
}

/* Yellow cloud band — sizes to the figure (in-flow flex item), so nothing is clipped */
.su-cloud {
  position: relative; background: var(--cloud-yellow);
  margin-top: 84px; height: 105px; overflow: visible;
  display: flex; justify-content: flex-end; align-items: flex-end;
}
.su-cloud-edge {
  position: absolute; left: 0; bottom: 100%; width: 100%; height: auto;
  margin-bottom: -2px; display: block; pointer-events: none; z-index: 1;
}
/* Knee-up figure — in-flow flex item, sits above the cloud curve */
.su-figure {
  position: relative; z-index: 5;
  height: 260px; width: auto; display: block; margin-right: 4%;
}
@media (min-width: 768px) {
  .su-figure { height: 290px; margin-right: 6%; }
}
/* Drop the shared footer's top margin on this white page so there's no gap above it */
.su-page footer { margin-top: 0; }

/* ============================================================
   Login page (login.html) — red page, white card, cloud bands.
   Prefixed .lg-; reuses hp-header/hp-navlink/hp-btn-white + cloud PNGs.
   ============================================================ */
.lg-page { background: var(--brand); }
.lg-page #app { min-height: 100vh; display: flex; flex-direction: column; }
.lg-page footer { margin-top: 0; }

/* Cloud puffs hanging from the yellow header into the red */
.lg-cloud-top { display: block; width: 100%; height: auto; margin: 0; }

.lg-main { flex: 1 1 auto; display: flex; justify-content: center; align-items: flex-start; padding: 2.5rem 1rem; }
.lg-card {
  background: #fff; border-radius: 22px; box-shadow: 0 14px 34px rgba(0,0,0,0.25);
  width: 100%; max-width: 27rem; padding: 2rem 2rem 2.25rem;
}
.lg-title { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 2.3rem; line-height: 1.05; text-align: center; }
.lg-sub   { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.05rem; text-align: center; }
.lg-label { font-family: 'Patrick Hand', cursive; color: #4b5563; font-size: 1.05rem; display: block; }
.lg-link  { font-family: 'Patrick Hand', cursive; color: var(--brand); }
.lg-card .input {
  border-radius: 10px; padding: 0.6rem 0.85rem; background: #f3f4f6; border-color: #e5e7eb;
}
.lg-btn {
  font-family: 'Patrick Hand', cursive; font-size: 1.35rem; width: 100%;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 0.65rem 1rem; cursor: pointer;
}
.lg-btn:hover    { background: var(--brand-dark); }
.lg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Bottom yellow cloud band with the children group */
.lg-bottom {
  position: relative; background: var(--cloud-yellow);
  margin-top: 210px; height: 120px; overflow: visible;
  display: flex; justify-content: center; align-items: flex-end;
}
.lg-cloud-edge {
  position: absolute; left: 0; bottom: 100%; width: 100%; height: auto;
  margin-bottom: -2px; display: block; pointer-events: none; z-index: 1;
}
.lg-figure { position: relative; z-index: 5; height: 300px; width: auto; max-width: 98%; display: block; }
@media (min-width: 768px) { .lg-figure { height: 410px; } }

/* ============================================================
   Dashboard (dashboard.html) — light page, cloud header/footer.
   Prefixed .db-; reuses hp-header + cloud PNGs.
   ============================================================ */
.db-page { background: #f1f1f1; }
.db-page #app { min-height: 100vh; display: flex; flex-direction: column; }
.db-page main { flex: 1 1 auto; }
.db-page footer { margin-top: 0; }
.db-cloud-top { display: block; width: 100%; height: auto; margin: 0; }

.db-title { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 2.4rem; line-height: 1; }
.db-sub   { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.15rem; }

.db-btn-red {
  font-family: 'Patrick Hand', cursive; font-size: 1.2rem; background: var(--brand); color: #fff;
  border: 0; border-radius: 999px; padding: 0.45rem 1.5rem; text-decoration: none; display: inline-block;
  cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,0.12); white-space: nowrap;
}
.db-btn-red:hover { background: var(--brand-dark); }

/* Empty-state "Get Started" card */
.db-getstarted {
  background: linear-gradient(180deg, #ffe680 0%, #ffd100 100%);
  border: 2px solid #e9b800; border-radius: 20px; padding: 2rem 1.5rem; text-align: center;
}
.db-getstarted-title { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.9rem; }
.db-getstarted-text  { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.15rem; }

/* Child cards (with-data) — colour cycles by index */
.db-card { border-radius: 14px; padding: 1rem 1.15rem 1.15rem; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.db-card.c-green  { background: #d7efc2; }
.db-card.c-blue   { background: #cfe6f7; }
.db-card.c-peach  { background: #f9dcc6; }
.db-card.c-yellow { background: #f8e9a6; }
.db-card-name  { font-family: 'Patrick Hand', cursive; color: #1a1a1a; font-size: 1.45rem; line-height: 1; }
.db-card-meta  { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.02rem; line-height: 1.35; }
.db-card-small { font-family: 'Patrick Hand', cursive; color: #6b7280; font-size: 0.95rem; }
.db-badge {
  font-family: 'Patrick Hand', cursive; color: #374151; font-size: 0.85rem;
  background: rgba(255,255,255,0.65); padding: 0.1rem 0.55rem; border-radius: 6px; white-space: nowrap;
}
/* Distinct status colours, white text. Coloured by bucket so the statuses that
   share a parent-facing label (under_review/shortlisted/approved → "Under
   Review") also share one colour. */
.db-badge.draft     { background: #64748b; color: #fff; }  /* slate  — Draft */
.db-badge.submitted { background: #2563eb; color: #fff; }  /* blue   — Submitted */
.db-badge.review    { background: #d97706; color: #fff; }  /* amber  — Under Review */
.db-badge.rejected  { background: #dc2626; color: #fff; }  /* red    — Not Selected */
.db-progress { background: rgba(0,0,0,0.12); border-radius: 999px; height: 7px; overflow: hidden; }
.db-progress > div { background: var(--brand); height: 100%; border-radius: 999px; }
.db-continue {
  font-family: 'Patrick Hand', cursive; font-size: 1rem; background: #36a93b; color: #fff; border: 0;
  border-radius: 8px; padding: 0.3rem 1.2rem; text-decoration: none; display: inline-block; cursor: pointer;
}
.db-continue:hover { background: #2f9a34; }
.db-remove {
  font-family: 'Patrick Hand', cursive; font-size: 0.9rem; background: var(--brand); color: #fff; border: 0;
  border-radius: 8px; padding: 0.3rem 1rem; cursor: pointer;
}
.db-remove:hover { background: var(--brand-dark); }

/* "Max children reached" note sits just above the with-data cloud band. The
   pencil-boy figure (.db-figure) is taller than the band and overflows upward,
   so reserve extra clearance below the note to stop the figure overlapping it. */
.db-maxnote { margin-bottom: 3rem; }
@media (min-width: 768px) { .db-maxnote { margin-bottom: 5.5rem; } }

/* Bottom cloud band with figures */
.db-bottom {
  position: relative; background: var(--cloud-yellow);
  margin-top: 80px; height: 120px; overflow: visible;
  display: flex; justify-content: center; align-items: flex-end;
}
.db-bottom-empty { justify-content: space-between; padding: 0 4%; }
.db-cloud-edge {
  position: absolute; left: 0; bottom: 100%; width: 100%; height: auto;
  margin-bottom: -2px; display: block; pointer-events: none; z-index: 1;
}
.db-figure   { position: relative; z-index: 5; height: 240px; width: auto; display: block; }
.db-band-kid { position: relative; z-index: 5; height: 215px; width: auto; display: block; }
.db-band-add { align-self: center; margin-bottom: 18px; }
@media (min-width: 768px) {
  .db-figure   { height: 300px; }
  .db-band-kid { height: 250px; }
}

/* ============================================================
   Add a Child (child-form.html) — reuses the dashboard shell + signup form bits.
   Prefixed .cf-.
   ============================================================ */
.cf-photo {
  flex: 0 0 auto; width: 160px; height: 130px; border-radius: 12px;
  background: #d9d9d9; border: 2px dashed #b0b0b0; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.5rem;
  font-family: 'Patrick Hand', cursive; color: #6b7280; font-size: 0.95rem;
}
.cf-photo-img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative yellow cloud band at the foot of the page (no buttons) */
.cf-band {
  position: relative; background: var(--cloud-yellow); margin-top: 60px; height: 110px;
}

/* ============================================================
   Child detail / results page (child.html) — gray top, blue results section.
   Prefixed .rp-.
   ============================================================ */
:root { --rp-blue: #1ba6e6; }
.rp-page { background: #f1f1f1; }
.rp-page #app { min-height: 100vh; display: flex; flex-direction: column; }
.rp-page footer { margin-top: 0; }
.rp-cloud-top { display: block; width: 100%; height: auto; margin: 0; }

.rp-name { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 2.3rem; line-height: 1.05; }
.rp-meta { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.12rem; line-height: 1.45; }
.rp-edit {
  font-family: 'Patrick Hand', cursive; font-size: 1rem; background: #d9d9d9; color: #333;
  border-radius: 8px; padding: 0.35rem 1.1rem; text-decoration: none; display: inline-block; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.rp-photo {
  flex: 0 0 auto; width: 170px; height: 140px; border-radius: 12px; background: #d9d9d9;
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  font-family: 'Patrick Hand', cursive; color: #6b7280; font-size: 0.95rem; padding: 0.5rem;
}
.rp-photo-img { width: 100%; height: 100%; object-fit: cover; }

/* Blue results section with a cloud edge (the cloud shape reused via mask, recoloured blue) */
.rp-blue {
  position: relative; background: var(--rp-blue); flex: 1 1 auto;
  margin-top: 64px; padding: 1.25rem 0 2.5rem;
}
.rp-blue::before {
  content: ''; position: absolute; left: 0; bottom: 100%; width: 100%; height: 56px; background: var(--rp-blue);
  -webkit-mask: url('../img/cloud-bottom.png') no-repeat center bottom; -webkit-mask-size: 100% 100%;
          mask: url('../img/cloud-bottom.png') no-repeat center bottom;         mask-size: 100% 100%;
}
.rp-intro   { font-family: 'Patrick Hand', cursive; color: #fff; text-align: center; font-size: 1.2rem; line-height: 1.45; }
.rp-heading { font-family: 'Patrick Hand', cursive; color: #ffd100; text-align: center; font-size: 1.9rem; }
.rp-sub     { font-family: 'Patrick Hand', cursive; color: #fff; text-align: center; font-size: 1rem; }

.rp-term-card {
  background: #fff; border-radius: 14px; padding: 1.2rem 1rem 1.1rem; text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.rp-term-title { font-family: 'Patrick Hand', cursive; color: var(--brand); font-size: 1.7rem; line-height: 1; }
.rp-term-sub   { font-family: 'Patrick Hand', cursive; color: #9ca3af; font-size: 1.2rem; }
.rp-btn {
  font-family: 'Patrick Hand', cursive; font-size: 1.15rem; width: 100%; color: #fff; border: 0;
  border-radius: 8px; padding: 0.4rem 1rem; text-decoration: none; display: inline-block; cursor: pointer;
  background: var(--brand);
}
.rp-btn:hover  { background: var(--brand-dark); }
.rp-btn.view   { background: #36a93b; }
.rp-btn.view:hover { background: #2f9a34; }
.rp-term-status { font-family: 'Patrick Hand', cursive; color: #9ca3af; font-size: 0.92rem; }
.rp-submit {
  font-family: 'Patrick Hand', cursive; font-size: 1.4rem; background: var(--brand); color: #fff; border: 0;
  border-radius: 10px; padding: 0.6rem 3rem; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.rp-submit:hover    { background: var(--brand-dark); }
.rp-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.cf-btn-cancel {
  font-family: 'Patrick Hand', cursive; font-size: 1.2rem; background: #d9d9d9; color: #333;
  border: 0; border-radius: 999px; padding: 0.6rem 2.2rem; text-decoration: none; display: inline-block;
  cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,0.12);
}
.cf-btn-cancel:hover { background: #cccccc; }
