/* ==========================================================================
   The Stranger Co. theme (colours from the client's logo)

   Contents
   1. Tokens
   2. Base
   3. Shared pieces (section, tagline, blob, float)
   4. Buttons
   5. Header
   6. Cards and icons
   7. Forms and registration
   8. Footer
   9. Landing page
        9a. Hero (paper background, text, pen divider, postmark)
        9b. The idea
        9c. What we offer
        9d. How it works
        9e. Closing call to action
   10. Admin
   11. Reduced motion
   ========================================================================== */


/* ---------- 1. Tokens ---------- */
:root {
  --sc-red: #E3234F;
  --sc-red-deep: #D41F4A;        /* button backgrounds (white text stays readable) */
  --sc-red-darker: #B8183F;      /* hover */
  --sc-blue-soft: #E3EAF4;
  --sc-ink: #1B1B1F;
  --sc-muted: #5B5F6B;
  --sc-white: #FFFFFF;

  --sc-shadow: 0 10px 30px rgba(27, 27, 31, .05);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Allura', cursive;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--sc-ink);
  --bs-body-bg: var(--sc-white);
  --bs-link-color: var(--sc-red-deep);
  --bs-link-hover-color: var(--sc-red-darker);
}


/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--sc-ink);
  background: var(--sc-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sc-ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { color: var(--sc-ink); }
.text-muted-sc { color: var(--sc-muted); }
.lead { font-size: 1.2rem; font-weight: 300; }

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sc-red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sc-ink); color: #fff; padding: .6rem 1rem; z-index: 2000;
}
.skip-link:focus { left: 0; color: #fff; }


/* ---------- 3. Shared pieces ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--sc-blue-soft); }

.script-accent { font-family: var(--font-script); color: var(--sc-red); font-weight: 400; }

/* ANONYMOUS. HANDWRITTEN. HUMAN. with thin red rules, like the logo */
.tagline {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-body); font-weight: 400;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sc-red);
}
.tagline::before, .tagline::after {
  content: ''; height: 1px; width: 48px; background: var(--sc-red);
}

/* Soft organic blob, like the shape behind the bird */
.blob {
  background: var(--sc-blue-soft);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* Gentle floating motion (used on the bird) */
.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}


/* ---------- 4. Buttons ---------- */
.btn-sc {
  background: var(--sc-red-deep); border: 2px solid var(--sc-red-deep); color: #fff;
  border-radius: 999px; padding: .75rem 1.9rem;
  font-weight: 500; letter-spacing: .02em;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-sc:hover, .btn-sc:focus {
  background: var(--sc-red-darker); border-color: var(--sc-red-darker); color: #fff;
  transform: translateY(-1px);
}
.btn-sc.btn-sm { padding: .45rem 1.2rem; font-size: .95rem; }
.btn-sc .bi { font-size: 1.05em; vertical-align: -.1em; }

.btn-sc-outline {
  background: transparent; border: 2px solid var(--sc-red-deep); color: var(--sc-red-deep);
  border-radius: 999px; padding: .75rem 1.9rem; font-weight: 500;
}
.btn-sc-outline:hover { background: var(--sc-red-deep); color: #fff; }
.btn-sc-outline.btn-sm { padding: .4rem 1.1rem; font-size: .95rem; }

/* White button for the red call-to-action band */
.btn-sc-light {
  background: #fff; border: 2px solid #fff; color: var(--sc-red-deep);
  border-radius: 999px; padding: .75rem 1.9rem; font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn-sc-light:hover, .btn-sc-light:focus {
  background: var(--sc-blue-soft); border-color: var(--sc-blue-soft);
  color: var(--sc-red-darker); transform: translateY(-1px);
}


/* ---------- 5. Header ---------- */
.sc-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.sc-header.scrolled {
  border-bottom-color: var(--sc-blue-soft);
  box-shadow: 0 2px 12px rgba(27, 27, 31, .05);
}
.sc-header .navbar-brand img { height: 40px; width: auto; }
.sc-header .nav-link { color: var(--sc-ink); font-weight: 400; }
.sc-header .nav-link:hover { color: var(--sc-red-deep); }


/* ---------- 6. Cards and icons ---------- */
/* Used in "How it works" and "Built around your privacy" */
.sc-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1.25rem; padding: 1.75rem; height: 100%;
}
#safety .sc-card { box-shadow: 0 8px 24px rgba(27, 27, 31, .05); }   /* safety sits on white */

.sc-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--sc-blue-soft); color: var(--sc-red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

.step-num { font-family: var(--font-script); font-size: 3.2rem; color: var(--sc-red); line-height: 1; }


/* ---------- 7. Forms and registration ---------- */
.form-label { font-weight: 500; }
.form-control, .form-select {
  border-radius: .75rem; padding: .7rem 1rem; border: 1px solid #cfd6e4;
}
.form-control:focus, .form-select:focus {
  border-color: var(--sc-red);
  box-shadow: 0 0 0 .2rem rgba(227, 35, 79, .18);
}
.form-check-input:checked { background-color: var(--sc-red-deep); border-color: var(--sc-red-deep); }

.form-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sc-shadow);
}
.privacy-note {
  background: var(--sc-blue-soft); border-radius: .75rem;
  padding: 1rem 1.25rem; font-size: .9rem;
}
.privacy-note strong { font-weight: 600; }


