/* Shared consultation dialog. Scoped so calculator forms keep their layout. */
#feedback-form-modal { --feedback-ink: #3e403c; --feedback-muted: #70746e; }
#feedback-form-modal .modal-dialog {
  width: calc(100% - 48px); max-width: 920px; margin: 24px auto;
  min-height: calc(100% - 48px); height: calc(100% - 48px);
}
#feedback-form-modal .modal-content {
  display: grid; grid-template-columns: 0.82fr 1.18fr; grid-template-rows: minmax(0, 1fr) auto;
  max-height: min(700px, calc(100vh - 48px)); max-height: min(700px, calc(100dvh - 48px));
  border: 1px solid rgba(255,255,255,.65); border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 96px #29291e38; color: var(--feedback-ink); background: #fff;
}
#feedback-form-modal .feedback-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #f6f5f2; color: #64685f; cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}
#feedback-form-modal .feedback-modal__welcome {
  grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; min-height: 0;
  background: #f6f3e7; overflow: hidden;
}
.feedback-modal__welcome-copy { padding: 38px 32px 20px; position: relative; z-index: 1; }
.feedback-modal__eyebrow { display: block; color: #98624e; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
#feedback-form-modal #feedback-title { margin: 22px 0 18px; font-size: 39px; font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
#feedback-form-modal #feedback-introduction { margin: 0; font-size: 17px; line-height: 1.55; color: #666b61; }
.feedback-modal__visual { position: relative; flex: 1; min-height: 180px; margin-top: 4px; }
.feedback-modal__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#f6f3e7, transparent 28%, #27251d26 70%, #27251d9c); }
.feedback-modal__visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 40% 50%; }
.feedback-modal__visual span { position: absolute; z-index: 1; left: 32px; bottom: 26px; color: white; font-size: 16px; font-weight: 500; line-height: 1.45; }
#feedback-form-modal .feedback-modal__fields {
  grid-column: 2; grid-row: 1; min-height: 0; padding: 36px 32px 12px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
