/*
 * ============================================================================
 * FILE:        public/css/styles.css
 * PURPOSE:     Site-wide styles for GroupOff (gogroupoff.com): the landing
 *              page brand mark, plus the oTo-Tour Driver License flow (the
 *              pre-application form, the mock payment page, and the
 *              confirmation page). Frontend stays dependency-free — plain
 *              CSS, no framework.
 * WRITTEN BY:  William Munnich (humanonastick@gmail.com)
 * ASSISTED BY: Claude Fable 5 (Anthropic AI pair programmer)
 * CREATED:     2026-06-30 (landing page styles)
 * LAST EDITED: 2026-07-06 — added license form / payment / confirmation styles
 * ============================================================================
 */

:root {
  --bg: #faf6ec;
  --fg: #2c5d4a;
  --accent: #34c98a;
  --card: #ffffff;
  --line: #d8d2c0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* ---------------------------------------------------------------- landing */

.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.landing-inner {
  text-align: center;
}

.brand {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.landing-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

.landing-cta:hover {
  background: var(--accent);
}

/* Live "N signed up for the license" figure under the landing CTA. */
.rider-count {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.rider-count strong {
  color: var(--accent);
  font-size: 1.1rem;
}

/* First-1,000 signups $20-off banner. */
.discount-banner {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.discount-banner strong {
  color: var(--accent);
}

/* --------------------------------------------- license flow: page scaffold */

.form-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.form-page--narrow {
  max-width: 32rem;
}

.form-header h1 {
  margin: 0.25rem 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.form-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Warning strip reminding everyone this whole flow is a mock. */
.form-mock-banner {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--fg);
  border-radius: 0.5rem;
  background: #fff8dc;
  font-size: 0.85rem;
}

/* ------------------------------------------------- license flow: the form */

.license-form fieldset {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}

.license-form legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

.license-form label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.license-form input[type="text"],
.license-form input[type="date"],
.license-form input[type="tel"],
.license-form input[type="email"],
.license-form input[type="number"],
.license-form select,
.license-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
}

/* License-class option cards: radio + title + discount badge + description
   box. The whole card is the <label>, so clicking anywhere selects it;
   :has(:checked) highlights the chosen class. */
.tier-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tier-card {
  display: block;
  padding: 0.9rem 1rem;
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 400 !important;
}

.tier-card:has(input:checked) {
  border-color: var(--accent);
  background: #f2fbf6;
}

.tier-card input[type="radio"] {
  float: left;
  margin: 0.25rem 0.6rem 0 0;
}

.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tier-title {
  font-weight: 700;
}

.tier-discount {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tier-discount--none {
  background: var(--line);
  color: var(--fg);
}

.tier-desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.83rem;
  line-height: 1.45;
  opacity: 0.85;
}

/* Class-R-only questions: hidden while Class D (or nothing) is selected;
   revealed by the tier-toggle script when Class R is chosen. */
.r-only.r-hidden {
  display: none;
}

/* Multi-column rows on wide screens; stacks naturally on phones. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0 1rem;
}

/* Checkbox rows: box and text on one line, normal weight. */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400 !important;
}

.form-check input {
  margin-top: 0.2rem;
}

.form-placeholder {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.form-submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--fg);
}

.form-footnote {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.form-link {
  color: var(--accent);
  font-weight: 600;
}

/* -------------------------------------- payment + confirmation card pages */

.pay-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}

.id-list {
  margin: 0;
}

.id-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.id-list dt {
  font-weight: 600;
}

.id-list dd {
  margin: 0;
  text-align: right;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pay-fields {
  margin: 1.25rem 0;
  opacity: 0.55;
}

.pay-fields label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.pay-fields input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  background: var(--bg);
}
