.header-request-button,
.request-form__submit {
    cursor: pointer;
    font-family: inherit;
}

.header-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid #009cb1;
    border-radius: 7px;
    background: linear-gradient(135deg, #069bb0, #008ca2);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 140, 162, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-request-button > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.header-request-button > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.header-request-button:hover,
.header-request-button:focus-visible {
    background: linear-gradient(135deg, #078da0, #077c8e);
    color: #fff;
    box-shadow: 0 7px 18px rgba(0, 124, 142, .24);
    transform: translateY(-1px);
}

.header-request-button--mobile {
    display: none;
}

.main_header .contact_box .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 195px;
}

.header-request-button--desktop {
    min-width: 178px;
}

.request-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.request-modal.is-open {
    display: flex;
}

.request-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 24, 51, .72);
}

.request-modal__panel {
    position: relative;
    width: min(100%, 620px);
    max-height: min(92vh, 900px);
    overflow-y: auto;
    padding: 34px 38px 30px;
    border: 1px solid #dce4e8;
    border-top: 7px solid #fbe239;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(8, 21, 52, .24);
    color: #1c2a62;
}

.request-modal__close {
    position: absolute;
    top: 16px;
    right: 17px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf6f8;
    color: #1c2a62;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.request-modal__close:hover,
.request-modal__close:focus-visible {
    background: #dceff3;
}

.request-modal__heading {
    padding-right: 40px;
}

.request-modal__eyebrow {
    color: #008ba0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.request-modal__heading h2 {
    margin: 10px 0 9px;
    color: #1c2a62;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.14;
}

.request-modal__heading p {
    margin: 0 0 22px;
    color: #495568;
    font-size: 15px;
    line-height: 1.5;
}

.request-form {
    display: flex;
    flex-direction: column;
}

.request-form {
    gap: 15px;
}

.request-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.request-form label {
    display: block;
    min-width: 0;
    color: #1c2a62;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.request-form__optional {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf6f8;
    color: #687589;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: 1px;
}

.request-form input[type="text"],
.request-form input[type="tel"],
.request-form select,
.request-form textarea {
    width: 100%;
    min-height: 46px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid #c9d5dc;
    border-radius: 5px;
    outline: none;
    background: #fff;
    color: #24354e;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.request-form select {
    appearance: none;
    padding-right: 42px;
    background-image: linear-gradient(45deg, transparent 50%, #1c2a62 50%),
        linear-gradient(135deg, #1c2a62 50%, transparent 50%);
    background-position: calc(100% - 19px) 20px, calc(100% - 13px) 20px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

.request-form textarea {
    min-height: 102px;
    resize: vertical;
}

.request-form__field-hint,
.request-form__field-error {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.request-form__field-hint {
    color: #69778b;
}

.request-form__field-error {
    color: #a51f37;
    font-weight: 600;
}

.request-form__field-error:empty {
    display: none;
}

.request-form input[aria-invalid="true"],
.request-form select[aria-invalid="true"],
.request-form textarea[aria-invalid="true"] {
    border-color: #b41333;
    box-shadow: 0 0 0 3px rgba(180, 19, 51, .1);
}

.request-form__upload.is-invalid {
    border-color: #b41333;
    background: #fff6f7;
}

.request-form__consent.is-invalid {
    color: #85172c !important;
}

.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible,
.request-form__upload:focus-within {
    border-color: #009cb1;
    box-shadow: 0 0 0 3px rgba(0, 156, 177, .17);
}

.request-form__upload {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 13px !important;
    min-height: 70px;
    padding: 12px 16px;
    border: 1px dashed #7ab8c1;
    border-radius: 6px;
    background: #f1fafb;
    cursor: pointer;
}

.request-form__submit {
    position: relative;
}

.request-form__submit.is-loading {
    cursor: wait;
}

.request-form__submit.is-loading .request-form__submit-icon {
    display: none;
}

.request-form__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(28, 42, 98, .28);
    border-top-color: #1c2a62;
    border-radius: 50%;
    animation: requestSpinner .7s linear infinite;
}

.request-form__submit.is-loading .request-form__spinner {
    display: inline-block;
}

.request-toast {
    position: fixed;
    z-index: 10002;
    right: 24px;
    bottom: 110px;
    display: flex;
    align-items: center;
    gap: 13px;
    width: min(390px, calc(100vw - 32px));
    padding: 15px 48px 15px 16px;
    border: 1px solid #b9e1d0;
    border-radius: 12px;
    background: #f3fbf7;
    box-shadow: 0 18px 45px rgba(20, 46, 58, .2);
    color: #153d31;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .2s ease;
}

.request-toast[hidden] {
    display: none;
}

.request-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.request-toast__icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #1b9568;
    color: #fff;
    font-size: 18px;
}

.request-toast__content {
    display: grid;
    gap: 2px;
    font-size: 13px;
    line-height: 1.35;
}

.request-toast__content strong {
    color: #124936;
    font-size: 15px;
}

.request-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    color: #446d60;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

@keyframes requestSpinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .request-toast {
        right: 16px;
        bottom: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .request-form__spinner {
        animation-duration: 1.5s;
    }

    .request-toast {
        transition: none;
    }
}

.request-form__upload > i {
    color: #009cb1;
    font-size: 24px;
}

.request-form__upload span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.request-form__upload small {
    color: #657286;
    font-size: 12px;
    font-weight: 400;
}

.request-form__upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.request-form__consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px !important;
    color: #4b586b !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.request-form__consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
}

.request-form__consent a,
.request-form__footnote a {
    color: #007f93;
    text-decoration: underline;
}

.request-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.request-form__status {
    display: none;
    margin: 0;
    padding: 11px 13px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.request-form__status.is-error {
    display: block;
    background: #fff0f1;
    color: #9c1e34;
}

.request-form__status.is-success {
    display: block;
    background: #e8f7f0;
    color: #176142;
}

.request-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    border: 0;
    border-radius: 5px;
    background: #fbe239;
    color: #1c2a62;
    font-size: 16px;
    font-weight: 800;
}

.request-form__submit:hover,
.request-form__submit:focus-visible {
    background: #f0d11b;
}

.request-form__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.request-form__footnote {
    margin: 0;
    color: #59667a;
    font-size: 13px;
    text-align: center;
}

body.request-modal-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .header-request-button--desktop {
        display: none;
    }

    .header-request-button--mobile {
        display: inline-flex;
        order: 2;
        margin: 0 12px 0 auto;
    }
}

@media (max-width: 767px) {
    .header-request-button--mobile {
        min-height: 38px;
        padding: 9px 11px;
        font-size: 12px;
        box-shadow: 0 3px 10px rgba(0, 140, 162, .16);
    }

    .request-modal {
        padding: 0;
    }

    .request-modal__panel {
        width: 100%;
        max-height: 100dvh;
        min-height: 100dvh;
        padding: 28px 20px 24px;
        border: 0;
        border-top: 6px solid #fbe239;
        border-radius: 0;
    }

    .request-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 410px) {
    .header-request-button--mobile {
        gap: 6px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 10px;
    }
}
