/* ---------------------------------------------------------------
   Contact page.
   Form on the left, the direct channels on the right, map beneath.
   Panels and prose come from product-single.css, which this loads
   after — the form is a variation on the same white card.
   --------------------------------------------------------------- */

.jb-contact { padding-block: var(--jb-s6) var(--jb-s8); }

/* ---------- Head ---------- */

.jb-contact__head {
  max-width: 62ch;
  margin-bottom: var(--jb-s7);
}

.jb-contact__eyebrow {
  margin: 0 0 var(--jb-s2);
  font-size: var(--jb-fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jb-500);
}

.jb-contact__title {
  margin: 0;
  font-family: var(--jb-font-display);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: var(--jb-display-weight);
  line-height: 1.02;
  letter-spacing: var(--jb-display-tracking);
  text-transform: uppercase;
  color: var(--jb-ink);
}
.jb-contact__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: var(--jb-s4);
  background: var(--jb-amber);
}

.jb-contact__intro {
  margin: var(--jb-s4) 0 0;
  font-size: var(--jb-fs-lg);
  line-height: 1.5;
  color: var(--jb-700);
}

/* ---------- Layout ---------- */

.jb-contact__grid {
  display: grid;
  gap: var(--jb-s4);
}
@media (min-width: 960px) {
  .jb-contact__grid {
    /* The form is the point of the page, so it takes the wider column. */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--jb-s5);
    align-items: start;
  }
}

.jb-contact__form-panel { scroll-margin-top: 110px; }

/* ---------- Notices ---------- */

.jb-note {
  display: flex;
  gap: var(--jb-s2);
  margin: 0 0 var(--jb-s5);
  padding: var(--jb-s3) var(--jb-s4);
  border-radius: var(--jb-radius);
  border-inline-start: 4px solid transparent;
  font-size: var(--jb-fs-sm);
  font-weight: 600;
}
.jb-note--ok {
  border-inline-start-color: var(--jb-green);
  background: rgba(37, 211, 102, .1);
  color: #0b5c2e;
}
.jb-note--error {
  border-inline-start-color: var(--jb-amber-dark);
  background: var(--jb-amber-soft);
  color: #7a4b00;
}

/* ---------- Form ---------- */

.jb-form__row {
  display: grid;
  gap: var(--jb-s4);
}
@media (min-width: 560px) {
  .jb-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.jb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--jb-s4);
}
.jb-form__row .jb-field { margin-bottom: 0; }
.jb-form__row + .jb-form__row,
.jb-form__row + .jb-field__hint,
.jb-form__row + .jb-field { margin-top: var(--jb-s4); }

.jb-field label {
  font-size: var(--jb-fs-sm);
  font-weight: 700;
  color: var(--jb-ink);
}
.jb-field__req { color: var(--jb-amber-dark); }

.jb-field__hint {
  margin: 6px 0 var(--jb-s4);
  font-size: var(--jb-fs-xs);
  color: var(--jb-500);
}

/* The same soft-fill treatment the header search uses: no hard border, a
   quiet surface, and the amber ring as the focus state. */
.jb-field input,
.jb-field select,
.jb-field textarea {
  width: 100%;
  padding: 12px var(--jb-s4);
  border: 1px solid transparent;
  border-radius: var(--jb-radius);
  background: var(--jb-100);
  /* >= 16px: iOS zooms the page when a smaller field takes focus. */
  font-family: inherit;
  font-size: var(--jb-fs-md);
  color: var(--jb-ink);
  transition: background .15s ease, box-shadow .15s ease;
}
.jb-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}
.jb-field select {
  padding-inline-end: var(--jb-s6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7683' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--jb-s3) center;
  background-size: 16px;
  cursor: pointer;
  appearance: none;
}
.jb-field input::placeholder,
.jb-field textarea::placeholder { color: var(--jb-500); }

.jb-field input:focus-visible,
.jb-field select:focus-visible,
.jb-field textarea:focus-visible {
  outline: none;
  background: var(--jb-white);
  box-shadow: 0 0 0 3px var(--jb-amber);
}

/* Honeypot. Off-screen rather than display:none — some bots skip anything
   the CSS hides outright, and a person never reaches it either way. */
.jb-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jb-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--jb-s4);
  margin-top: var(--jb-s5);
  padding-top: var(--jb-s5);
  border-top: 1px solid var(--jb-100);
}
@media (max-width: 480px) {
  .jb-form__foot .jb-btn { width: 100%; justify-content: center; }
}

