.message-section { padding-block: 3.75rem 4.75rem; color: #333; background: #f8f8f8; }
.message-section__inner { width: min(1360px, calc(100% - 1rem)); margin-inline: auto; }
.message-section h2 { margin: 0; font-size: 3rem; line-height: 1.3; }
.message-section h2 span, .message-form label > span { color: #d02c2e; }
.message-section__lead { margin: .625rem 0 2.5rem; color: #666; font-size: .875rem; }
.message-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.message-form__field label { display: block; margin-bottom: .875rem; font-size: .875rem; line-height: 1.5; }
.message-form__field label > b { font-weight: 400; }
.message-form input, .message-form textarea { display: block; width: 100%; padding: .625rem .875rem; border: 1px solid #ddd; border-radius: 0; color: #333; background: #fff; font: inherit; font-size: .875rem; line-height: 1.5; }
.message-form input { height: 2.75rem; }
.message-form textarea { height: 6.25rem; resize: vertical; }
.message-form input::placeholder, .message-form textarea::placeholder { color: #999; }
.message-form :is(input, textarea):focus { outline: 2px solid #d02c2e; outline-offset: 2px; }
.message-form [aria-invalid=true] { border-color: #d02c2e; }
.message-form__field--wide { grid-column: 1 / -1; }
.message-form__verification { display: flex; align-items: center; gap: .875rem; }
.message-form__verification input { width: min(25rem, calc(100% - 8.375rem)); }
.message-form__code { flex: 0 0 7.5rem; height: 2.75rem; border: 1px solid #ccc; color: #305c89; background: repeating-linear-gradient(16deg, #edf1e5 0 5px, #e0e6db 5px 6px, #edf1e5 6px 13px); cursor: pointer; font-size: 1.75rem; font-style: italic; font-weight: 700; letter-spacing: .4rem; text-shadow: 1px 1px #c6d5c2; }
.message-form__submit { width: min(20.9375rem, 100%); height: 2.75rem; padding: .5rem 1.25rem; border: 1px solid #d02c2e; color: white; background: #d02c2e; font-size: .875rem; cursor: pointer; }
.message-form__submit:hover { color: #d02c2e; background: white; }
.message-form__submit:disabled { opacity: .65; cursor: wait; }
.message-form__status { margin: 1rem 0 0; font-size: .875rem; color: #555; }
.message-form__label-mobile { display: none; }
.inquiry-dialog { width: min(960px, calc(100% - 2rem)); max-width: none; max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; color: #333; background: #fff; box-shadow: 0 12px 50px rgb(0 0 0 / 25%); }
.inquiry-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.inquiry-dialog__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1.5rem; border-bottom: 1px solid #ddd; background: #fff; }
.inquiry-dialog__header h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.inquiry-dialog__header button { width: 2rem; height: 2rem; padding: 0; border: 0; color: #999; background: transparent; font-size: 1.75rem; cursor: pointer; }
.inquiry-dialog__header button:hover { color: #d02c2e; }
.inquiry-dialog__header button:focus-visible { outline: 2px solid #d02c2e; outline-offset: 2px; }
.inquiry-dialog__content { padding: 1.5rem; }
.inquiry-dialog .message-form__label-desktop { display: none; }
.inquiry-dialog .message-form__label-mobile { display: inline; }
html:has(.inquiry-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
@media (max-width: 700px) {
  .message-section { padding-block: 2.5rem 3.75rem; }
  .message-section__inner { width: calc(100% - 1.875rem); }
  .message-section h2 { font-size: 1.875rem; text-align: center; }
  .message-section__lead { margin-bottom: 1.75rem; text-align: center; }
  .message-form { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .message-form input, .message-form textarea { border-color: transparent; }
  .message-form__label-desktop { display: none; }
  .message-form__label-mobile { display: inline; }
  .message-form__verification { gap: .625rem; }
  .message-form__verification input { width: calc(100% - 8.125rem); }
  .message-form__submit { width: 100%; }
  .inquiry-dialog__header, .inquiry-dialog__content { padding: 1rem; }
  .inquiry-dialog .message-form input, .inquiry-dialog .message-form textarea { border-color: #ddd; }
}