/* ---------- 8. Footer ---------- */
.sc-footer { border-top: 1px solid var(--sc-blue-soft); padding: 3rem 0 2rem; background: var(--sc-white); }
.sc-footer img.footer-logo { max-width: 260px; height: auto; }
.sc-footer a { color: var(--sc-ink); }
.sc-footer a:hover { color: var(--sc-red-deep); }
.sc-footer .small { color: var(--sc-muted); }


/* ---------- 9. Landing page ---------- */

/* ----- 9a. Hero ----- */

/* Blue-white letter paper with a faint stationery pattern and an airmail edge.
   Pattern colour is %23BCCDE6 inside the image below; lighten or darken it there. */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background-color: #F5F8FC;
  background-image:
    /* bright centre so the pattern stays away from the text */
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, 0) 72%),
    /* envelope, heart, pencil, stamp and sparkles */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340' viewBox='0 0 340 340' fill='none' stroke='%23C9D7EB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(-8 60 69)'%3E%3Crect x='38' y='54' width='44' height='30' rx='3'/%3E%3Cpath d='M38 56 L60 72 L82 56'/%3E%3C/g%3E%3Cg transform='rotate(-8 230 240)'%3E%3Crect x='208' y='225' width='44' height='30' rx='3'/%3E%3Cpath d='M208 227 L230 243 L252 227'/%3E%3C/g%3E%3Cg transform='rotate(40 230 72)'%3E%3Crect x='225' y='46' width='10' height='44' rx='1.5'/%3E%3Cpath d='M225 90 L230 100 L235 90'/%3E%3Cpath d='M225 55 H235'/%3E%3C/g%3E%3Cg transform='rotate(40 60 242)'%3E%3Crect x='55' y='216' width='10' height='44' rx='1.5'/%3E%3Cpath d='M55 260 L60 270 L65 260'/%3E%3Cpath d='M55 225 H65'/%3E%3C/g%3E%3Cpath d='M145 151 v8 M141 155 h8'/%3E%3Cpath d='M315 321 v8 M311 325 h8'/%3E%3C/svg%3E"),
    /* soft pale-blue glows in two corners */
    radial-gradient(circle at 10% 15%, rgba(227, 234, 244, .95) 0, rgba(227, 234, 244, 0) 42%),
    radial-gradient(circle at 92% 85%, rgba(227, 234, 244, .85) 0, rgba(227, 234, 244, 0) 45%),
    linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
    background-size: auto, 340px 340px, auto, auto, auto;
}
@media (max-width: 575.98px) {
  .hero { background-size: auto, 260px 260px, auto, auto, auto; }
}

/* Airmail stripe along the bottom edge, like the border of an air-mail envelope */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--sc-red) 0 14px, #FFFFFF 14px 24px, #BFD0EA 24px 38px, #FFFFFF 38px 48px);
  opacity: .85;
}

