html.contact-modal-open, html.contact-modal-open body { overflow: hidden; }
html.contact-modal-open { scrollbar-gutter: stable; }
.contact-modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: var(--text); font: inherit; overscroll-behavior: none; }
.contact-modal[open] { display: grid; place-items: center; }
.contact-modal::backdrop { background: #171f244d; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.contact-modal-panel { position: relative; display: grid; grid-template-columns: .95fr 1.15fr; width: min(1060px, 100%); height: min(650px, 100%); min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--background); box-shadow: 0 30px 100px #122a2433; animation: contact-modal-enter .3s ease-out; }
.contact-modal-close { position: absolute; top: 15px; right: 15px; z-index: 1; width: 36px; height: 36px; border: 1px solid var(--border); background: var(--background); }
.contact-modal-close .icon { width: 18px; height: 18px; }
.contact-modal-details { display: flex; flex-direction: column; min-width: 0; padding: 40px; border-right: 1px solid var(--border); background: var(--gradient); }
.contact-modal-brand .brand-symbol { width: 30px; height: 30px; }
.contact-modal-brand .brand-wordmark { font-size: 18px; }
.contact-modal-copy { margin-top: 36px; }
.contact-modal-copy .eyebrow { font-size: 10px; letter-spacing: 1.8px; }
.contact-modal-copy h2 { margin-top: 12px; font-size: clamp(32px, 3.2vw, 43px); letter-spacing: -1.3px; line-height: 1.12; }
.contact-modal-copy > p:last-child { max-width: 340px; margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.contact-modal-channels { display: grid; gap: 10px; margin-top: 25px; }
.contact-modal-channels a { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px; border: 1px solid color-mix(in srgb, var(--background) 60%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--background) 60%, transparent); transition: background .2s, transform .2s; }
.contact-modal-channels a:hover { background: var(--background); transform: translateY(-2px); }
.contact-channel-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 11px; background: var(--background); color: var(--muted); }
.contact-channel-icon .icon { width: 18px; height: 18px; }
.contact-modal-channels a > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-modal-channels small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.contact-modal-channels strong { display: block; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.2px; }
.contact-modal-channels a > .icon { width: 15px; height: 15px; color: var(--muted); }
.contact-modal-person { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 24px; }
.contact-modal-person img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.contact-modal-person strong, .contact-modal-person div > span { display: block; }
.contact-modal-person strong { font-size: 14px; font-weight: 500; }
.contact-modal-person div > span { color: var(--muted); font-size: 11px; }
.contact-modal-person > .status-dot { margin-left: auto; }
.contact-modal-main { display: flex; align-items: center; min-width: 0; min-height: 0; padding: 42px; }
.contact-modal-form { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.contact-form-heading { margin-bottom: 22px; }
.contact-form-heading h2 { font-size: 31px; letter-spacing: -.9px; line-height: 1.2; }
.contact-form-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-form-fields { display: grid; gap: 14px; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-field { min-width: 0; }
.contact-field label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.contact-field label > span:not(.contact-field-optional) { color: var(--accent); }
.contact-field-optional { color: var(--muted); font-size: 10px; font-weight: 400; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-width: 0; margin: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font: 400 16px/1.4 'Inter Tight', Arial, sans-serif; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-field input { height: 46px; }
.contact-field textarea { height: 80px; resize: none; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--muted); opacity: .75; font-size: 13px; }
.contact-field input:focus, .contact-field textarea:focus { border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); outline: 0; background: var(--background); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-modal-submit.button { display: flex; justify-content: space-between; width: 100%; min-height: 50px; margin-top: 18px; padding: 7px 8px 7px 20px; border: 0; background: var(--text); color: var(--background); font-size: 15px; }
.contact-modal-submit .button-arrow { background: var(--background); color: var(--text); }
.contact-modal-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-modal-error { margin-top: 10px; color: #b44242; font-size: 12px; line-height: 1.4; }
.contact-modal-demo { margin-top: 10px; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.5; }
.contact-modal-success { width: 100%; text-align: center; }
.contact-success-check { display: grid; place-items: center; width: 98px; height: 98px; margin: 0 auto 30px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); border-radius: 50%; background: var(--gradient); color: var(--accent); box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent-soft) 55%, transparent); animation: contact-check-enter .5s cubic-bezier(.22, 1, .36, 1); }
.contact-success-check .icon { width: 43px; height: 43px; stroke-width: 2; }
.contact-modal-success .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
.contact-modal-success h2 { margin-top: 14px; font-size: 35px; letter-spacing: -1px; line-height: 1.15; }
.contact-modal-success h2:focus { outline: none; }
.contact-modal-success > p:not(.eyebrow, .contact-modal-demo) { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-modal-success .contact-modal-submit { max-width: 280px; margin: 26px auto 0; }
.contact-modal-success .contact-modal-demo { margin-top: 18px; }
.footer-contact a.footer-appointment { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.footer-appointment .icon { width: 15px; height: 15px; }
@keyframes contact-modal-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes contact-check-enter { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

@media (max-height: 700px) {
    .contact-modal { padding: 16px; }
    .contact-modal-panel { height: 100%; }
    .contact-modal-details { padding: 28px; }
    .contact-modal-copy { margin-top: 24px; }
    .contact-modal-copy h2 { font-size: 34px; }
    .contact-modal-copy > p:last-child { margin-top: 12px; font-size: 14px; }
    .contact-modal-person { padding-top: 16px; }
    .contact-modal-main { padding: 28px; }
    .contact-form-heading { margin-bottom: 16px; }
    .contact-form-heading h2 { font-size: 28px; }
    .contact-form-fields, .contact-form-row { gap: 10px; }
    .contact-field textarea { height: 68px; }
}

@media (max-width: 760px) {
    .contact-modal { padding: 12px; }
    .contact-modal-panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: min(700px, 100%); border-radius: 22px; }
    .contact-modal-close { top: 10px; right: 10px; width: 32px; height: 32px; }
    .contact-modal-details { padding: 15px 50px 14px 18px; border-right: 0; border-bottom: 1px solid var(--border); }
    .contact-modal-brand, .contact-modal-copy, .contact-modal-person { display: none; }
    .contact-modal-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
    .contact-modal-channels a { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .contact-modal-channels .contact-channel-icon, .contact-modal-channels a > .icon { display: none; }
    .contact-modal-channels small { margin-bottom: 3px; font-size: 10px; }
    .contact-modal-channels strong { font-size: 12px; }
    .contact-modal-main { padding: 20px; }
    .contact-form-heading { margin-bottom: 16px; }
    .contact-form-heading h2 { font-size: 27px; }
    .contact-form-heading p { margin-top: 5px; font-size: 12px; }
    .contact-form-fields, .contact-form-row { gap: 10px; }
    .contact-field label { margin-bottom: 5px; }
    .contact-field input { height: 42px; }
    .contact-field textarea { height: 64px; }
    .contact-modal-submit.button { min-height: 46px; margin-top: 14px; }
    .contact-modal-demo { margin-top: 8px; }
    .contact-success-check { width: 80px; height: 80px; margin-bottom: 25px; }
    .contact-modal-success h2 { font-size: 30px; }
    .contact-modal-success > p:not(.eyebrow, .contact-modal-demo) { font-size: 15px; }
}

@media (max-height: 520px) {
    .contact-modal { padding: 10px; }
    .contact-modal-panel { height: 100%; }
    .contact-modal-main, .contact-modal-details { padding: 18px; }
    .contact-modal-copy { margin-top: 18px; }
    .contact-modal-copy h2 { margin-top: 6px; font-size: 30px; }
    .contact-modal-copy > p:last-child, .contact-modal-person { display: none; }
    .contact-modal-channels { margin-top: 16px; }
    .contact-form-heading { margin-bottom: 10px; }
    .contact-form-heading h2 { font-size: 24px; }
    .contact-form-heading p { display: none; }
    .contact-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
    .contact-form-row { display: contents; }
    .contact-field label { margin-bottom: 4px; font-size: 11px; }
    .contact-field input { height: 36px; padding-block: 6px; }
    .contact-field textarea { height: 48px; padding-block: 6px; }
    .contact-modal-submit.button { min-height: 40px; margin-top: 10px; }
    .contact-modal-demo { margin-top: 6px; }
    .contact-success-check { width: 60px; height: 60px; margin-bottom: 20px; }
    .contact-modal-success h2 { font-size: 28px; }
}

@media (max-width: 760px) and (max-height: 520px) {
    .contact-modal-details { padding: 10px 48px 10px 16px; }
    .contact-modal-channels { margin-top: 0; }
    .contact-modal-main { padding: 12px 18px; }
}