#feedback-form-modal .feedback-modal__field { margin-bottom: 16px; }
#feedback-form-modal .form-label, #feedback-form-modal .feedback-modal__methods legend {
  display: block; float: none; width: auto; padding: 0; margin: 0 0 8px;
  font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--feedback-ink);
}
#feedback-form-modal .form-control {
  min-height: 48px; padding: 11px 14px; border: 1px solid #dedfd9; border-radius: 11px;
  font-size: 16px; line-height: 1.5; color: var(--feedback-ink); background-color: #fff;
  box-shadow: 0 1px 2px #22220c03; transition: border-color 150ms ease, box-shadow 150ms ease;
}
#feedback-form-modal .form-control::placeholder { color: #72766f; opacity: 1; }
#feedback-form-modal .form-control:focus { border-color: #e18473; box-shadow: 0 0 0 3px #ff74651c; }
#feedback-form-modal textarea.form-control { min-height: 92px; max-height: 170px; resize: vertical; }
#feedback-form-modal .feedback-modal__methods { min-width: 0; padding: 0; margin: 0 0 17px; border: 0; }
.feedback-modal__method-options { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.feedback-modal__method { position: relative; min-width: 0; cursor: pointer; }
.feedback-modal__method input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-modal__method > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 70px; padding: 9px 2px; border: 1px solid #e3e4dd; border-radius: 11px;
  background: white; font-size: 13px; font-weight: 600; line-height: 1.2; color: #686d64;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.feedback-modal__method svg { width: 20px; height: 20px; stroke-linecap: round; stroke-linejoin: round; }
.feedback-modal__method input:checked + span { border-color: #ed9d8f; color: #984a3c; background: #fff1eb; box-shadow: inset 0 0 0 1px #ed9d8f; }
.feedback-modal__method input:focus-visible + span { outline: 2px solid #a65547; outline-offset: 3px; transition: none; }
#feedback-form-modal .feedback-modal__hint { margin: 7px 0 0; font-size: 12px; line-height: 1.4; color: var(--feedback-muted); }
.feedback-modal__privacy { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 4px; }
.feedback-modal__privacy input { appearance: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #da6b59; cursor: pointer; }
.feedback-modal__privacy label { font-size: 13px; line-height: 1.55; color: var(--feedback-muted); cursor: pointer; }
.feedback-modal__privacy a { color: #88604d; text-decoration: underline; text-underline-offset: 3px; }
#feedback-form-modal .modal-footer {
  grid-column: 2; grid-row: 2; position: relative; display: flex; flex-wrap: nowrap; gap: 16px;
  padding: 16px 32px 26px; margin: 0; border: 0; box-shadow: 0 -10px 16px #fff;
  background: #fff; z-index: 2;
}
#feedback-form-modal .modal-footer > * { margin: 0; }
#feedback-form-modal .feedback-modal__cancel { border: 0; border-radius: 6px; padding: 10px 0; min-height: 44px; background: none; color: #757a70; font-size: 15px; cursor: pointer; }
#feedback-form-modal .feedback-modal__submit {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 12px 14px; border-radius: 12px;
  color: #fff; background: #bb5343; border-color: #bb5343; font-size: 16px; line-height: 1.4; font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
#feedback-form-modal .feedback-modal__submit:disabled { opacity: .75; cursor: wait; }
#feedback-form-modal .feedback-modal__submit:active:not(:focus-visible), #feedback-form-modal .feedback-modal__close:active:not(:focus-visible) { transform: scale(.98); }
#feedback-form-modal button:focus-visible, .feedback-modal__privacy input:focus-visible, .feedback-modal__privacy a:focus-visible { outline: 2px solid #a65547; outline-offset: 3px; }
.feedback-modal__spinner { width: 18px; height: 18px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: feedback-spin 700ms linear infinite; }
.feedback-modal__spinner[hidden] { display: none; }
#feedback-form-modal [data-feedback-submit-arrow][hidden] { display: none; }
.feedback-modal__error { position: relative; padding: 12px 35px 12px 14px; margin: 16px 0; border-radius: 10px; background: #fff0eb; border: 1px solid #efb7a9; color: #973f31; font-size: 14px; line-height: 1.45; }
.feedback-modal__error button { position: absolute; right: 2px; top: 2px; width: 30px; height: 30px; border: 0; color: inherit; background: transparent; font-size: 24px; cursor: pointer; }
#feedback-form-modal .modal-content.is-success { display: block; }
#feedback-form-modal .modal-content.is-success > .feedback-modal__welcome { display: none; }
#feedback-form-modal.has-feedback-success .modal-dialog { max-width: 520px; }
#feedback-form-modal .feedback-modal__success { overflow-y: auto; max-height: calc(100dvh - 48px); }
@keyframes feedback-spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .feedback-modal__method:hover > span { border-color: #d3a497; background: #fffaf6; }
  #feedback-form-modal .feedback-modal__submit:hover { background: #a74638; border-color: #a74638; }
  #feedback-form-modal .feedback-modal__close:hover { background: #eeede8; }
  #feedback-form-modal .feedback-modal__cancel:hover { color: #984a3c; }
}
@media (max-width: 767.98px) {
  #feedback-form-modal .modal-dialog { width: calc(100% - 24px); max-width: 520px; height: calc(100% - 24px); min-height: calc(100% - 24px); margin: 12px auto; }
  #feedback-form-modal .modal-content { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  #feedback-form-modal .feedback-modal__welcome { grid-column: 1; grid-row: 1; }
  .feedback-modal__welcome-copy { padding: 22px 24px 18px; }
  .feedback-modal__eyebrow { font-size: 10px; padding-right: 24px; }
  #feedback-form-modal #feedback-title { font-size: 28px; margin: 9px 0 8px; letter-spacing: -.025em; padding-right: 26px; }
  #feedback-form-modal #feedback-title br, .feedback-modal__desktop-break { display: none; }
  #feedback-form-modal #feedback-introduction { font-size: 14px; line-height: 1.45; max-width: 380px; }
  .feedback-modal__visual { display: none; }
  #feedback-form-modal .feedback-modal__fields { grid-column: 1; grid-row: 2; padding: 18px 24px 8px !important; }
  #feedback-form-modal .feedback-modal__field { margin-bottom: 14px; }
  #feedback-form-modal .modal-footer { grid-column: 1; grid-row: 3; padding: 12px 24px 18px; }
  #feedback-form-modal .feedback-modal__close { top: 8px; right: 8px; width: 40px; height: 40px; background: transparent; }
  .feedback-modal__method-options { gap: 6px; }
  .feedback-modal__method > span { font-size: 12px; min-height: 62px; gap: 5px; }
  #feedback-form-modal .feedback-modal__submit { font-size: 15px; }
  .feedback-modal__privacy label { font-size: 12px; }
}
@media (max-width: 359.98px) {
  .feedback-modal__welcome-copy { padding: 20px 18px 14px; }
  #feedback-form-modal #feedback-title { font-size: 25px; }
  #feedback-form-modal .feedback-modal__fields { padding: 16px 18px 6px !important; }
  #feedback-form-modal .modal-footer { padding: 10px 18px 14px; gap: 10px; }
  #feedback-form-modal .feedback-modal__submit { font-size: 14px; padding: 12px 10px; gap: 6px; }
  .feedback-modal__method-options { gap: 4px; }
  .feedback-modal__method > span { font-size: 11px; }
}
@media (max-height: 520px) and (min-width: 768px) {
  .feedback-modal__welcome-copy { padding-top: 26px; }
  .feedback-modal__visual { min-height: 60px; }
  .feedback-modal__visual span { display: none; }
  #feedback-form-modal .feedback-modal__fields { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #feedback-form-modal, #feedback-form-modal .modal-dialog,
  #feedback-form-modal .form-control, #feedback-form-modal button, .feedback-modal__method > span { transition: none !important; }
  #feedback-form-modal button:active { transform: none; }
  .feedback-modal__spinner { animation: none; }
}