.hero > .container { position: relative; z-index: 1; }

/* Faint postmark stamp in the top corner (hidden on phones in the HTML) */
.hero-postmark {
  position: absolute; top: 1.25rem; right: clamp(1rem, 6vw, 5rem);
  width: clamp(96px, 9vw, 130px); height: auto;
  color: var(--sc-red); opacity: .38; transform: rotate(14deg);
  mix-blend-mode: multiply;   /* lets the white of bird.png blend into the paper */
  pointer-events: none;
}
/* Dotted flight path with a little paper plane (desktop only) */
.hero-route {
  position: absolute; left: clamp(1rem, 4vw, 4rem); bottom: 2.75rem;
  width: clamp(180px, 22vw, 320px); aspect-ratio: 2 / 1;
  color: var(--sc-red); opacity: .4; pointer-events: none;
}
.hero-route svg { display: block; width: 100%; height: 100%; }
.hero-route .bi {
  position: absolute; left: 87%; top: 27%; transform: translate(-50%, -50%);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}
.hero-postmark text { font-family: var(--font-body); font-weight: 500; }

/* Bird on the blue blob (also used on the thank-you and 404 pages) */
.hero-bird {
  width: min(240px, 60vw); aspect-ratio: 1 / 1; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.hero-bird img { width: 52%; height: auto; }

/* Hero text: each line stays on one line at any screen width */
.hero-tagline {
  white-space: nowrap;
  font-size: clamp(.62rem, 3.1vw, .85rem);
  letter-spacing: .22em;
  gap: clamp(.4rem, 1.6vw, 1rem);
  margin: 0 0 1.25rem;
}
.hero-tagline::before, .hero-tagline::after { width: clamp(20px, 5vw, 48px); }
@media (max-width: 575.98px) {
  .hero-tagline::before, .hero-tagline::after { display: none; }
}

.hero-title {
  font-size: clamp(1rem, 4.9vw, 3.75rem);   /* lower 4.9vw if it ever wraps */
  line-height: 1.15;
  margin-bottom: .4rem;
  text-wrap: balance;
}
.hero-title .script-accent { font-size: 1.25em; line-height: 1; }

.hero-sub {
  font-size: clamp(.8rem, 3.5vw, 1.35rem);  /* lower 3.5vw if it ever wraps */
  font-weight: 400;
  margin: 0 0 1.75rem;
}
.hero-sub .script-accent { font-size: 1.45em; line-height: 1; }

/* Thin red rule with a pen in the middle, like the rules around the logo tagline */
.pen-divider {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.5rem, 2vw, 1rem);
  max-width: 260px; margin: 0 auto 1rem; color: var(--sc-red);
}
.pen-divider::before, .pen-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--sc-red);
}
.pen-divider .bi {
  font-size: 1.2rem; display: inline-block; transform-origin: bottom left;
  animation: pen-write 3s ease-in-out infinite;
}
@keyframes pen-write {
  0%, 100% { transform: translateX(0) rotate(0); }
  50%      { transform: translateX(4px) rotate(-8deg); }
}

/* Temporary "Launching soon" note (delete the element in index.php at launch) */
.launch-note { font-size: 1.9rem; line-height: 1; margin-top: 1rem; }


/* ----- 9b. The idea ----- */
.concept-lead {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.35;
  text-align: center; margin-bottom: 1.5rem;
}
.concept-lead::after {
  content: ''; display: block; width: 56px; height: 2px;
  background: var(--sc-red); margin: 1.1rem auto 0;
}
@media (min-width: 992px) {
  .concept-lead { text-align: left; }
  .concept-lead::after { margin-left: 0; }
}

/* Body text: left-aligned on phones, justified from tablet width up */
.concept-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.15rem); line-height: 1.85;
  text-align: left; margin-bottom: 1.25rem;
}
.concept-body p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .concept-body p { text-align: justify; text-justify: inter-word; hyphens: auto; }
}

