/**
 * Fluent Forms in the MountainKick look.
 * Author: Pravash Karki - pravashkarki.com
 *
 * Gives the Fluent forms the look the Gravity forms had in each place:
 * the contact and customize pages, the enquiry popup, the private trip
 * form on trip pages and the newsletter in the footer. Fluent's own
 * stylesheet sets fonts, radii and its blue button with fairly specific
 * selectors, so these rules carry !important, as the theme's Gravity
 * rules do.
 */

/* ── Every form ── */
.fluentform .ff-el-group { margin-bottom: 16px !important; }
.fluentform .ff-el-input--label { margin-bottom: 7px !important; padding: 0 !important; }
.fluentform .ff-el-input--label label {
    font-family: "MuseoSans 700", sans-serif !important;
    font-weight: normal !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--mk-navy, #003a59) !important;
    margin: 0 !important;
}
.fluentform .ff-el-is-required.asterisk-right label::after {
    content: "*" !important;
    margin-left: 1px !important;
    color: #c02b0a !important;
}
.fluentform .ff-el-form-control {
    font-family: "MuseoSans 500", sans-serif !important;
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
    color: var(--mk-text, #3a3f41) !important;
    background-color: #fff !important;
    border: 1px solid #d6d0c8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px !important;
    height: 48px !important;
}
.fluentform textarea.ff-el-form-control { height: 120px !important; min-height: 0 !important; resize: vertical; }
.fluentform select.ff-el-form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003a59' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
}
.fluentform .ff-el-form-control:focus { border-color: var(--mk-navy, #003a59) !important; outline: none; }
.fluentform .ff-el-form-control::placeholder { color: #9a948c; opacity: 1; }

/* Choices */
.fluentform .ff-el-form-check { margin-bottom: 1px !important; }
.fluentform .ff-el-form-check-label {
    font-family: "MuseoSans 700", sans-serif !important;
    font-size: 1.4rem !important;
    line-height: 1.8 !important;
    color: var(--mk-text, #3a3f41) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
/* The theme moves Gravity's checkboxes off-screen to draw its own box; Fluent's need theirs back. */
.fluentform .ff-el-form-check-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: static !important;
    left: auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 10px 0 0 !important;
    vertical-align: -3px;
    border: 1px solid #d6d0c8 !important;
    background: #fff !important;
    cursor: pointer;
}
.fluentform .ff-el-form-check-input[type="radio"] { border-radius: 50% !important; }
.fluentform .ff-el-form-check-input:checked {
    border-color: var(--mk-navy, #003a59) !important;
    background: var(--mk-navy, #003a59) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat !important;
}
.fluentform .ff-el-form-check-input:focus-visible { outline: 2px solid var(--mk-navy, #003a59); outline-offset: 2px; }

/* Section headings and steps (customize page) */
.fluentform .ff-el-section-break .ff-el-section-title {
    font-family: "Liberator Medium", sans-serif !important;
    font-weight: 500 !important;
    font-size: 4rem !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    color: var(--mk-text, #3a3f41) !important;
    margin: 0 0 8px !important;
}
.fluentform .ff-el-section-break hr { display: none; }
.fluentform .ff-step-header { margin-bottom: 20px !important; }

/* Buttons */
.fluentform .ff_submit_btn_wrapper { margin-top: 10px !important; }
.fluentform .ff-btn-submit,
.fluentform .ff-btn-next,
.fluentform .ff-btn-prev {
    font-family: "MuseoSans 700", sans-serif !important;
    font-weight: normal !important;
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    background: var(--mk-rust, #a73900) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 15px 30px !important;
    height: auto !important;
    cursor: pointer;
    transition: background .15s;
}
.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-next:hover,
.fluentform .ff-btn-prev:hover { background: var(--mk-rust-dark, #8a2e00) !important; opacity: 1 !important; }
.fluentform .ff-btn-prev { background: var(--mk-navy, #003a59) !important; }

/* Errors and the thank-you message */
.fluentform .ff-el-is-error .ff-el-form-control,
#mk-enquiry-popup .fluentform .ff-el-is-error .ff-el-form-control,
.mk-private__form .fluentform .ff-el-is-error .ff-el-form-control { border-color: #c02b0a !important; }
.fluentform .error.text-danger {
    font-family: "MuseoSans 500", sans-serif !important;
    font-size: 1.3rem !important;
    color: #c02b0a !important;
    margin-top: 6px !important;
}
.ff-message-success {
    font-family: "MuseoSans 500", sans-serif !important;
    font-size: 1.6rem !important;
    line-height: 1.5 !important;
    color: var(--mk-navy, #003a59) !important;
    background: var(--mk-forest-bg, #e8f0eb) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 18px 20px !important;
    margin: 0 !important;
}

/* ── Contact and customize pages ── */
.mkc-form .fluentform input.ff-el-form-control,
.mkc-form .fluentform select.ff-el-form-control { margin-bottom: 20px !important; }
/* A field in error keeps its message right under it; the space moves below the message. */
.mkc-form .fluentform .ff-el-is-error input.ff-el-form-control,
.mkc-form .fluentform .ff-el-is-error select.ff-el-form-control { margin-bottom: 0 !important; }
.mkc-form .fluentform .ff-el-is-error .error.text-danger { margin-bottom: 20px !important; }
.mkc-form .fluentform .ff_submit_btn_wrapper { margin-top: 20px !important; }

/* ── Enquiry popup ── */
#mk-enquiry-popup .fluentform .ff-el-form-control { padding: 10px 12px !important; height: 46px !important; }
#mk-enquiry-popup .fluentform textarea.ff-el-form-control { height: 150px !important; }
#mk-enquiry-popup .fluentform .ff-el-input--label label { line-height: 1.5 !important; }
#mk-enquiry-popup .fluentform .ff_submit_btn_wrapper { margin-top: 0 !important; }
#mk-enquiry-popup .fluentform .ff-btn-submit { width: 100% !important; padding: 15px 20px !important; }

/* ── Private trip form on trip pages: soft filled fields, two columns ── */
.mk-private__form .fluentform fieldset {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}
.mk-private__form .fluentform fieldset > * { grid-column: 1 / -1; }
.mk-private__form .fluentform fieldset > .ff-el-group:not(.ff-custom_html) { grid-column: auto; }
.mk-private__form .fluentform fieldset > .ff-el-group:has(textarea),
.mk-private__form .fluentform fieldset > .ff_submit_btn_wrapper,
.mk-private__form .fluentform fieldset > input[type="hidden"],
.mk-private__form .fluentform fieldset > .ff-el-group.ff_hidden { grid-column: 1 / -1 !important; }
.mk-private__form .fluentform .ff-el-group { margin-bottom: 0 !important; }
.mk-private__form .fluentform .ff-el-input--label { margin-bottom: 8px !important; }
.mk-private__form .fluentform .ff-el-input--label label { font-size: 1.05rem !important; line-height: 1.5 !important; }
.mk-private__form .fluentform .ff-el-is-required.asterisk-right label::after { color: var(--mk-rust, #a73900) !important; }
.mk-private__form .fluentform .ff-el-form-control {
    background-color: #f8f6f2 !important;
    border: 1px solid transparent !important;
    border-bottom: 1px solid #cfc6ba !important;
    padding: 13px 14px !important;
    height: auto !important;
    color: var(--mk-navy, #003a59) !important;
    transition: background-color .15s, border-color .15s;
}
.mk-private__form .fluentform .ff-el-form-control:focus { background-color: #fff !important; border-color: var(--mk-navy, #003a59) !important; }
.mk-private__form .fluentform textarea.ff-el-form-control { min-height: 110px !important; height: 253px !important; }
.mk-private__form .fluentform .mk-step .ff-el-form-control {
    width: 54px !important;
    text-align: center;
    border: 0 !important;
    background: transparent !important;
    padding: 13px 0 !important;
    font-family: "MuseoSans 700", sans-serif !important;
    -moz-appearance: textfield;
}
.mk-private__form .fluentform .ff_submit_btn_wrapper {
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px !important;
}
.mk-private__form .fluentform .ff-btn-submit { margin: 0 !important; font-size: 1.25rem !important; letter-spacing: 1px !important; padding: 15px 34px !important; line-height: 1.2 !important; }
@media (max-width: 600px) {
    .mk-private__form .fluentform fieldset { grid-template-columns: 1fr; }
}

/* ── Newsletter in the footer: email and button on one line ── */
#footer .subscribe-form .fluentform fieldset {
    display: grid !important;
    grid-template-columns: 189px 148px;
    align-items: stretch;
}
#footer .subscribe-form .fluentform fieldset > * { grid-column: 1 / -1; }
#footer .subscribe-form .fluentform fieldset > .ff-el-group:not(.ff-custom_html) { grid-column: 1; }
#footer .subscribe-form .fluentform fieldset > .ff_submit_btn_wrapper { grid-column: 2 !important; }
#footer .subscribe-form .fluentform .ff-custom_html { margin-bottom: 10px !important; }
#footer .subscribe-form .fluentform .ff-custom_html .gform_description { color: #c9ccce; margin: 0; }
#footer .subscribe-form .fluentform .ff-el-group:not(.ff-custom_html) { margin: 0 !important; }
#footer .subscribe-form .fluentform .ff-el-input--label { display: none !important; }
#footer .subscribe-form .fluentform .ff-el-form-control {
    font-size: 1.4rem !important;
    color: #484848 !important;
    border: 0 !important;
    padding: 0 0 0 20px !important;
    height: 45px !important;
    line-height: 45px !important;
}
#footer .subscribe-form .fluentform .ff_submit_btn_wrapper { margin: 0 !important; }
#footer .subscribe-form .fluentform .ff-btn-submit {
    font-family: "Liberator Medium", sans-serif !important;
    font-size: 1.6rem !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    height: 45px !important;
    width: 148px;
    padding: 0 6px !important;
}
#footer .subscribe-form .ff-message-success { font-size: 1.4rem !important; padding: 12px 16px !important; }
