.chat-overlay .chat-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(8 36 54 / .28); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.chat-overlay .chat-panel { position: fixed; z-index: 61; inset-inline-end: 24px; bottom: 88px; width: min(400px, calc(100% - 32px)); max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; border-radius: 18px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; box-shadow: 0 16px 48px rgb(8 36 54 / .2); }
.chat-overlay .chat-shell { background: #fff; color: #082436; border: 1px solid #dfe5e8; border-radius: inherit; font-family: Inter, sans-serif; font-size: 14px; line-height: 1.65; }
.chat-toggle:checked ~ .chat-backdrop, .chat-toggle:checked ~ .chat-panel { visibility: visible; opacity: 1; transform: none; }
.chat-overlay .chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #e6eeea; }
.chat-overlay .chat-brand { margin: 0 0 5px; color: #087b48; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.chat-overlay h2, .chat-overlay h3 { margin: 0; color: #082436; font-family: Poppins, sans-serif; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.chat-overlay h2 { font-size: 20px; }
.chat-overlay .chat-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #526976; background: #f5f7f8; flex: none; cursor: pointer; }
.chat-overlay .chat-close:hover { background: #e9f5ee; color: #087b48; }
.chat-overlay .chat-body { padding: 20px 24px 24px; }
.chat-overlay .chat-intro { margin: 0 0 20px; color: #607181; font-size: 13px; }
.chat-overlay .chat-progress { display: flex; justify-content: space-between; gap: 10px; list-style: none; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid #e6eeea; }
.chat-overlay .chat-progress li { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: #607181; }
.chat-overlay .chat-progress li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f0f3f2; }
.chat-overlay .chat-progress [aria-current="step"] { color: #087b48; }
.chat-overlay .chat-progress [aria-current="step"] > span { background: #087b48; color: #fff; }
.chat-overlay .chat-step-title { margin: 0 0 16px; padding: 0; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.5; }
.chat-overlay fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.chat-overlay .chat-options { display: grid; gap: 10px; }
.chat-overlay .chat-option { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid #dfe5e8; border-radius: 9px; font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.chat-overlay .chat-option > span:last-child { margin-inline-start: auto; color: #087b48; }
.chat-overlay input[type="radio"], .chat-overlay input[type="checkbox"] { accent-color: #087b48; width: 16px; height: 16px; flex: none; }
.chat-overlay .chat-option:hover, .chat-overlay .chat-option:has(:checked) { background: #eef7f2; border-color: #087b48; }
.chat-overlay .chat-field { margin-bottom: 16px; }
.chat-overlay .chat-field > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.chat-overlay .chat-field label span { font-weight: 400; color: #607181; }
.chat-overlay .chat-field :is(input, textarea, select) { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cddbd4; border-radius: 7px; background: #fff; color: #082436; font: inherit; font-size: 14px; line-height: 1.5; }
.chat-overlay textarea { resize: vertical; max-height: 180px; }
.chat-overlay input::placeholder, .chat-overlay textarea::placeholder { color: #82909b; }
.chat-overlay .chat-field small { display: block; margin-top: 5px; color: #607181; font-size: 11px; }
.chat-overlay .chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.chat-overlay .chat-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; background: #087b48; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; }
.chat-overlay .chat-button:hover { background: #066238; }
.chat-overlay .chat-button:disabled { opacity: .5; cursor: not-allowed; }
.chat-overlay .chat-step-count { direction: ltr; color: #607181; font-size: 11px; }
.chat-overlay .chat-back { min-height: 44px; padding: 8px 4px; color: #087b48; background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.chat-overlay .chat-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #526976; cursor: pointer; }
.chat-overlay .chat-consent input { margin-top: 3px; }
.chat-overlay .chat-privacy { display: block; width: fit-content; padding-top: 12px; color: #607181; font-size: 11px; text-decoration: underline; }
.chat-overlay .chat-error { margin-bottom: 16px; padding: 12px; background: #fff4f3; border: 1px solid #edcfca; border-radius: 7px; color: #a03529; font-size: 12px; }
.chat-overlay [aria-invalid="true"] { border-color: #a03529; }
.chat-overlay .chat-success { text-align: center; padding-block: 8px; }
.chat-overlay .chat-success h3 { font-size: 18px; margin: 14px 0 10px; }
.chat-overlay .chat-success p { margin: 0 0 20px; color: #607181; font-size: 14px; }
.chat-overlay .chat-success-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e9f5ee; color: #087b48; font-size: 24px; }
.chat-overlay .chat-success .chat-back { display: block; margin: 8px auto 0; }
.chat-overlay :is(input, textarea, select, button, a):focus-visible, .chat-overlay .chat-option:focus-within { outline: 2px solid #087b48; outline-offset: 3px; }
.chat-overlay [hidden] { display: none !important; }
[dir="rtl"] .chat-overlay .chat-brand { letter-spacing: normal; }
@media (max-width: 520px) { .chat-overlay .chat-panel { inset-inline-end: 16px; bottom: 80px; max-height: calc(100dvh - 96px); } .chat-overlay .chat-body { padding: 18px; } .chat-overlay .chat-header { padding: 18px; } .chat-overlay .chat-field :is(input, textarea, select) { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .chat-overlay :is(.chat-panel, .chat-backdrop, .chat-option, .chat-button) { transition: none; } }
