/**
 * Formidable Forms migration styles.
 *
 * Preserved from the previous BeTheme custom CSS while the forms are rebuilt.
 */

#frm_field_482_container input,
#frm_field_486_container input,
#frm_field_487_container input,
#frm_field_475_container input,
#frm_field_489_container input,
#frm_field_472_container input,
#frm_field_496_container input,
#frm_field_7_container input,
#frm_field_9_container input,
#frm_field_504_container input,
#frm_field_145_container input,
#frm_field_141_container input,
#frm_field_11_container input,
#frm_field_260_container input,
#frm_field_12_container input,
#frm_field_502_container input,
#frm_field_143_container input,
#frm_field_19_container input,
#frm_field_23_container input,
#frm_field_28_container input,
#frm_field_29_container input,
#frm_field_34_container input,
#frm_field_35_container input,
#frm_field_37_container input,
#frm_field_41_container input,
#frm_field_154_container input,
#frm_field_71_container input,
#frm_field_81_container input,
#frm_field_111_container input[type="radio"],
#frm_field_113_container input[type="radio"],
#frm_field_116_container input,
#frm_field_126_container input[type="radio"],
#frm_field_124_container input[type="radio"],
#frm_field_120_container input,
#frm_field_16_container input,
#frm_field_117_container input,
#frm_field_119_container input,
#frm_field_21_container input,
#frm_field_255_container input,
#frm_field_258_container input,
#frm_field_102_container input[type="checkbox"],
#frm_field_152_container input[type="checkbox"] {
    display: none;
}

#frm_field_102_container div.frm_checkbox input[type="text"],
#frm_field_152_container div.frm_checkbox input[type="text"],
#frm_field_111_container div.frm_radio input[type="text"],
#frm_field_113_container div.frm_radio input[type="text"],
#frm_field_124_container div.frm_radio input[type="text"],
#frm_field_126_container div.frm_radio input[type="text"] {
    margin-bottom: 20px;
}

.msgafterloader {
    display: none;
}

#frm_field_7_container div.frm_radio {
    float: left;
}

.img_help,
.radiotick,
.checkboxtick {
    cursor: pointer;
}

.radiotick,
.checkboxtick {
    vertical-align: top;
}

.frm_form_fields .frm_fields_container {
    padding: 30px 0 0;
}

#frm_form_2_container .frm_page_num_1 .frm_button_submit {
    display: none;
}

body .frm_style_formidable-style.with_frm_style .frm_primary_label {
    background: #f2f2f2;
    padding: 10px;
    margin-bottom: 20px;
    color: #000;
    border: solid 2px #ffcc00;
    border-radius: 5px;
}

body .frm_style_formidable-style.with_frm_style .frm_primary_label .frm_required {
    color: #fff;
}

.frm_submit .frm_prev_page,
.frm_submit .frm_button_submit,
.frm_submit .frm_prev_page:hover,
.frm_submit .frm_button_submit:hover {
    background: #ffcc00 !important;
    color: #000 !important;
    border: solid 1px #000 !important;
}

.frm_style_formidable-style.with_frm_style .frm_primary_label {
    font-weight: 700 !important;
}

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #ffcc00;
    width: 120px;
    height: 120px;
    -webkit-animation: tmh-form-spin 2s linear infinite;
    animation: tmh-form-spin 1s linear 3;
}

@-webkit-keyframes tmh-form-spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes tmh-form-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

a.privacylnk {
    color: #ffcc00;
}

h4#frmModalLabel-0 #formbaseimgage {
    display: none;
}

#siteheaderlogo {
    display: none;
}

#head_phone {
    display: none;
}

h4#frmModalLabel-0 #siteheaderlogo {
    display: block;
    float: left;
}

h4#frmModalLabel-0 #head_phone {
    display: block;
    width: 140px;
    float: right;
    margin-top: 5px !important;
}

.border-box {
    border: 4px solid #ffcc00;
    border-radius: 5px;
}

@media only screen and (max-width: 580px) {
    #frm_field_7_container div.frm_radio {
        width: 50%;
    }
}