/* Right-hand card with the closing line */
.concept-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1.25rem; padding: 2.5rem 1.5rem;
  box-shadow: var(--sc-shadow);
}
@media (min-width: 992px) { .concept-card { transform: rotate(-1.2deg); } }
.concept-card .bi { display: block; font-size: 2rem; color: var(--sc-red); margin-bottom: .75rem; }
.concept-card-text {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.3; margin: 0;
}
.concept-card-text .script-accent { font-style: normal; font-size: 1.25em; }

/* Privacy strip under both columns */
.privacy-strip {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  max-width: 760px; margin-left: auto; margin-right: auto;
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1rem; padding: 1rem 1.5rem;
  text-align: center; font-weight: 500;
}
.privacy-strip .bi { color: var(--sc-red); font-size: 1.4rem; flex-shrink: 0; }


/* ----- 9c. What we offer ----- */
.offer-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-top: 4px solid var(--sc-red); border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%;
  box-shadow: var(--sc-shadow);
}
.offer-card .sc-icon { margin-bottom: 1rem; }
.offer-card h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .1rem; }
.offer-card p { line-height: 1.8; }
.offer-sub {
  font-family: var(--font-script); color: var(--sc-red);
  font-size: 1.8rem; line-height: 1.1; margin-bottom: 1.1rem;
}
.offer-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.offer-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .6rem; line-height: 1.7; }
.offer-list .bi { color: var(--sc-red); margin-top: .3rem; flex-shrink: 0; }


