/* ==========================================================================
   CARRY N GO — WHOLESALE INQUIRY
   Design concept: a "packing ledger" crossed with the brand's own energy.
   Carry n Go's logo is a bold, condensed, bright-green wordmark with a
   scooter mid-delivery and motion lines — fast, friendly, in motion. The
   form keeps the ledger/receipt structure (step tabs, monospaced SKU tags,
   a running "receipt" review) but is built in the brand's own green/black/
   white, set in the same condensed Archivo Narrow the logo's wordmark uses.
   ========================================================================== */

:root {
  --cream:        #FAFAF7;
  --cream-deep:   #EEF4EC;
  --green:        #2FA836;
  --green-dark:   #1E7A26;
  --green-deep:   #12441A;
  --green-light:  #B7E8AF;
  --ink:          #16191A;
  --ink-soft:     #565F5B;
  --line:         #DDE3DA;
  --white:        #FFFFFF;
  --red:          #D14A2D;
  --red-dark:     #B03A21;

  --font-display: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --font-body:    'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(22, 25, 26, 0.06), 0 6px 16px rgba(22, 25, 26, 0.06);

  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --step-duration: 380ms;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Motion-line accent strip along the very top of the page — echoes the
   speed lines behind the scooter in the logo. */
.tape {
  height: 8px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--green) 0px, var(--green) 14px,
    var(--ink) 14px, var(--ink) 16px,
    var(--cream) 16px, var(--cream) 20px
  );
  flex-shrink: 0;
}

a { color: inherit; }

/* ---------------------------------- header ---------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.header-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
  white-space: nowrap;
}
.header-link:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* ---------------------------------- layout ------------------------------ */

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(16px, 5vw, 24px) 80px;
}

.intro { margin-bottom: 36px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 10px;
}

.intro h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: condensed;
  font-size: clamp(28px, 6.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--green-deep);
  letter-spacing: 0.002em;
}

.lede {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0;
}

/* ---------------------------------- stepper ------------------------------ */

.stepper { margin-bottom: 28px; }

#stepList {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.step {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  border-right: 1px dashed var(--line);
  color: var(--ink-soft);
  position: relative;
  transition: background-color .2s ease, color .2s ease;
  min-width: 0;
}
.step:last-child { border-right: none; }

.step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  opacity: .7;
}

.step-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step.is-active {
  background: var(--green);
  color: var(--white);
}
.step.is-active .step-index { opacity: .9; color: var(--green-light); }

.step.is-complete {
  background: var(--cream-deep);
  color: var(--green-deep);
}
.step.is-complete .step-label::after {
  content: " \2713";
  color: var(--green-dark);
}

/* ---------------------------------- panels & transitions ----------------- */

.panel-frame {
  position: relative;
  overflow: hidden;
}

.panel {
  display: none;
}
.panel.is-active {
  display: block;
}

/* Soft crossfade + slide between steps. Direction is set via a class the
   JS toggles ("dir-forward" / "dir-back") on the frame right before the
   swap, so Continue glides one way and Back glides the other. */
.panel.is-entering {
  animation: panelEnter var(--step-duration) var(--ease-soft) both;
}
.panel.is-leaving {
  animation: panelLeave var(--step-duration) var(--ease-soft) both;
}

@keyframes panelEnter {
  from { opacity: 0; transform: translateX(var(--enter-from, 24px)); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes panelLeave {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(var(--leave-to, -24px)); }
}

.panel-frame.dir-back .panel.is-entering { --enter-from: -24px; }
.panel-frame.dir-back .panel.is-leaving  { --leave-to: 24px; }

.panel-head { margin-bottom: 22px; }

.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 4.4vw, 27px);
  margin: 0 0 8px;
  color: var(--green-deep);
}

.panel-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 60ch;
}

/* ---------------------------------- item groups ------------------------- */

.item-category { margin-bottom: 24px; }

.item-category-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.check-card:hover { border-color: var(--green); }

.check-card input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.check-card:has(input:checked) {
  border-color: var(--green);
  background: var(--cream-deep);
  box-shadow: var(--shadow-card);
}

.check-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.check-card-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-dark);
  letter-spacing: .03em;
}

.check-card-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.check-card-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.check-card--wide {
  margin-bottom: 22px;
  border-color: var(--green-light);
}
.check-card--wide:has(input:checked) {
  border-color: var(--green);
  background: var(--cream-deep);
}

.field-inline { margin-bottom: 4px; }

/* ---------------------------------- quantities --------------------------- */

.qty-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.qty-row-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.qty-row-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-dark);
}

.qty-row-name { font-weight: 600; font-size: 14.5px; }

.qty-row-select-wrap { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

.qty-row select {
  min-width: 190px;
}

.qty-row-error {
  font-size: 12px;
  color: var(--red-dark);
  font-weight: 600;
  display: none;
}

.qty-row.has-error {
  border-color: var(--red);
  background: #FCEFEA;
}
.qty-row.has-error .qty-row-error { display: block; }

.empty-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------- form fields --------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.req { color: var(--red); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* 16px avoids iOS Safari auto-zoom on focus */
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

textarea { resize: vertical; min-height: 90px; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.check-card:has(input:focus-visible) {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.field-error {
  margin-top: 10px;
  color: var(--red-dark);
  font-weight: 600;
  font-size: 14px;
  background: #FCEFEA;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.field-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------------------------------- receipt / review --------------------- */

.receipt {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px clamp(16px, 4vw, 28px);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: var(--shadow-card);
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 27px, var(--cream-deep) 28px
  );
  overflow-x: auto;
}

.receipt h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--green-deep);
}

.receipt-section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.receipt-section:last-child { border-bottom: none; margin-bottom: 0; }

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}
.receipt-line span:first-child { color: var(--ink-soft); flex-shrink: 0; }
.receipt-line span:last-child { text-align: right; }

.receipt-empty { color: var(--ink-soft); font-style: italic; }

/* ---------------------------------- buttons ------------------------------ */

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, background-color .15s ease, border-color .15s ease;
  min-height: 44px; /* comfortable touch target */
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.submit-row { margin-top: 20px; }
.submit-row .btn { width: 100%; }

.success-state {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--cream-deep);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
}
.success-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--green-deep);
  margin: 0 0 6px;
}
.success-state p:last-child { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------------------------------- footer -------------------------------- */

.site-footer {
  text-align: center;
  padding: 22px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------------------------------- responsive tweaks ---------------------- */

@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand-logo { height: 34px; }
  .header-link { display: none; } /* declutter the mobile header */

  .step-label { font-size: 11px; }
  .step-index { font-size: 9.5px; }
  .step { padding: 10px 4px; }

  .qty-row { grid-template-columns: 1fr; }
  .qty-row-select-wrap { align-items: stretch; }
  .qty-row select { width: 100%; min-width: 0; }

  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }

  .receipt-line { flex-direction: column; gap: 1px; }
  .receipt-line span:last-child { text-align: left; font-weight: 600; }
}

@media (max-width: 380px) {
  .step-label {
    font-size: 10px;
    white-space: normal;   /* let long labels wrap to two lines instead of clipping */
    line-height: 1.15;
  }
  .step { padding: 8px 3px; }
}
