/* Shared styles for the inquiry form (dark section).
   Used by /wholesale/ and /contact/. Needs these CSS variables on :root:
   --forest, --forest-dark, --cream, --yuba-gold, --yuba-light. */

/* Self-contained eyebrow so pages without the hero styles still match. */
.w-form-intro .w-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ───── Form section (dark) ───── */
.w-form-section {
  padding: 5rem 0;
  background: var(--forest);
  color: var(--cream);
}
.w-form-grid {
  display: grid;
  /* minmax(0, …) so a long dropdown option can't push the form wider than the phone screen */
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}
@media (min-width: 900px) {
  .w-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 5rem;
  }
}
.w-form-intro .w-eyebrow { color: var(--yuba-light); }
.w-form-intro h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.w-form-intro h2 .it {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--yuba-gold);
}
.w-form-intro p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 2rem;
}
.w-inquiry-guide {
  padding: 1.25rem 1.5rem;
  background: rgba(250, 245, 234, 0.06);
  border-left: 2px solid var(--yuba-gold);
  margin-bottom: 1.5rem;
}
.w-inquiry-guide .l {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--yuba-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.w-inquiry-guide ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.w-inquiry-guide ul li {
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.85;
  padding-left: 1.2rem;
  position: relative;
}
.w-inquiry-guide ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yuba-gold);
}
.w-direct-email {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
}
.w-direct-email a {
  color: var(--yuba-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 185, 106, 0.3);
  padding-bottom: 1px;
}
.w-direct-email a:hover { border-color: var(--yuba-light); }

.contact-form {
  display: grid;
  gap: 1.1rem;
  position: relative;
}
.form-header {
  margin-bottom: 0.5rem;
}
.form-title {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.form-sub {
  font-size: 0.85rem;
  opacity: 0.65;
}
.form-sub .req { color: var(--yuba-gold); }
.intent-cards {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .intent-cards { grid-template-columns: repeat(3, 1fr); }
}
.intent-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 0.95rem 2.4rem 0.95rem 0.95rem;
  border: 1px solid rgba(250, 245, 234, 0.28);
  border-radius: 12px;
  background: rgba(250, 245, 234, 0.05);
  cursor: pointer;
  min-height: 104px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
/* Round "radio" marker so the chosen type is obvious at a glance */
.intent-card::after {
  content: "";
  position: absolute; top: 0.95rem; right: 0.9rem;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(250, 245, 234, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.intent-card:hover { border-color: rgba(224, 185, 106, 0.6); }
.intent-card:has(input:checked) {
  border-color: var(--yuba-gold);
  background: rgba(200, 146, 60, 0.16);
  box-shadow: inset 0 0 0 1px var(--yuba-gold);
}
.intent-card:has(input:checked)::after {
  border-color: var(--yuba-gold);
  background: var(--yuba-gold);
  box-shadow: inset 0 0 0 3px var(--forest);
}
.intent-card:has(input:focus-visible) { outline: 2px solid var(--yuba-light); outline-offset: 2px; }
.intent-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.intent-card .ic-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}
.intent-card .ic-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(250, 245, 234, 0.8);
}
.field.is-hidden,
[data-show-for].is-hidden { display: none; }

/* Field groups: Your details / Your business / What you need */
.form-group { display: grid; gap: 1.1rem; }
.form-group + .form-group,
.dynamic-note + .form-group {
  border-top: 1px solid rgba(250, 245, 234, 0.12);
  padding-top: 1.35rem;
}
.form-group-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--yuba-light);
  margin: 0 0 -0.2rem;
}
.dynamic-note {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--yuba-gold);
  background: rgba(250, 245, 234, 0.06);
  color: rgba(250, 245, 234, 0.74);
  font-size: 0.84rem;
  line-height: 1.5;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field.row-2 {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 600px) {
  .field.row-2 { grid-template-columns: 1fr 1fr; align-items: end; }
  .field.row-2:has(> .field.is-hidden) { grid-template-columns: 1fr; }
}
.field.row-3 {
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .field.row-3 { grid-template-columns: 1fr 0.9fr 1fr; }
}
.field label,
.field .field-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250, 245, 234, 0.92);
}
.field label .req { color: var(--yuba-gold); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(250, 245, 234, 0.32);
  background: rgba(250, 245, 234, 0.09);
  color: var(--cream);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
/* Long option labels get cut off inside the box instead of widening it */
.field select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
/* Same height for every single-line box so side-by-side fields line up */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
  height: 48px;
  line-height: 1.2;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(250, 245, 234, 0.5); }
/* Light chevron so dropdowns read clearly on the dark background */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23FAF5EA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yuba-gold);
  background-color: rgba(250, 245, 234, 0.12);
}
/* Products checklist */
.field-hint { margin-left: 0.4rem; font-weight: 400; color: rgba(250, 245, 234, 0.6); }
.pick-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 1fr; /* equal-height chips even when a name wraps */
}
.field .pick {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 46px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(250, 245, 234, 0.28);
  border-radius: 10px;
  background: rgba(250, 245, 234, 0.05);
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0;
  color: rgba(250, 245, 234, 0.92);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field .pick:hover { border-color: rgba(224, 185, 106, 0.6); }
.field .pick:has(input:checked) { border-color: var(--yuba-gold); background: rgba(200, 146, 60, 0.14); }
.field .pick:has(input:focus-visible) { outline: 2px solid var(--yuba-light); outline-offset: 2px; }
.field .pick input {
  appearance: none; -webkit-appearance: none;
  flex: none;
  width: 18px; height: 18px; margin: 0; padding: 0;
  border: 1.5px solid rgba(250, 245, 234, 0.55);
  border-radius: 5px;
  background: transparent;
  display: grid; place-content: center;
  cursor: pointer;
}
.field .pick input:checked { background: var(--yuba-gold); border-color: var(--yuba-gold); }
.field .pick input:checked::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
  transform: translateY(-1px) rotate(-45deg);
}
.field select option {
  background: var(--forest-dark);
  color: var(--cream);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: 'Inter', sans-serif;
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  background: var(--yuba-gold);
  color: var(--forest-dark);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.form-submit:hover:not(:disabled) {
  background: var(--yuba-light);
  transform: translateX(2px);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-status {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  margin-top: 0.25rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: rgba(74, 110, 93, 0.25);
  color: #A8D5BA;
  border: 1px solid rgba(74, 110, 93, 0.5);
}
.form-status.error {
  background: rgba(181, 74, 42, 0.2);
  color: #E8A88F;
  border: 1px solid rgba(181, 74, 42, 0.5);
}
.form-status.error a { color: inherit; }
.form-privacy {
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.8;
}
.form-privacy a {
  color: var(--yuba-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 185, 106, 0.35);
}

/* ───── Copy-email icon button (dark section) ───── */
.copy-email {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  margin-left: 0.35rem;
  padding: 0;
  color: var(--yuba-light);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy-email:hover { background: rgba(224, 185, 106, 0.12); }
.copy-email.copied { color: #A8D5BA; }
