/* ==========================================================
   FORM CARDS
   Reusable card layout for Fluent Forms checkbox/radio fields.
   Add the CSS class "form-cards" to the field/container.
   ========================================================== */

.form-cards .ff-el-input--content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-cards .ff-el-form-check {
    display: flex;
    height: 100%;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.form-cards .ff-el-form-check:hover {
    background: #fafafa;
    border-color: #d2d2d2;
}

.form-cards .ff-el-form-check.ff_item_selected {
    background: #FFE7E0;
    border-color: #FF8A70;
    box-shadow: 0 0 0 2px rgba(255, 138, 112, .15);
    transform: translateY(-2px);
}

.form-cards .ff-el-form-check-label {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 12px;
    align-items: start;
    width: 100%;
}

.form-cards .ff-el-form-check-input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #FF8A70;
}

.form-cards .ff-el-form-check-label > span {
    display: block;
}

.form-cards strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.form-cards .form-card-description,
.form-cards .incident-description {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    font-weight: 400;
}

.form-cards .ff-el-form-check.ff_item_selected strong {
    color: #E65A37;
}

@media only screen and (max-width: 767px) {
    .form-cards .ff-el-input--content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .form-cards .ff-el-form-check {
        width: 100% !important;
    }
}

.qsb-submit-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #c62828;
    border-radius: 6px;
    background: #fff4f4;
    color: #8e1b1b;
    font-size: 15px;
    line-height: 1.45;
}

.qsb-consultation-submit.qsb-is-submitting {
    cursor: wait;
    opacity: .7;
}

/* ==========================================================
   ALTCHA CAPTCHA
   ========================================================== */
.qsb-altcha-container {
    display: none;
    margin: 0 0 18px;
    width: 100%;
}

.qsb-altcha-container altcha-widget {
    --altcha-border-radius: 8px;
    --altcha-color-border: #ff8a70;
    --altcha-color-base: #ffffff;
    --altcha-color-text: #1f1f1f;
    max-width: 100%;
}

.qsb-altcha-client-error {
    margin: 10px 0 0;
    color: #8e1b1b;
    font-size: 14px;
    line-height: 1.4;
}

/* CAPTCHA and the related submit button must always be stacked vertically. */
.qsb-altcha-button-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.qsb-altcha-button-stack > .qsb-altcha-container {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
}

.qsb-altcha-button-stack > .qsb-altcha-container altcha-widget {
    display: block;
    width: min(100%, 420px);
    max-width: 100%;
}

.qsb-altcha-button-stack > .ff-btn-submit,
.qsb-altcha-button-stack > button[type="submit"],
.qsb-altcha-button-stack > input[type="submit"] {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}



.ff-message-success {
    border: none !important;
    box-shadow: none !important;
}
