/* Drawer owns its layout; old modal rules remain available for the legacy component. */
.consultation-drawer {
  inset: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  background: transparent;
  pointer-events: none;
}
.consultation-drawer.is-open { display: flex; }
.consultation-panel {
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #2c4857;
  color: #fff;
  box-shadow: -1px 0 #ffffff80;
  animation: consultation-enter .25s ease-out;
}
.consultation-panel *, .consultation-options { box-sizing: border-box; }
.consultation-panel div { margin: 0; }
.consultation-header { flex: 0 0 auto; padding: 68px 40px 28px; }
.consultation-eyebrow { font-size: 17px; letter-spacing: 3px; color: #1bc69b; margin: 0 0 18px; }
.consultation-panel h2 { font-size: 30px; line-height: 1.35; color: #fff; margin: 0 0 18px; }
.consultation-panel .assessment-subtitle { color: #a2b5bd; font-size: 16px; line-height: 1.6; margin: 0; }
.consultation-panel .assessment-close { color: #fff; font-size: 23px; border: 1px solid #63808e; border-radius: 6px; width: 30px; height: 30px; top: 20px; right: 20px; line-height: 26px; }
.consultation-panel form { display: flex; flex-direction: column; flex: 1 1 0; width: 100%; min-height: 0; margin: 0; }
.consultation-scroll { flex: 1 1 0; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 40px 12px; scrollbar-width: thin; scrollbar-color: #78909c transparent; }
.consultation-panel .assessment-fields { display: grid; width: 100%; margin: 0; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; row-gap: 12px; align-items: start; }
.consultation-panel .assessment-field { grid-column: 1/-1; display: block; width: 100%; min-width: 0; margin: 0; color: #a2b5bd; font-size: 15px; font-weight: 400; text-align: left; }
.consultation-panel .assessment-field:nth-child(1), .consultation-panel .assessment-field:nth-child(2) { grid-column: auto; }
.consultation-panel .assessment-field > span { display: block; margin: 0 0 4px; line-height: 22px; }
.consultation-panel .assessment-field input, .consultation-select-trigger {
  display: block; width: 100%; min-width: 0; height: 44px; padding: 0;
  border: 0; border-bottom: 1px solid #82959e; border-radius: 0;
  background: transparent; color: #fff; line-height: 1.4;
  font-family: inherit; font-size: 16px; font-weight: 400; text-align: left;
}
.consultation-panel .assessment-field input::placeholder { color: #a2b5bd; }
.consultation-panel select.consultation-native-select { display: none; }
.consultation-select { width: 100%; min-width: 0; }
.consultation-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.consultation-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.consultation-select-trigger::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; margin: -4px 3px 0 0; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.consultation-select-trigger[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
.consultation-select-trigger.is-placeholder { color: #a2b5bd; }
.consultation-panel .assessment-contact { display: grid; grid-template-columns: 82px minmax(0,1fr); column-gap: 16px; width: 100%; height: 44px; overflow: visible; margin: 0; border: 0; border-bottom: 1px solid #82959e; border-radius: 0; background: transparent; }
.consultation-panel .assessment-contact input, .consultation-panel .assessment-contact .consultation-select-trigger { height: 43px; border: 0; }
.consultation-panel .assessment-error { min-height: 17px; padding-top: 3px; color: #ffb4ab; font-size: 12px; line-height: 17px; }
.consultation-panel .assessment-field.has-error > input, .consultation-panel .assessment-field.has-error .consultation-select-trigger, .consultation-panel .assessment-field.has-error .assessment-contact { border-bottom-color: #ffb4ab; }
.consultation-panel .assessment-field input:focus, .consultation-select-trigger:focus, .consultation-panel .assessment-contact:focus-within { border-bottom-color: #1bc69b; outline: none; }
.consultation-actions { flex: 0 0 auto; padding: 20px 40px 30px; background: #2c4857; }
.consultation-panel .assessment-submit { width: 100%; height: 60px; margin: 0; background: #fff; color: #2c4857; letter-spacing: 8px; }
.consultation-panel .assessment-privacy { margin: 10px 0 0; font-size: 12px; color: #a2b5bd; line-height: 1.6; }
.consultation-open .assessment-entry { visibility: hidden; }
.consultation-panel button:focus-visible { outline: 2px solid #1bc69b; outline-offset: 3px; }
.consultation-options { pointer-events: auto; position: fixed; z-index: 10020; display: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; background: #354f5e; color: #fff; border: 1px solid #6b8491; border-radius: 8px; box-shadow: 0 8px 24px #10232c55; scrollbar-width: thin; }
.consultation-options.is-open { display: block; }
.consultation-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 5px; background: transparent; color: #e7eef1; text-align: left; font-family: inherit; font-size: 15px; cursor: pointer; }
.consultation-option.is-highlighted, .consultation-option:hover { background: #476775; }
.consultation-option[aria-selected="true"] { color: #64e2bd; }
.consultation-option[aria-selected="true"]::after { content: '\2713'; }
@keyframes consultation-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media(min-width:768px) and (max-width:960px) {
  .consultation-panel { width: 360px; }
  .consultation-header { padding-left: 24px; padding-right: 24px; }
  .consultation-scroll { padding-left: 24px; padding-right: 24px; }
  .consultation-actions { padding-left: 24px; padding-right: 24px; }
}
@media(max-width:767px) {
  .consultation-drawer { background: transparent; }
  .consultation-header { padding: 52px 24px 22px; }
  .consultation-panel h2 { font-size: 27px; }
  .consultation-eyebrow { font-size: 14px; margin-bottom: 12px; }
  .consultation-panel .assessment-subtitle { font-size: 14px; }
  .consultation-scroll { padding: 0 24px 12px; }
  .consultation-panel .assessment-fields { column-gap: 22px; row-gap: 8px; }
  .consultation-panel .assessment-field { font-size: 14px; }
  .consultation-actions { padding: 16px 24px max(20px, env(safe-area-inset-bottom)); }
  .consultation-panel .assessment-submit { height: 52px; }
}
@media(max-height:650px) {
  .consultation-header { padding-top: 42px; padding-bottom: 16px; }
  .consultation-eyebrow { margin-bottom: 8px; }
  .consultation-panel h2 { margin-bottom: 10px; font-size: 25px; }
  .consultation-panel .assessment-subtitle { font-size: 13px; }
  .consultation-actions { padding-top: 12px; padding-bottom: 16px; }
}
@media(prefers-reduced-motion:reduce) { .consultation-panel { animation: none; } }
