.consultation-popup { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.consultation-popup[hidden], .consultation-popup [hidden] { display: none !important; }
.consultation-popup__backdrop { position: absolute; inset: 0; background: rgb(8 36 54 / .55); }
.consultation-popup__dialog { position: relative; width: min(900px, 100%); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid #dfe5e8; border-radius: 20px; background: #fff; color: #082436; box-shadow: 0 24px 80px rgb(8 36 54 / .25); font-family: Inter, sans-serif; font-size: 14px; line-height: 1.7; animation: consultation-enter .2s ease-out; }
.consultation-popup__scroll { display: grid; grid-template-columns: minmax(230px, .78fr) minmax(0, 1.5fr); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; }
.consultation-popup__close { position: absolute; inset-inline-end: 14px; top: 14px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dfe5e8; border-radius: 50%; background: #fff; color: #526976; cursor: pointer; }
.consultation-popup__close:hover { background: #eef7f2; color: #087b48; }
.consultation-popup__intro { display: flex; flex-direction: column; align-items: flex-start; padding: 32px 28px; background: #082436; color: #c5d8e1; }
.consultation-popup__logo { display: block; width: 135px; height: auto; margin-bottom: 30px; }
.consultation-popup .consultation-popup__eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.7; text-transform: uppercase; }
.consultation-popup__intro .consultation-popup__eyebrow { color: #a7e9ce; }
.consultation-popup h2 { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.consultation-popup__intro h2 { color: #fff; font-size: 26px; }
.consultation-popup__intro h2 span { color: #a7e9ce; }
.consultation-popup__intro > p:not(.consultation-popup__eyebrow) { margin: 20px 0 0; font-size: 13px; line-height: 1.8; }
.consultation-popup__intro ul { display: grid; gap: 12px; margin: 26px 0 32px; padding: 0; list-style: none; font-size: 12px; }
.consultation-popup__intro li { display: flex; align-items: center; gap: 10px; }
.consultation-popup__intro li i { color: #a7e9ce; font-size: 11px; }
.consultation-popup__phone { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid #2c4859; width: 100%; color: #fff; font-size: 20px; font-weight: 600; text-decoration: none; }
.consultation-popup__phone i { color: #a7e9ce; font-size: 16px; }
.consultation-popup__main { padding: 30px; min-width: 0; }
.consultation-popup__header { margin-bottom: 22px; padding-inline-end: 22px; }
.consultation-popup__header .consultation-popup__eyebrow { color: #087b48; }
.consultation-popup__header h2 { font-size: 22px; }
.consultation-popup__header > p:last-child { margin: 9px 0 0; font-size: 13px; color: #607181; }
.consultation-popup__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consultation-popup__field { min-width: 0; }
.consultation-popup__field--wide { grid-column: 1 / -1; }
.consultation-popup__field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.consultation-popup__field label span { color: #087b48; }
.consultation-popup__field em { color: #607181; font-size: 11px; font-style: normal; font-weight: 400; }
.consultation-popup__field :is(input, textarea, select) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cddbd4; border-radius: 7px; background: #fff; color: #082436; font: inherit; font-size: 13px; line-height: 1.5; }
.consultation-popup__field input::placeholder, .consultation-popup__field textarea::placeholder { color: #82909b; }
.consultation-popup__field small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.5; color: #607181; }
.consultation-popup__field textarea { display: block; resize: vertical; max-height: 160px; }
.consultation-popup__consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: #526976; font-size: 11px; line-height: 1.7; cursor: pointer; }
.consultation-popup__consent input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: #087b48; }
.consultation-popup__submit { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 46px; padding: 11px 16px; border-radius: 7px; background: #087b48; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, box-shadow .2s; }
.consultation-popup__submit:hover { background: #066238; box-shadow: 0 4px 12px rgb(8 123 72 / .15); }
.consultation-popup__submit:disabled { opacity: .55; cursor: wait; }
.consultation-popup__privacy { display: block; width: fit-content; margin-top: 12px; color: #607181; font-size: 11px; text-decoration: underline; }
.consultation-popup__error { padding: 10px 12px; margin-bottom: 16px; border: 1px solid #edcfca; border-radius: 7px; background: #fff4f3; color: #a03529; font-size: 12px; }
.consultation-popup [aria-invalid="true"] { border-color: #a03529; }
.consultation-popup__package { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px; border: 1px solid #cfe5d9; border-radius: 8px; background: #eef7f2; }
.consultation-popup__package small { display: block; color: #607181; font-size: 10px; }
.consultation-popup__package strong { display: block; font-size: 12px; font-weight: 600; }
.consultation-popup__package button { flex: none; padding: 8px 0; font-size: 11px; color: #087b48; text-decoration: underline; cursor: pointer; }
.consultation-popup__success { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; height: 100%; text-align: center; }
.consultation-popup__success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: #e9f5ee; color: #087b48; font-size: 26px; }
.consultation-popup__success h2 { font-size: 22px; }
.consultation-popup__success p { margin: 16px 0 24px; color: #607181; font-size: 14px; }
.consultation-popup :is(input, textarea, select, button, a):focus-visible { outline: 2px solid #087b48; outline-offset: 3px; }
[dir="rtl"] .consultation-popup .consultation-popup__eyebrow { letter-spacing: normal; }
[dir="rtl"] .consultation-popup__submit .fa-arrow-right { transform: rotate(180deg); }
@keyframes consultation-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
  .consultation-popup { padding: 16px; }
  .consultation-popup__dialog { grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 32px); border-radius: 16px; }
  .consultation-popup__scroll { grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 32px); }
  .consultation-popup__intro { padding: 22px; }
  .consultation-popup__logo { width: 105px; margin-bottom: 16px; }
  .consultation-popup__intro h2 { font-size: 22px; }
  .consultation-popup__intro br { display: none; }
  .consultation-popup__intro h2 span::before { content: " "; }
  .consultation-popup__intro > p:not(.consultation-popup__eyebrow) { margin-top: 12px; }
  .consultation-popup__intro ul, .consultation-popup__phone, .consultation-popup__intro .consultation-popup__eyebrow { display: none; }
  .consultation-popup__main { padding: 22px; }
  .consultation-popup__header { padding-inline-end: 0; }
  .consultation-popup__header h2 { font-size: 20px; }
  .consultation-popup__fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .consultation-popup__field :is(input, textarea, select) { font-size: 16px; }
  .consultation-popup__success { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .consultation-popup__dialog { animation: none; } .consultation-popup__submit { transition: none; } }

#consultation-popup-title:focus { outline: none; }
