:root {
    --contact-widget-vh: 1svh;
    --contact-widget-top: 0px;
}

html.contact-widget-lock,
body.contact-widget-lock {
    overflow: hidden;
    overscroll-behavior: none;
}

.va-contact-widget-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 54px;
    min-height: min(190px, calc(var(--contact-widget-vh) * 72));
    padding: 16px 10px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background-color: #F4B942;
    color: #111111;
    font-family: 'Raleway', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.va-contact-widget-trigger:hover {
    background-color: #E0A030;
    transform: translateY(-50%);
}

.va-contact-widget-trigger.is-hidden-by-mobile-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.va-contact-widget-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}

.va-contact-widget-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    order: 0;
}

.va-contact-widget-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.contact-widget-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--contact-widget-top);
    height: calc(var(--contact-widget-vh) * 100);
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.contact-widget-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto;
}

.contact-widget-form {
    position: fixed;
    left: 0;
    top: var(--contact-widget-top);
    bottom: auto;
    z-index: 9999;
    width: min(430px, 100svw);
    height: calc(var(--contact-widget-vh) * 100);
    max-height: calc(var(--contact-widget-vh) * 100);
    overflow: hidden;
    background: #ffffff;
    color: #1c1917;
    border-radius: 0;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.contact-widget-form.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.contact-widget-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 96px;
    padding: 22px 22px;
    background: #F4B942;
    color: #111111;
    border-radius: 0;
}

.contact-widget-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.contact-widget-header p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.82;
    line-height: 1.45;
}

.contact-widget-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.22);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 34px;
    padding: 0;
}

.contact-widget-body {
    padding: 20px 22px 22px;
    height: calc((var(--contact-widget-vh) * 100) - 96px);
    overflow-y: auto;
    box-sizing: border-box;
}

.contact-widget-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.contact-widget-step-count,
.contact-widget-eyebrow {
    color: #8a8178;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-widget-progress {
    height: 5px;
    background: #eeeeee;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.contact-widget-progress-bar {
    height: 100%;
    width: 50%;
    background: #F4B942;
    border-radius: inherit;
    transition: width 0.22s ease;
}

.contact-widget-title {
    margin: 6px 0 4px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.contact-widget-subtitle {
    margin: 0 0 24px;
    color: #6a625d;
    font-size: 0.92rem;
    line-height: 1.45;
}

.contact-widget-step {
    display: none;
}

.contact-widget-step.is-active {
    display: block;
}

.contact-widget-field {
    margin-bottom: 16px;
}

.contact-widget-field label {
    display: block;
    margin-bottom: 10px;
    color: #1c1917;
    font-size: 13px;
    font-weight: 700;
}

.contact-widget-field input,
.contact-widget-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-widget-field textarea {
    min-height: 108px;
    max-height: 32vh;
    resize: vertical;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-widget-field textarea::-webkit-scrollbar {
    display: none;
}

.contact-widget-field input:focus,
.contact-widget-field textarea:focus {
    border-color: #F4B942;
    box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.18);
}

.contact-widget-step-footer {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.contact-widget-submit,
.contact-widget-back {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-widget-submit {
    flex: 1;
    background: #F4B942;
    color: #111111;
}

.contact-widget-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.contact-widget-back {
    background: #f0f0f0;
    color: #20242a;
}

.contact-widget-message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .va-contact-widget-trigger {
        top: auto;
        bottom: 86px;
        left: 0;
        transform: none;
        border-radius: 0 8px 8px 0;
        width: clamp(42px, 12svw, 48px);
        min-height: clamp(124px, calc(var(--contact-widget-vh) * 32), 156px);
        max-height: calc(var(--contact-widget-vh) * 72);
        gap: clamp(8px, 2.4svw, 12px);
        padding: clamp(10px, 3svw, 14px) clamp(6px, 2svw, 8px);
        font-size: clamp(12px, 3.4svw, 15px);
    }

    .va-contact-widget-trigger:hover {
        transform: none;
    }

    .va-contact-widget-label {
        display: inline;
    }

    .contact-widget-form {
        left: 0;
        right: auto;
        top: var(--contact-widget-top);
        width: min(390px, 100svw);
        height: calc(var(--contact-widget-vh) * 100);
        max-height: calc(var(--contact-widget-vh) * 100);
    }

    .contact-widget-header {
        min-height: clamp(76px, calc(var(--contact-widget-vh) * 16), 96px);
        padding: clamp(16px, 4svw, 22px);
        gap: clamp(10px, 3svw, 16px);
    }

    .contact-widget-header h3 {
        font-size: clamp(19px, 5.4svw, 22px);
    }

    .contact-widget-header p {
        font-size: clamp(12px, 3.4svw, 13px);
    }

    .contact-widget-body {
        height: calc((var(--contact-widget-vh) * 100) - clamp(76px, calc(var(--contact-widget-vh) * 16), 96px));
        padding: clamp(16px, 4.5svw, 20px) clamp(16px, 5svw, 22px) clamp(18px, 5svw, 22px);
    }

    .contact-widget-title {
        font-size: clamp(1.1rem, 5svw, 1.35rem);
    }

    .contact-widget-subtitle {
        margin-bottom: clamp(16px, 5svw, 24px);
    }

    .contact-widget-field textarea {
        min-height: clamp(84px, calc(var(--contact-widget-vh) * 18), 108px);
        max-height: clamp(116px, calc(var(--contact-widget-vh) * 30), 190px);
    }

    .contact-widget-field input,
    .contact-widget-field textarea {
        font-size: 16px;
        padding: 10px 12px;
    }

    .contact-widget-submit,
    .contact-widget-back {
        min-height: clamp(40px, calc(var(--contact-widget-vh) * 7), 44px);
        padding: 0 clamp(12px, 4svw, 16px);
    }
}

@media (max-width: 480px) {
    .va-contact-widget-trigger {
        bottom: 68px;
    }
}