/* Rebuilt enquiry form cards: align homepage, contact, equity and location forms with the cleaner service-page style. */
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(16, 16, 16, .12);
    border-top: 6px solid var(--tmh-colour-yellow, #ffcc00);
    border-radius: var(--tmh-radius-card, 8px);
    background: #fff;
    box-shadow: var(--tmh-shadow-card, 0 16px 38px rgba(16, 16, 16, .08));
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_forms,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) form,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) fieldset,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_form_fields,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_form_fields .frm_fields_container {
    padding: 0;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_forms {
    margin-top: 20px;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_form_field {
    margin-bottom: 16px;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_style_formidable-style.with_frm_style .frm_primary_label,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_primary_label {
    display: block;
    padding: 0 !important;
    margin: 0 0 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--tmh-colour-black, #101010) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_required {
    color: #b58500 !important;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="text"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="email"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="tel"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="phone"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="number"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="date"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input[type="time"],
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) select,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-height: 46px;
    padding: 11px 13px !important;
    border: 1px solid rgba(16, 16, 16, .18) !important;
    border-radius: var(--tmh-radius-button, 6px) !important;
    background: #fff !important;
    color: var(--tmh-colour-black, #101010) !important;
    font-size: 16px;
    line-height: 1.4;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) textarea {
    min-height: 120px;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) input:focus,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) select:focus,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) textarea:focus {
    border-color: var(--tmh-colour-yellow, #ffcc00) !important;
    outline: 2px solid rgba(255, 204, 0, .32);
    outline-offset: 1px;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit {
    margin-top: 18px;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_prev_page,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_button_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tmh-button-height, 48px);
    max-width: 100%;
    padding: 0 24px !important;
    border: 2px solid var(--tmh-colour-black, #101010) !important;
    border-radius: var(--tmh-radius-button, 6px) !important;
    background: var(--tmh-colour-yellow, #ffcc00) !important;
    color: var(--tmh-colour-black, #101010) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.2;
    white-space: normal;
}

:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_prev_page:hover,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_button_submit:hover,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_prev_page:focus,
:is(
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_submit .frm_button_submit:focus {
    border-color: var(--tmh-colour-black, #101010) !important;
    background: var(--tmh-colour-black, #101010) !important;
    color: #fff !important;
}

@media only screen and (max-width: 580px) {
    :is(
        .tmh-home-form-card,
        .tmh-contact-form-card,
        .tmh-selfemployed-form-card,
        .tmh-equity-form-card,
        .tmh-location-form-card
    ) {
        padding: 24px;
    }

    :is(
        .tmh-home-form-card,
        .tmh-contact-form-card,
        .tmh-selfemployed-form-card,
        .tmh-equity-form-card,
        .tmh-location-form-card
    ) .frm_submit .frm_prev_page,
    :is(
        .tmh-home-form-card,
        .tmh-contact-form-card,
        .tmh-selfemployed-form-card,
        .tmh-equity-form-card,
        .tmh-location-form-card
    ) .frm_submit .frm_button_submit {
        width: 100%;
    }
}

/* Rebuilt enquiry form headers: prevent legacy half-width logo/title rows from squeezing in form cards. */
:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first,
:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container {
    box-sizing: border-box;
    float: none !important;
    clear: both !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: center;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first {
    margin-bottom: 10px !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container {
    margin-bottom: 22px !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first p,
:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container p {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 8px !important;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first img {
    display: block;
    width: min(92px, 32vw);
    height: auto;
    max-width: 100%;
    margin: 8px auto 0;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container h3 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 2px auto 14px !important;
    color: var(--tmh-colour-black, #101010);
    font-size: clamp(21px, 4vw, 28px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: 0;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: manual;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container h3 strong {
    display: inline;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container .button.button_theme.button_js.action_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 330px);
    min-height: var(--tmh-button-height, 48px);
    max-width: 100%;
    min-width: 0 !important;
    padding: 10px 18px !important;
    border: 2px solid var(--tmh-colour-black, #101010) !important;
    border-radius: var(--tmh-radius-button, 6px) !important;
    background: var(--tmh-colour-yellow, #ffcc00) !important;
    color: var(--tmh-colour-black, #101010) !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container .button.button_theme.button_js.action_button .button_label {
    display: block;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_combo_inputs_container,
:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_form_field,
:is(
    .tmh-ftb-form-card,
    .tmh-home-form-card,
    .tmh-contact-form-card,
    .tmh-selfemployed-form-card,
    .tmh-equity-form-card,
    .tmh-location-form-card
) .frm_form_field > * {
    max-width: 100%;
    min-width: 0;
}

@media only screen and (max-width: 580px) {
    :is(
        .tmh-ftb-form-card,
        .tmh-home-form-card,
        .tmh-contact-form-card,
        .tmh-selfemployed-form-card,
        .tmh-equity-form-card,
        .tmh-location-form-card
    ) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container h3 {
        font-size: clamp(21px, 7vw, 27px);
    }

    :is(
        .tmh-ftb-form-card,
        .tmh-home-form-card,
        .tmh-contact-form-card,
        .tmh-selfemployed-form-card,
        .tmh-equity-form-card,
        .tmh-location-form-card
    ) .frm_fields_container > .frm_html_container.frm_first + .frm_html_container .button.button_theme.button_js.action_button {
        width: 100%;
    }
}

/* Homepage enquiry form inner spacing: keep fields away from the card border without changing other form cards. */
.home .tmh-home-intro .tmh-home-form-card .frm_forms {
    box-sizing: border-box;
    padding-right: 24px !important;
    padding-left: 24px !important;
}

.home .tmh-home-intro .tmh-home-form-card .frm_form_fields,
.home .tmh-home-intro .tmh-home-form-card .frm_fields_container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home .tmh-home-intro .tmh-home-form-card .frm_fields_container {
    padding-right: 24px !important;
    padding-left: 24px !important;
}

@media only screen and (max-width: 580px) {
    .home .tmh-home-intro .tmh-home-form-card .frm_forms {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .home .tmh-home-intro .tmh-home-form-card .frm_fields_container {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}
