/* =====================================================================
   contact.html — standalone page (no sibling pages, root-level per
   CLAUDE.md folder-structure convention)
   Figma node 589:8193 ("お問い合わせ"), PC version per explicit instruction.
   ===================================================================== */

/* Figma's root frame sets a cream page background (watermark sits on
   top via the shared .page-watermark) — same precedent as
   works/detail.html's body.work-detail-page. */
body.contact-page {
  background: var(--color-cream);
}

/* .guide-hero's own breadcrumb-sep is 30px; this page's Figma crumb
   uses a 46px separator, same one-off-override precedent as
   column-hero__crumb-sep / works.css / sauna-map.html. */
.contact-hero__crumb-sep {
  width: 46px;
}

/* ---- Form section ----
   The generic field/label/input/consent/submit primitives (.form,
   .form__row, .form__input, etc.) are promoted to main.css now that
   showroom/reservation.html is a second consumer — see CLAUDE.md's CSS
   layering convention. Only this page's own additions stay here: the
   audience radio group, the paired name/furigana subfields, and the
   conditional company-field spacing. */

.contact-form-section {
  padding-block: 24px 48px;
}

@media (min-width: 992px) {
  .contact-form-section {
    padding-block: 24px 104px;
  }
}

/* #companyField wraps the 会社名 row + its own trailing divider so both
   can be hidden/removed together when 個人のお客様 is selected (see
   js/contact.js) — that takes the row+divider pair out of .form's
   direct flex-child gap rhythm, so replicate the same gap internally. */
#companyField .form__row {
  margin-bottom: 24px;
}

@media (min-width: 992px) {
  #companyField .form__row {
    margin-bottom: 40px;
  }
}

/* ---- Audience radio group ---- */

.contact-form__audience {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .contact-form__audience {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .contact-form__radio:first-child {
    padding-right: 56px;
  }

  .contact-form__radio:last-child {
    padding-left: 48px;
    border-left: 1px solid var(--color-gray-400);
  }
}

.contact-form__radio {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.contact-form__radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__radio-dot {
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-400);
  background: var(--color-white);
}

.contact-form__radio input:checked + .contact-form__radio-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-black);
}

.contact-form__radio input:focus-visible + .contact-form__radio-dot {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.contact-form__radio-text {
  display: flex;
  flex-direction: column;
  gap: 9px;
  line-height: 1;
}

.contact-form__radio-text strong {
  font-weight: 500;
  font-size: 15px;
}

.contact-form__radio-text small {
  font-size: 13px;
  color: var(--color-black);
}

/* ---- Paired subfields: base rules promoted to main.css (shared with
   showroom/top.html's reservation form); only the furigana width stays here ---- */

@media (min-width: 992px) {
  .contact-form__field-pair--furigana .contact-form__subfield {
    flex: none;
    width: 284px;
  }
}
