/* ==========================================================================
   frm-open-day.css
   Formidable Forms overrides for the Open Day Landing Page.
   Scoped to .frm-show-form so nothing bleeds into other forms.
   Link AFTER style.css and responsive.css.
   ========================================================================== */

/* ==========================================================================
   1. FORM CONTAINER RESET
   ========================================================================== */

.hero-form-container{
    background: #202020;
}
.frm-show-form {
    overflow-x: visible !important; /* override Formidable inline style */
    background: transparent;
    padding: 0;
    margin: 0;
}

.frm-show-form .frm_form_fields,
.frm-show-form fieldset {
    border: none;
    margin: 0;
    padding: 0;
    max-width: 350px;
    margin: 0 auto;
}

.frm-show-form legend.frm_screen_reader {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.frm-show-form .frm_fields_container {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 20px;
    width: 100%;
}

/* ==========================================================================
   2. LABELS — hide all (floating label style, same as custom form)
   ========================================================================== */
.frm-show-form .frm_primary_label {
    display: none;
}

/* ==========================================================================
   3. FIELD CONTAINERS — remove default Formidable spacing
   ========================================================================== */
.frm-show-form .frm_form_field {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0px !important;
}

/* ==========================================================================
   4. TEXT / TEL / EMAIL INPUTS
   ========================================================================== */
.frm-show-form input[type="text"],
.frm-show-form input[type="tel"],
.frm-show-form input[type="email"] {
    width: 100%;
    height: 28px !important;
    background: transparent  !important;
    border: none !important;
    border-bottom: 1px solid #F1F1F1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #FFFFFF;
    font-family: 'Haim Classic v2 FM', sans-serif  !important;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 1;
    padding: 0 5px !important;
    direction: rtl;
    outline: none;
    transition: border-bottom-color 0.25s ease;
    box-sizing: border-box;
    color: #fff !important;
}

.frm-show-form input[type="text"]::placeholder,
.frm-show-form input[type="tel"]::placeholder,
.frm-show-form input[type="email"]::placeholder {
    color: #F1F1F1 !important;
    font-weight: 300 !important;
    font-size: 20px !important;
    opacity: 1 !important;
}

.frm-show-form input[type="text"]:focus,
.frm-show-form input[type="tel"]:focus,
.frm-show-form input[type="email"]:focus {
    border-bottom-color: #EFFFAE !important;
    background: rgba(223, 254, 149, 0.04);
}

/* Animated underline — grows from center on focus */
.frm-show-form .frm_form_field:has(input[type="text"]),
.frm-show-form .frm_form_field:has(input[type="tel"]),
.frm-show-form .frm_form_field:has(input[type="email"]) {
    height: 28px;
    margin-bottom: 20px !important;
}

.frm-show-form .frm_form_field:has(input[type="text"])::after,
.frm-show-form .frm_form_field:has(input[type="tel"])::after,
.frm-show-form .frm_form_field:has(input[type="email"])::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #EFFFAE;
    transition: left 0.25s ease, right 0.25s ease;
    z-index: 3;
}

.frm-show-form .frm_form_field:has(input[type="text"]:focus)::after,
.frm-show-form .frm_form_field:has(input[type="tel"]:focus)::after,
.frm-show-form .frm_form_field:has(input[type="email"]:focus)::after {
    left: 0;
    right: 0;
}

/* ==========================================================================
   5. SELECT / DROPDOWN
   ========================================================================== */
.frm-show-form select {
    width: 100%;
    height: auto;
    background: transparent  !important;
    border: none !important;
    border-bottom: 1px solid #F1F1F1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #FFFFFF !important; /* override Formidable inline rgb(161,161,161) */
    font-family: 'Haim Classic v2 FM', sans-serif;
    font-weight: 400;
    font-size: 20px  !important;
    line-height: 1;
    padding: 0 5px !important;
    direction: rtl;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-bottom-color 0.25s ease;
    box-sizing: border-box;
    color: #F1F1F1 !important;
    font-weight: 300 !important;
    font-size: 20px !important;
    opacity: 1 !important;
    padding-bottom: 5px !important;
}

.frm-show-form select option {
    background-color: #1e2022;
    color: #FFFFFF !important;
    font-size: 16px;
}

.frm-show-form select option.frm-select-placeholder {
    color: #F1F1F1;
}

.frm-show-form select:focus {
    border-bottom-color: #EFFFAE !important;
    background: rgba(223, 254, 149, 0.04);
}

/* ==========================================================================
   6. CHECKBOX (marketing consent)
   ========================================================================== */
.frm-show-form .formidable-checkbox-wrap {
    display: flex;
    flex-direction: row; /* checkbox on left, text on right (RTL) */
    align-items: flex-start;
    gap: 12px;
    margin-top: -10px;
    margin-bottom: 0 !important;
}

.frm-show-form .frm_checkbox label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