.jb-form__alt {
  display: inline-flex;
  align-items: center;
  gap: var(--jb-s2);
  font-size: var(--jb-fs-sm);
  font-weight: 700;
  color: var(--jb-500);
  transition: color .15s ease;
}
.jb-form__alt:hover { color: var(--jb-ink); }
.jb-form__alt .jb-icon { width: 18px; height: 18px; color: var(--jb-green); }

/* ---------- Aside ---------- */

.jb-contact__aside {
  display: grid;
  gap: var(--jb-s4);
  align-content: start;
}

/* The one dark surface on the page. It stands in for the photograph the
   inspiration used — the brand's own plate, rather than stock imagery that
   would have to be licensed and replaced later. */
.jb-contact__card {
  position: relative;
  padding: var(--jb-s6) var(--jb-s5);
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 177, 0, .28), transparent 60%),
    var(--jb-ink);
  color: #fff;
  overflow: hidden;
}
/* Hazard stripe along the top edge — the same motif as the footer. */
.jb-contact__card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--jb-amber) 0 10px,
    transparent 10px 20px
  );
}

.jb-contact__card-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--jb-s4);
  border-radius: var(--jb-radius);
  background: var(--jb-amber);
  color: var(--jb-ink);
}
.jb-contact__card-mark .jb-icon { width: 28px; height: 28px; }

.jb-contact__card-title {
  margin: 0 0 var(--jb-s3);
  font-family: var(--jb-font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: var(--jb-display-weight);
  line-height: 1.15;
  letter-spacing: var(--jb-display-tracking);
  text-wrap: balance;
}

.jb-contact__card-text {
  margin: 0 0 var(--jb-s5);
  color: rgba(255, 255, 255, .78);
}

.jb-contact__card-cta { background: var(--jb-green); color: #06331a; }
.jb-contact__card-cta:hover { background: #1fbf5b; }

/* ---------- Channel list ---------- */

.jb-contact__list {
  display: grid;
  gap: var(--jb-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jb-contact__item {
  display: flex;
  gap: var(--jb-s3);
  padding: var(--jb-s4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: background .15s ease, border-color .15s ease;
}
.jb-contact__item:hover {
  border-color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .78);
}

.jb-contact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--jb-amber-soft);
  color: var(--jb-ink);
}
.jb-contact__icon .jb-icon { width: 20px; height: 20px; }

.jb-contact__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: var(--jb-fs-sm);
  color: var(--jb-700);
}

.jb-contact__label {
  font-size: var(--jb-fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--jb-500);
}

.jb-contact__body a {
  font-weight: 600;
  color: var(--jb-ink);
  transition: color .15s ease;
}
.jb-contact__body a:hover { color: var(--jb-amber-dark); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .jb-contact__item { background: var(--jb-white); border-color: var(--jb-200); }
}

/* ---------- Map ---------- */

.jb-contact__map { margin-top: var(--jb-s7); }

.jb-contact__map-title {
  margin: 0 0 var(--jb-s4);
  font-family: var(--jb-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: var(--jb-display-weight);
  letter-spacing: var(--jb-display-tracking);
  text-transform: uppercase;
}
.jb-contact__map-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: var(--jb-s3);
  background: var(--jb-amber);
}

.jb-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 21, 27, .06), 0 8px 20px rgba(16, 21, 27, .05);
  /* Google's tile server paints its own white; without this the corners show
     as square while the frame loads. */
  background: var(--jb-100);
  line-height: 0;
}
.jb-map iframe { display: block; }

@media (prefers-reduced-motion: reduce) {
  .jb-contact__item,
  .jb-field input,
  .jb-field select,
  .jb-field textarea { transition: none; }
}
