/* ========================
   Tokens / Theme
======================== */
:root {
  /* Colors come from ../../styles.css root tokens */
  --radius: 12px;
  --radius-sm: 8px;
  --gap: 16px;
  --control-h: 2.6rem;
  --pad-x: .6em;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ========================
   Motion Safety
======================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================
   Reset / Base
======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: auto;
  overflow: visible;
}

body {
  background: var(--bkgd2);
  color: var(--type1);
  font-family: "Capriola", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  overflow: visible;
}

/* Accessible focus */
:focus-visible {
  outline: 3px solid var(--acct1);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================
   Form Inputs
======================== */
input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 0.9rem;
  border: none;
  border-radius: 10px;
  background: var(--bkgd1);
  color: var(--acct2);
  font-family: inherit;
  line-height: 1.2;
  margin-top: 4px;
}

/* Labels */
label {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--acct2);
  font-weight: 600;
}

/* Buttons are styled via shared .btn rules in ../../styles.css */
.actionButton {
  margin-top: 0.6rem;
}

/* ========================
   Layout Helpers
======================== */

.container {
  width: 100%;
  padding: 0.5rem 0 0.75rem;
  position: relative;
  z-index: 1;
}

.quote-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Hero heading block */
.quote-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Each hero line is independently auto-sized via JS */
.hero-fit {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  color: var(--type1);
}

/* Card title uses JS fitter too */
.fit-heading {
  display: block;
  white-space: normal;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.05;
  text-align: left;
  font-family:  "Capriola", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--acct2);
  margin: 0;
}

/* Card container */
.card {
  background: transparent;
  color: var(--acct2);
  padding: 0.4rem 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

#banana-toggle {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: transparent;
  color: var(--type1);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: background 150ms ease, transform 120ms ease, opacity 120ms ease;
  padding: 0;
}

#banana-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

#banana-toggle:active {
  transform: scale(0.95);
}

#banana-toggle[aria-pressed="false"] {
  opacity: 0.5;
}

/* Button row at bottom */
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.button-row button {
  flex: 1 1 auto;
  min-width: 140px;
  width: auto;
}
/* Product label above each outlined box */
.product-label {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--type2);
  font-family: "Bagel Fat One", "Capriola", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Product box */
.orderLine {
  position: relative;
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--type2);
}

.product-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--type2);
  background: transparent;
  color: var(--type2);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.product-close:hover,
.product-close:focus-visible {
  background: rgba(255, 42, 95, 0.1); /* light tint of var(--type2) */
}

/* Garment row: wide text, narrow quantity */
.garmentType {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.garmentType label {
  min-width: 0;
}

.garmentType label:first-child {
  flex: 1 1 72%;
}

.garmentType label:last-child {
  flex: 0 0 24%;
}

/* Placement row: 3/4 placement, 1/4 # of colors */
.printPlacement {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.printPlacement label:first-child {
  flex: 3 1 0;
}

.printPlacement label:last-child {
  flex: 1 1 0;
}

/* Single-line fields: text, email, number, selects */
input[type="text"],
input[type="email"],
input[type="number"],
select {
  font-size: 1rem;
  height: 2.6rem;
  padding: 0 12px;
  line-height: 2.6rem;
}

/* Textarea can stay flexible */
textarea {
  font-size: 1.3rem;
  line-height: 1.3;
  padding: 10px 12px;
}

.thankyou-card {
  background: var(--bkgd2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  color: var(--acct2);
}

.thankyou-card[hidden] {
  display: none !important;
}

.thankyou-img {
  width: min(420px, 100%);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.thankyou-copy h2 {
  margin: 0 0 0.4rem;
  color: var(--acct2);
}

.thankyou-copy p {
  margin: 0;
  color: var(--acct2);
}

/* Floating background emoji (DVD-style) */
#dvd-emoji-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dvd-emoji {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 50px;
  width: 50px;
  height: 50px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

/* ========================
   Mobile
======================== */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem 0;
  }
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
  .button-row button {
    width: 100%;
  }
}