/* Hide native checkbox */
.frm-show-form .frm_checkbox input[type="checkbox"] {
    position: absolute !important;
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none;
}

/* Custom checkbox box */
.frm-show-form .frm_checkbox label::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 1px solid #F1F1F1;
    background-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Checked state */
.frm-show-form .frm_checkbox input[type="checkbox"]:checked + label::before,
.frm-show-form .frm_checkbox label:has(input[type="checkbox"]:checked)::before {
    background-color: #EFFFAE;
    border-color: #EFFFAE;
}

/* Checkmark tick */
.frm-show-form .frm_checkbox label::after {
    content: '';
    position: absolute;
    display: none;
    right: 8px;
    top: 8px;
    width: 6px;
    height: 11px;
    border: solid #202020;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.frm-show-form .frm_checkbox label:has(input[type="checkbox"]:checked)::after {
    display: block;
}

/* Checkbox text */
.frm-show-form .frm_checkbox label span,
.frm-show-form .frm_checkbox label {
    font-family: 'Haim Classic v2 FM', sans-serif;
    font-weight: 400  !important;
    font-size: 16px;
    line-height: 1.25;
    color: #F1F1F1  !important;
    direction: rtl;
    text-align: right;
    align-items: center;
    position: relative !important;
}

/* ==========================================================================
   7. SUBMIT BUTTON
   ========================================================================== */
.frm-show-form .frm_submit {
    width: 100%;
    display: flex;
    gap: 12px !important;
}

.frm-show-form button.frm_button_submit {
    margin: 0 !important;
    width: auto !important;
    height: 46px !important;
    background: #EFFFAE !important;
    color: #202020!important;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    font-family: 'Haim Classic v2 FM', sans-serif;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1.27 !important;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px !important;
    position: relative !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    flex: 1 1 0;
    min-width: 0;
}

/* Fill slides up on hover */
.frm-show-form button.frm_button_submit::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: #d4f070; */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.frm-show-form button.frm_button_submit:hover::before {
    transform: translateY(0);
}

.frm-show-form button.frm_button_submit:hover {
    /* box-shadow: 0 4px 20px rgba(223, 254, 149, 0.35); */
}

.frm-show-form button.frm_button_submit:active {
    /* transform: scale(0.97); */
}

.frm-show-form button.frm_button_submit span,
.frm-show-form button.frm_button_submit {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   8. HIDDEN FIELDS — keep truly invisible
   ========================================================================== */
.frm-show-form input[type="hidden"],
.frm-show-form #frm_field_1002_container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-row: auto;
    row-gap: 0;
}

/* ==========================================================================
   9. VALIDATION ERROR STATES (Formidable classes)
   ========================================================================== */
.frm-show-form .frm_error_style,
.frm-show-form .frm_error {
    color: #ff7675;
    font-size: 11px;
    font-weight: 700;
    direction: rtl;
    text-align: right;
    margin-top: 4px;
    display: block;
}

.frm-show-form .frm_form_field.frm_blank_field input,
.frm-show-form .frm_form_field.frm_blank_field select {
    border-bottom-color: #ff7675 !important;
}

/* ==========================================================================
   10. SUCCESS / ERROR MESSAGE
   ========================================================================== */
.frm-show-form .frm_message,
.frm_message[data-form="m3xqz4222222"] {
    background: rgba(223, 254, 149, 0.1);
    border: 1px solid #EFFFAE;
    color: #EFFFAE;
    font-family: 'Haim Classic v2 FM', sans-serif;
    font-size: 16px;
    padding: 12px 16px;
    direction: rtl;
    text-align: right;
    margin-top: 16px;
}

.frm-show-form .frm_error_style {
    background: rgba(255, 118, 117, 0.1);
    border: 1px solid #ff7675;
    color: #ff7675;
    padding: 12px 16px;
    margin-top: 16px;
    direction: rtl;
    text-align: right;
    font-size: 14px;
    font-weight: 400;
}

/* ==========================================================================
   11. RESPONSIVE — mobile overlay context
   ========================================================================== */
@media (max-width: 768px) {
    .frm-show-form input[type="text"],
    .frm-show-form input[type="tel"],
    .frm-show-form input[type="email"],
    .frm-show-form select {
        font-size: 18px;
        height: 32px;
    }

    .frm-show-form input[type="text"]::placeholder,
    .frm-show-form input[type="tel"]::placeholder,
    .frm-show-form input[type="email"]::placeholder {
        font-size: 18px;
    }

    .frm-show-form button.frm_button_submit {
        height: 52px;
        font-size: 18px;
    }
    .frm-show-form button.frm_button_submit span, .frm-show-form button.frm_button_submit {
        height: 52px !important;
    }
    .frm-show-form .frm_form_fields, .frm-show-form fieldset {
        padding-inline: 8px;
    }
}



.frm_forms.frm_style_formidable-style.with_frm_style {
    max-width: 85% !important;
    margin: 0 auto;
}