.scb-rqf-shell,
.scb-rqf-shell * {
    box-sizing: border-box;
}

.scb-rqf-open-button {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 2px;
    background: #ee2824;
    color: #fff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.scb-rqf-open-button:hover,
.scb-rqf-open-button:focus {
    background: #d8201d;
    color: #fff;
    outline: none;
}

.scb-rqf {
    width: 100%;
}

.scb-rqf--inline_hidden,
.scb-rqf--modal {
    display: none;
}

.scb-rqf--inline_hidden.is-open,
.scb-rqf--modal.is-open {
    display: block;
}

.scb-rqf--modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1051;
    padding: 20px 10px;
    overflow: auto;
    text-align: center;
}

.scb-rqf--modal:before {
    content: "";
    display: inline-block;
    height: 100%;
    margin-right: -4px;
    vertical-align: middle;
}

.scb-rqf-modal-backdrop {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, .42);
}

.scb-rqf-modal-backdrop.is-open {
    display: block;
}

body.scb-rqf-modal-open {
    overflow: hidden;
}

.scb-rqf__dialog {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.scb-rqf--modal .scb-rqf__dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.scb-rqf__content {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 2px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.scb-rqf--inline .scb-rqf__content,
.scb-rqf--inline_hidden .scb-rqf__content {
    box-shadow: none;
}

.scb-rqf__header {
    position: relative;
    min-height: 52px;
    padding: 14px 52px 14px 18px;
    background: #ee2824;
    color: #fff;
}

.scb-rqf__title {
    margin: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.scb-rqf__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 36px;
    font-weight: 300;
    cursor: pointer;
}

.scb-rqf__close:hover,
.scb-rqf__close:focus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    outline: none;
}

.scb-rqf__body {
    padding: 18px;
}

.scb-rqf__subtitle {
    margin: 0 0 14px;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}

.scb-rqf__field {
    position: relative;
    margin: 0 0 12px;
}

.scb-rqf__control.form-control,
.scb-rqf__control {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 1px !important;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

textarea.scb-rqf__control {
    min-height: 92px;
    resize: vertical;
}

.scb-rqf__control:focus {
    border-color: #ee2824;
    outline: none;
    box-shadow: 0 0 0 2px rgba(238, 40, 36, .12);
}

.scb-rqf-control--error {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, .12) !important;
}

.scb-rqf__required {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #d60000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.scb-rqf__agreement {
    margin: 14px 0 0;
    color: #444;
    font-size: 13px;
    line-height: 1.35;
}

.scb-rqf__agreement label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.scb-rqf__agreement input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.scb-rqf__agreement a {
    color: #d8201d;
    text-decoration: underline;
}

.scb-rqf__footer {
    padding: 0 18px 18px;
    text-align: center;
}

.scb-rqf__submit {
    min-width: 160px;
    padding: 10px 18px;
    border-radius: 2px;
}

.scb-rqf__submit.is-loading {
    cursor: wait;
    opacity: .78;
}

.scb-rqf__messages {
    margin: 0 0 12px;
}

.scb-rqf-message {
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.35;
}

.scb-rqf-message p {
    margin: 0 0 6px;
}

.scb-rqf-message p:last-child {
    margin-bottom: 0;
}

.scb-rqf-message--error {
    background: #fff4f4;
    border: 1px solid #f0bcbc;
    color: #a94442;
}

.scb-rqf-message--success {
    background: #f2fbf2;
    border: 1px solid #bfe4bf;
    color: #2b6d2b;
}

.scb-rqf__recaptcha {
    margin-bottom: 12px;
}

@media (max-width: 800px) {
    .scb-rqf--modal {
        padding: 10px;
        text-align: center;
    }

    .scb-rqf--modal.is-open {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scb-rqf--modal:before {
        display: none;
    }

    .scb-rqf--modal .scb-rqf__dialog {
        display: block;
        margin: auto;
        max-height: calc(100vh - 20px);
        vertical-align: middle;
    }

    .scb-rqf--modal .scb-rqf__content {
        max-height: calc(100vh - 20px);
        overflow: auto;
    }

    .scb-rqf__title {
        font-size: 20px;
    }
}

/* Minimal request form variant: compact labels, grey controls, no boxed card. */
.scb-rqf--minimal .scb-rqf__dialog {
    max-width: 100%;
}

.scb-rqf--minimal .scb-rqf__content {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.scb-rqf--minimal .scb-rqf__body {
    padding: 0;
}

.scb-rqf--minimal .scb-rqf__footer {
    padding: 0;
    text-align: left;
}

.scb-rqf__label {
    display: block;
    margin: 0 0 6px;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 400;
}

.scb-rqf--minimal .scb-rqf__field {
    margin: 0 0 18px;
}

.scb-rqf--minimal .scb-rqf__control.form-control,
.scb-rqf--minimal .scb-rqf__control {
    min-height: 35px;
    padding: 7px 11px;
    border: 0;
    border-radius: 0 !important;
    background: #e9e9e9;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}

.scb-rqf--minimal textarea.scb-rqf__control {
    min-height: 82px;
    resize: vertical;
}

.scb-rqf--minimal .scb-rqf__control:focus {
    background: #e9e9e9;
    outline: 1px solid #cfcfcf;
    box-shadow: none;
}

.scb-rqf--minimal .scb-rqf__required {
    top: 32px;
    right: 8px;
}

.scb-rqf--minimal .scb-rqf__messages {
    margin: 0 0 12px;
}

.scb-rqf--minimal .scb-rqf__agreement {
    margin-top: 0;
}

.scb-rqf--minimal .scb-rqf__submit {
    margin-top: 8px;
}

.scb-rqf__close--minimal {
    top: 2px;
    right: 4px;
    color: #777;
    z-index: 2;
}

.scb-rqf__close--minimal:hover,
.scb-rqf__close--minimal:focus {
    color: #222;
    background: transparent;
}
