/* Shared by the main site and topic templates. */
.inquiry-modal { z-index: 12000; padding: 16px !important; }
.modal-backdrop.inquiry-backdrop { z-index: 11990; }
.modal-backdrop.inquiry-backdrop.show { opacity: .6; }
.inquiry-modal .modal-dialog { width: 100%; max-width: 640px; min-height: calc(100% - 32px); margin: 16px auto; }
.inquiry-modal .modal-dialog-centered::before { height: calc(100vh - 64px); }
.inquiry-modal .massage_box {
  position: relative; inset: auto; width: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #253440;
  border: 0; border-top: 4px solid var(--red, #ec001c); border-radius: 12px; box-shadow: 0 24px 80px #0005;
}
.inquiry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 26px 28px 20px; border-bottom: 1px solid #e5eaee; }
.inquiry-heading h2 { margin: 0 0 9px; color: #253440; font-size: 24px; line-height: 1.4; font-weight: 700; }
.inquiry-heading h2 .fa { color: var(--red, #ec001c); }
.inquiry-heading p { margin: 0; color: #687782; font-size: 14px; line-height: 1.7; }
.inquiry-modal .inquiry-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: #f1f4f6; color: #52616c; font-size: 28px; line-height: 1; cursor: pointer; }
.inquiry-modal .inquiry-close:hover { background: #e4e9ed; color: #253440; }
.inquiry-form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.inquiry-fields { min-height: 0; padding: 24px 28px 8px; overflow-y: auto; overscroll-behavior: contain; }
.inquiry-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inquiry-modal .form-group { margin: 0 0 18px; min-width: 0; }
.inquiry-modal .form-group label { display: block; margin: 0 0 8px; color: #33444f; font-size: 14px; font-weight: 600; }
.inquiry-modal label span { color: var(--red, #ec001c); }
.inquiry-modal label small { color: #7b8790; font-weight: 400; }
.inquiry-modal .form-control { display: block; width: 100%; height: 48px; padding: 11px 14px; border: 1px solid #cfd8df; border-radius: 6px; background: #fff; color: #253440; font-size: 16px; line-height: 1.5; }
.inquiry-modal .form-control::placeholder { color: #8a959d; font-size: 14px; }
.inquiry-modal textarea.form-control { height: 124px; min-height: 100px; resize: vertical; }
.inquiry-modal .form-control:focus { border-color: #687f93; box-shadow: 0 0 0 3px #dce7f080; }
.inquiry-actions { display: flex; justify-content: flex-end; gap: 12px; flex-shrink: 0; padding: 18px 28px; background: #f7f9fb; border-top: 1px solid #e5eaee; }
.inquiry-actions button { min-width: 100px; min-height: 46px; padding: 10px 24px; border: 1px solid #ccd5dc; border-radius: 6px; font-size: 15px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.inquiry-actions .inquiry-cancel { background: #fff; color: #52616c; }
.inquiry-actions .inquiry-submit { min-width: 158px; background: var(--red, #ec001c); border-color: var(--red, #ec001c); color: #fff; }
.inquiry-actions .inquiry-submit:hover { background: #c80016; border-color: #c80016; }
.inquiry-actions button:disabled { opacity: .6; cursor: wait; }
.inquiry-modal button:focus-visible { outline: 3px solid #175eac; outline-offset: 2px; }
.inquiry-status { margin-bottom: 18px; padding: 12px 14px; border-radius: 6px; background: #edf7f0; color: #24673b; font-size: 14px; line-height: 1.6; }
.inquiry-status.is-error { background: #fff0f1; color: #af1c2b; }
@media (max-width: 575px) {
  .inquiry-modal { padding: 12px !important; }
  .inquiry-modal .modal-dialog { min-height: calc(100% - 16px); margin: 8px auto; }
  .inquiry-modal .modal-dialog-centered::before { height: calc(100vh - 40px); }
  .inquiry-modal .massage_box { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
  .inquiry-heading { padding: 20px 18px 16px; gap: 12px; }
  .inquiry-heading h2 { font-size: 22px; }
  .inquiry-heading p { font-size: 13px; }
  .inquiry-fields { padding: 18px 18px 0; }
  .inquiry-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .inquiry-actions { padding: 14px 18px; }
  .inquiry-actions button { flex: 1; min-width: 0; }
}