/* ----- 9d. How it works (Letters to the Future steps) ----- */
.future-steps {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem);
}
.future-list {
  list-style: none; margin: 0; padding: 0; counter-reset: fs;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.future-list li { text-align: center; font-weight: 500; counter-increment: fs; }
.future-list li::before {
  content: counter(fs); display: block; line-height: 1;
  font-family: var(--font-script); font-size: 2.4rem; color: var(--sc-red);
}
@media (max-width: 767.98px) { .future-list { grid-template-columns: repeat(2, 1fr); } }


/* ----- 9e. Closing call to action ----- */
.cta-band { background: var(--sc-red-deep); color: #fff; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }


/* ---------- 10. Admin ---------- */
.admin-body { background: #F6F8FB; min-height: 100vh; }

.stat-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1rem; padding: 1.25rem 1.5rem;
}
.stat-card .num {
  font-family: var(--font-heading); font-size: 2.4rem; font-weight: 600;
  color: var(--sc-red-deep); line-height: 1;
}
.stat-card .label { color: var(--sc-muted); font-size: .9rem; margin-top: .35rem; }

.admin-table th {
  font-weight: 500; color: var(--sc-muted); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.admin-table td { vertical-align: middle; }

.pagination .page-link { color: var(--sc-red-deep); }
.pagination .page-item.active .page-link {
  background: var(--sc-red-deep); border-color: var(--sc-red-deep); color: #fff;
}

/* ---------- Step-by-step form ---------- */
.wizard-progress { margin-bottom: 2rem; }
.wizard-panel .reg-section { margin-bottom: 0; }

/* Numbered steps on tablet and desktop */
.wizard-steps { display: none; list-style: none; margin: 0; padding: 0; }
.wizard-step-item {
  flex: 1; min-width: 0; position: relative; text-align: center;
  font-size: .78rem; color: var(--sc-muted);
}
.wizard-step-item::before {
  content: ''; position: absolute; top: 15px; left: -50%; width: 100%;
  height: 2px; background: var(--sc-blue-soft); z-index: 0;
}
.wizard-step-item:first-child::before { display: none; }
.wizard-step-item.done::before,
.wizard-step-item.current::before { background: var(--sc-red); }
.wizard-dot {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: .35rem; border-radius: 50%;
  background: var(--sc-white); border: 2px solid var(--sc-blue-soft); font-weight: 500;
}
.wizard-step-item.current .wizard-dot { border-color: var(--sc-red); color: var(--sc-red-deep); }
.wizard-step-item.done .wizard-dot { background: var(--sc-red-deep); border-color: var(--sc-red-deep); color: #fff; }
.wizard-label { display: block; }
.wizard-step-item.current .wizard-label { color: var(--sc-ink); font-weight: 500; }

/* Short text and a thin bar on phones */
.wizard-mobile { font-weight: 500; }
.wizard-mobile .progress { height: 6px; margin-top: .5rem; background: var(--sc-blue-soft); }
.wizard-mobile .progress-bar { background: var(--sc-red-deep); transition: width .3s; }

@media (min-width: 768px) {
  .wizard-steps { display: flex; }
  .wizard-mobile { display: none; }
}

.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.wizard-nav [hidden] { display: none !important; }

/* Review summary on the last step */
/*.review-box { background: var(--sc-blue-soft); border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.review-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.review-list dt { font-weight: 500; color: var(--sc-muted); }
.review-list dd { margin: 0; overflow-wrap: anywhere; }*/

/* ==================================================================================================*/

.review-box {
  background: var(--sc-blue-soft);
  border-radius: 1rem;
  padding: clamp(0.875rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 0.5rem clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  width: 100%;
  min-width: 0;
}

.review-list dt {
  font-weight: 500;
  color: var(--sc-muted);
  overflow-wrap: anywhere;
  min-width: 0;
}

.review-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Tablets and smaller screens */
@media (max-width: 768px) {
  .review-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .review-list dt {
    margin-top: 0.5rem;
  }

  .review-list dt:first-child {
    margin-top: 0;
  }

  .review-list dd {
    margin-bottom: 0.5rem;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .review-box {
    padding: 0.875rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .review-list {
    font-size: 0.9375rem;
    gap: 0.25rem;
  }
}



/*=====================================================================================================*/
.btn-link-sc {
  background: none; border: 0; padding: 0; margin-left: .5rem; cursor: pointer;
  color: var(--sc-red-deep); font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Thank-you page: ID card ---------- */
.id-card {
  max-width: 450px; margin: 2rem auto; padding: 1.5rem 1.25rem;
  background: var(--sc-white); border: 2px dashed var(--sc-red);
  border-radius: 1.25rem; box-shadow: var(--sc-shadow);
}
.id-label {
  margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sc-red);
}
.id-value {
  margin: 0; font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: .08em; line-height: 1.1;
  color: var(--sc-ink); user-select: all;
}
.id-note { margin: .9rem 0 0; font-size: .9rem; color: var(--sc-muted); }

/* ---------- Admin: applications ---------- */
.pkg-pill {
  display: inline-block; padding: .15rem .7rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500; white-space: nowrap;
  background: var(--sc-blue-soft); color: var(--sc-ink);
}
.pkg-pill.pkg-penfriend { background: rgba(227, 35, 79, .10); color: var(--sc-red-darker); }
.pkg-pill.pkg-both { background: var(--sc-red-deep); color: #fff; }

.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .9rem;
  border: 1px solid #cfd6e4; border-radius: 999px; background: var(--sc-white);
  color: var(--sc-ink); text-decoration: none; font-size: .95rem;
}
.filter-pills a span { color: var(--sc-muted); font-size: .85rem; }
.filter-pills a:hover { border-color: var(--sc-red); }
.filter-pills a.active { background: var(--sc-red-deep); border-color: var(--sc-red-deep); color: #fff; }
.filter-pills a.active span { color: rgba(255, 255, 255, .85); }

.detail-card {
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}
.detail-card h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.detail-list { display: grid; grid-template-columns: 12rem 1fr; gap: .45rem 1rem; margin: 0; }
.detail-list dt { font-weight: 500; color: var(--sc-muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .detail-list { grid-template-columns: 1fr; gap: 0; }
  .detail-list dt { margin-top: .6rem; }
}

/* ---------- Journey total ---------- */
.journey-total {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--sc-blue-soft);
}
.journey-total-label { font-weight: 500; }
.journey-total-note { color: var(--sc-muted); font-size: .9rem; }
.journey-total-amount {
  font-family: var(--font-heading); font-weight: 600; font-size: 2rem;
  color: var(--sc-red-deep); line-height: 1;
}

/* ---------- Offer pricing ---------- */
.price-old { color: var(--sc-muted); text-decoration: line-through; font-weight: 400; margin-right: .4rem; }
.price-now { color: var(--sc-red-deep); font-weight: 600; }
.package-price { font-size: 1.25rem; }
.offer-badge {
  display: inline-block; margin: .35rem 0 .15rem; padding: .15rem .7rem; border-radius: 999px;
  background: var(--sc-red-deep); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.journey-total-amount .price-old { font-family: var(--font-body); font-size: 1.1rem; }

/* ---------- Classified preview ---------- */
.classified {
  max-width: 460px; margin: .5rem auto 0; padding: 1.5rem 1.5rem 1.25rem;
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-top: 5px solid var(--sc-red); border-radius: 1rem; box-shadow: var(--sc-shadow);
}
.classified-brand { margin-bottom: .75rem; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--sc-red); }
.classified-name { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.8rem; line-height: 1.15; overflow-wrap: anywhere; }
.classified-meta { min-height: 1.4em; margin-bottom: .75rem; color: var(--sc-muted); font-size: .9rem; }
.classified-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.classified-tags span { padding: .1rem .65rem; border-radius: 999px; background: var(--sc-blue-soft); font-size: .85rem; }
.classified-words { margin: 0 0 .6rem; font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; overflow-wrap: anywhere; }
.classified-day, .classified-bio { margin: 0 0 .6rem; font-size: .95rem; overflow-wrap: anywhere; }
.classified-words:empty, .classified-day:empty, .classified-bio:empty, .classified-tags:empty { display: none; }

/* ---------- Letter to the Future: kit and agreement ---------- */
.kit-box { padding: 1.1rem 1.25rem; border-radius: 1rem; background: var(--sc-blue-soft); }
.agree-title { margin: 1.5rem 0 .6rem; font-size: 1.25rem; }

/* Agreement: the statements are read-only; the single tick at the bottom confirms them all */
.agree-list { list-style: none; margin: 0; padding: 0; }
.agree-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .65rem; line-height: 1.6; }
.agree-mark {
  flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: .3rem;
  background: #FFFFFF; border: 1px solid #adb5bd; border-radius: .25rem;
  transition: background-color .2s, border-color .2s;
}
.wizard-panel.agreed .agree-mark {
  background: var(--sc-red-deep) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") center / 80% no-repeat;
  border-color: var(--sc-red-deep);
}
.agree-confirm { padding: .9rem 1rem .9rem 2.4rem; border-radius: .75rem; background: var(--sc-blue-soft); font-weight: 500; }

/* ---------- Multi-select dropdown ---------- */
.ms { position: relative; }
.ms .ms-box { display: none; }
.ms.ms-ready .ms-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  min-height: 2.9rem; padding: .3rem .6rem; cursor: text;
  background: var(--sc-white); border: 1px solid #cfd6e4; border-radius: .75rem;
}
.ms.ms-ready .ms-box:focus-within { border-color: var(--sc-red); box-shadow: 0 0 0 .2rem rgba(227, 35, 79, .18); }
.ms.is-invalid .ms-box { border-color: #dc3545; }
.ms-chips { display: contents; }
.ms-chip {
  display: inline-flex; align-items: center; gap: .2rem; padding: .15rem .3rem .15rem .75rem;
  border-radius: 999px; background: var(--sc-blue-soft); font-size: .92rem;
}
.ms-chip button {
  border: 0; background: none; padding: 0 .3rem; line-height: 1;
  font-size: 1.15rem; color: var(--sc-muted); cursor: pointer;
}
.ms-chip button:hover { color: var(--sc-red-deep); }
.ms-input {
  flex: 1 1 8rem; min-width: 6rem; padding: .3rem .1rem;
  border: 0; outline: 0; background: transparent; font: inherit;
}
.ms-toggle { border: 0; background: none; padding: 0 .3rem; color: var(--sc-muted); cursor: pointer; }

.ms.ms-ready .ms-panel {
  display: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .35rem);
  max-height: min(280px, 50vh); overflow-y: auto; padding: .5rem;
  background: var(--sc-white); border: 1px solid var(--sc-blue-soft);
  border-radius: .75rem; box-shadow: 0 12px 30px rgba(27, 27, 31, .12);
}
.ms.ms-ready.is-open .ms-panel { display: block; }
.ms-option { display: flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: .5rem; }
.ms-option:hover { background: var(--sc-blue-soft); }
.ms-option label { flex: 1; margin: 0; cursor: pointer; }
.ms-option[hidden], .ms-add[hidden], .ms-empty[hidden] { display: none; }
.ms-add {
  display: block; width: 100%; padding: .45rem .5rem; border: 0; border-radius: .5rem;
  background: none; text-align: left; font-weight: 500; color: var(--sc-red-deep); cursor: pointer;
}
.ms-add:hover { background: var(--sc-blue-soft); }
.ms-empty { padding: .45rem .5rem; color: var(--sc-muted); font-size: .92rem; }

/* ---------- Classified card (thank-you page and admin) ---------- */
.postcard {
  position: relative; max-width: 520px; margin: 2rem auto 0; text-align: left;
  background: linear-gradient(160deg, #FFFFFF 0%, #F1F5FB 100%);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(27, 27, 31, .12), 0 2px 6px rgba(27, 27, 31, .06);
}
@media (min-width: 768px) { .postcard { transform: rotate(-.8deg); } }
.postcard.flat { transform: none; margin-left: 0; }

/* A strip of tape holding the card up */
.postcard-tape {
  position: absolute; top: -12px; left: 50%; z-index: 2;
  width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(191, 208, 234, .8); box-shadow: 0 1px 3px rgba(27, 27, 31, .15);
}

/* Airmail stripe along the top and bottom */
.postcard-stripe {
  height: 10px; opacity: .9;
  background: repeating-linear-gradient(-45deg,
    var(--sc-red) 0 14px, #FFFFFF 14px 24px, #BFD0EA 24px 38px, #FFFFFF 38px 48px);
}
.postcard-stripe.top { border-radius: 1.25rem 1.25rem 0 0; }
.postcard-stripe.bottom { border-radius: 0 0 1.25rem 1.25rem; }

.postcard-body { padding: 1.5rem 1.75rem 1.25rem; }
.postcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.postcard-brand {
  padding-top: .35rem; font-size: .7rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--sc-red);
}

/* Little postage stamp with the bird */
.postcard-stamp {
  flex-shrink: 0; width: 70px; padding: 8px 6px 5px; text-align: center;
  background: #FFFFFF; border: 2px dashed rgba(227, 35, 79, .55); outline: 4px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(27, 27, 31, .18); transform: rotate(4deg);
}
.postcard-stamp img { display: block; width: 42px; height: auto; margin: 0 auto 2px; }
.postcard-stamp span {
  font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-red-deep);
}

.postcard-name {
  margin: .25rem 0 0; font-family: var(--font-script); font-weight: 400; color: var(--sc-red);
  font-size: clamp(2.6rem, 8vw, 3.4rem); line-height: 1.05; overflow-wrap: anywhere;
  display: inline; margin-right: 8px;
}
/* Age and gender: black, simple font */
.postcard-meta {
  margin: .15rem 0 .35rem; color: var(--sc-ink);
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem;
  display: inline;
}
/* Who the member would like to hear from */
.postcard-pref {
  margin: .1rem 0 .4rem; color: var(--sc-ink);
  font-family: var(--font-body); font-size: .98rem; line-height: 1.5;
}
.postcard-label {
  margin: 1.1rem 0 .4rem; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sc-red);
}
.postcard-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.postcard-tags span { padding: .15rem .75rem; border-radius: 999px; background: var(--sc-blue-soft); font-size: .88rem; }
.postcard-words {
  margin: 1.1rem 0 0; padding-left: .9rem; border-left: 3px solid var(--sc-red);
  font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; line-height: 1.35;
  overflow-wrap: anywhere;
}
.postcard-day, .postcard-bio { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.postcard-lang { margin-top: 1rem; color: var(--sc-muted); font-size: .9rem; }
.postcard-lang .bi { margin-right: .25rem; color: var(--sc-red); }

/* Pen Pal ID on a tear-off line */
.postcard-id {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.4rem; padding-top: 1rem; border-top: 2px dashed #C9D7EB;
}
.postcard-id .postcard-label { margin: 0; }
.postcard-id strong {
  font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: .06em;
  color: var(--sc-ink); user-select: all;
}
.postcard-note { max-width: 520px; margin: 1.25rem auto 0; font-size: .9rem; color: var(--sc-muted); }
.postcard-place { margin: 0 0 .5rem; font-size: .95rem; }
.postcard-place .bi { margin-right: .2rem; color: var(--sc-red); }

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .pen-divider .bi { animation: none; }
  .btn-sc, .btn-sc-light, .sc-header { transition: none; }
  .btn-sc:hover, .btn-sc:focus,
  .btn-sc-light:hover, .btn-sc-light:focus { transform: none; }
  .wizard-mobile .progress-bar { transition: none; }
}

/* ============ Full registration form ============ */
.reg-section { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.reg-section legend {
  float: none; width: auto; padding: 0; margin-bottom: .35rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.2;
}
.reg-section legend .reg-letter {
  font-family: var(--font-script); font-weight: 400; color: var(--sc-red);
  font-size: 1.6em; margin-right: .5rem; line-height: 1;
}
.reg-hint { color: var(--sc-muted); font-size: .95rem; margin-bottom: 1rem; }
.reg-quote {
  font-family: var(--font-script); color: var(--sc-red); text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin: 2rem 0;
}
.req-note {
  display: inline-block; margin: 0 0 1rem; padding: .35rem .75rem;
  background: rgba(227, 35, 79, .08); color: var(--sc-red-darker);
  border-radius: .5rem; font-size: .9rem;
}

.commit-box { background: var(--sc-blue-soft); border-radius: 1rem; padding: 1.25rem 1.5rem 1.25rem 1.25rem; margin-bottom: 1rem; }
.commit-box ul { margin: 0; padding-left: 1.2rem; }
.commit-box li { margin-bottom: .5rem; font-size: .97rem; line-height: 1.6; }
.commit-box li:last-child { margin-bottom: 0; }

/* Package cards (radio buttons) */
.package-option { position: relative; margin-bottom: .9rem; }
.package-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.package-card {
  display: block; cursor: pointer; padding: 1.1rem 1.25rem;
  border: 2px solid var(--sc-blue-soft); border-radius: 1rem; background: var(--sc-white);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.package-card:hover { border-color: #c5d3ea; }
.package-input:checked + .package-card {
  border-color: var(--sc-red); background: #FFF8FA;
  box-shadow: 0 6px 18px rgba(227, 35, 79, .10);
}
.package-input:focus-visible + .package-card { outline: 3px solid var(--sc-red); outline-offset: 3px; }
.package-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.package-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.45rem; }
.package-price { font-weight: 600; color: var(--sc-red-deep); white-space: nowrap; }
.package-tagline {
  display: block; font-family: var(--font-script); color: var(--sc-red);
  font-size: 1.5rem; line-height: 1.1; margin: .1rem 0 .4rem;
}
.package-text { display: block; color: var(--sc-muted); font-size: .95rem; line-height: 1.6; }
/* A service that is shown but cannot be chosen yet */
.package-option.is-soon .package-card {
  cursor: not-allowed; background: #F7F8FB; border-style: dashed; border-color: #D7DEEA; opacity: .8;
}
.package-option.is-soon .package-card:hover { border-color: #D7DEEA; }
.package-option.is-soon .package-name,
.package-option.is-soon .package-text { color: var(--sc-muted); }
.offer-badge.soon { background: var(--sc-blue-soft); color: var(--sc-ink); }
.offer-card.is-soon { border-top-color: #BFD0EA; }

/* Interest chips */
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-block; padding: .35rem .9rem; cursor: pointer; font-size: .95rem;
  border: 1px solid #cfd6e4; border-radius: 999px; background: var(--sc-white);
  transition: background .15s, border-color .15s, color .15s;
}
.chip label:hover { border-color: var(--sc-red); }
.chip input:checked + label { background: var(--sc-red-deep); border-color: var(--sc-red-deep); color: #fff; }
.chip input:focus-visible + label { outline: 3px solid var(--sc-red); outline-offset: 2px; }