/* Contact page */
.contact-page {
  background: var(--paper);
}

.contact-page .desktop-nav a[aria-current="page"],
.contact-page .mobile-menu nav a[aria-current="page"] {
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.inquiry-hero {
  padding: calc(var(--header-height) + clamp(64px, 8vw, 112px)) 0
    clamp(58px, 8vw, 104px);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.inquiry-hero__inner {
  max-width: var(--wrap);
}

.inquiry-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7.2vw, 7.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.inquiry-hero__lead {
  max-width: 56ch;
  margin: 34px 0 0;
  color: color-mix(in srgb, var(--fixed-ink) 76%, transparent);
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.inquiry-section {
  padding-block: clamp(68px, 8vw, 118px);
  background: var(--paper-soft);
}

.inquiry-section__inner {
  max-width: 1040px;
}

.inquiry-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.inquiry-section__head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.inquiry-section__head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.inquiry-form {
  display: grid;
  gap: 16px;
}

.form-panel {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.68fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.form-panel__head h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
}

.form-panel__head p {
  max-width: 34ch;
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-grid--three {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field--full {
  margin-top: 28px;
}

.form-field label,
.service-fieldset legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.required-mark {
  color: var(--fixed-lavender);
}

.optional-mark {
  color: var(--ink-muted);
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--fixed-lavender);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fixed-lavender) 42%, transparent);
}

.service-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.service-fieldset legend {
  margin-bottom: 16px;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-choice {
  position: relative;
  cursor: pointer;
}

.service-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.service-choice span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--fixed-lavender);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
    transform 140ms var(--ease);
}

.service-choice input:checked + span {
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.service-choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.service-choice span:active {
  transform: scale(0.98);
}

.form-error {
  margin: 12px 0 0;
  color: #8f2638;
  font-size: 0.9rem;
  font-weight: 600;
}

.inquiry-form__actions {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-top: 18px;
}

.privacy-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--fixed-lavender);
}

.privacy-check a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inquiry-submit {
  border: 1px solid var(--fixed-lavender);
  background: var(--fixed-lavender);
  color: var(--fixed-ink);
}

.inquiry-submit:hover {
  border-color: var(--fixed-ink);
  background: var(--fixed-ink);
  color: var(--fixed-paper);
}

.form-hint,
.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.form-status:not(:empty) {
  color: var(--ink);
  font-weight: 600;
}

.form-status[data-state="error"] {
  color: #8f2638;
}

.inquiry-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 860px) {
  .inquiry-hero h1 {
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

  .form-panel__head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid,
  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .service-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .inquiry-hero h1 {
    font-size: clamp(2.8rem, 13.7vw, 4.7rem);
  }

  .inquiry-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .form-panel {
    padding: 24px 20px;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .inquiry-submit {
    width: 100%;
  }
}
