/* =========================================
   Mivtach Simone - Landing Page Design System
   =========================================
   Colors:
   --mv-cyan:  #6DD3DF  (hero background)
   --mv-blue:  #4353D5  (stats bar, buttons, checkmarks)
   --mv-navy:  #1B2060  (form card, CTA section, text)
   --mv-white: #FFFFFF
   ========================================= */

/* =========================================
   Reset & Base
   ========================================= */



.Mivtach-form .body, .newsletter-form .body {
    padding-left: 0;
}

.mivtach-page {
    font-family: 'RagSansRegular', 'Rubik', 'Heebo', Arial, sans-serif;
    color: #1B2060;
    direction: rtl;
    text-align: right;
}

    .mivtach-page *,
    .mivtach-page *::before,
    .mivtach-page *::after {
        box-sizing: border-box;
    }

.mivtach-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =========================================
   Hero Section
   ========================================= */
.mv-hero {
    background-color: #81EFFF;
    min-height: 701px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

/* Couple PNG — absolutely positioned in center-left of hero (per Figma) */
.mv-hero__couple {
    position: absolute;
    /* Figma: image starts at ~453px from left edge of 1920px section */
    left: 25rem;
    bottom: 0;
    height: 90%;
    width: 55%; /* 1034px / 1920px */
    background-size: auto 100%;
    background-position: left top;
    background-repeat: no-repeat;
    transform: scaleX(-1); /* Figma: matrix(-1,0,0,1,0,0) = horizontal flip */
    pointer-events: none;
    z-index: 1001;
}

.mv-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* RTL: flex-start = RIGHT */
    width: 100%;
    padding: 52px 156px 0px 0px;
    min-height: 701px;
    position: relative;
    z-index: 1;
}

/* Text — right side (RTL) */
.mv-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; /* RTL column: flex-start = RIGHT aligned */
    text-align: right;
    gap: 4px;
    padding-top: 70px; /* 52px (inner) + 82px (logo height) + 56px (gap) = 190px total */
    max-width: 700px;
}

.mv-hero__title {
    font-family: 'RagSansBold', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #221657;
    margin: 0;
    line-height: 49px;
    max-width: 680px;
    width: 70%;
}

.mv-hero__body {
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #221657;
    line-height: 36px;
    margin: 0;
    max-width: 400px;
    width: 50%;
}

    .mv-hero__body p {
        margin: 0 0 8px 0;
    }

        .mv-hero__body p:last-child {
            margin-bottom: 0;
        }

/* =========================================
   Form Fields (shared - hero card + CTA)
   ========================================= */
.mv-form__field {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid #FFFFFF;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1B2060;
    margin-bottom: 12px;
    text-align: right;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s;
    display: block;
}

    .mv-form__field:focus {
        border-color: #4353D5;
    }

    .mv-form__field::placeholder {
        color: #9099b5;
    }

    .mv-form__field.mv-dark {
        background: transparent;
        border-color: rgba(255,255,255,0.4);
        color: #FFFFFF;
    }

        .mv-form__field.mv-dark::placeholder {
            color: rgba(255,255,255,0.6);
        }

.mv-form__note {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 10px 0 0 0;
    text-align: center;
}

/* =========================================
   Buttons
   ========================================= */
.mv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4353D5;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    width: 100%;
    direction: rtl;
}

    .mv-btn:hover {
        background-color: #3341b8;
        color: #FFFFFF;
    }

    .mv-btn:active {
        transform: scale(0.98);
    }

.mv-btn__arrow {
    font-size: 18px;
    line-height: 1;
}

/* =========================================
   Features Section
   ========================================= */
.mv-features {
    background-color: #FFFFFF;
    padding: 64px 80px 80px;
}

.mv-features__inner {
    max-width: 1760px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    justify-content: center;
    align-items: flex-start;
}

.mv-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 200px;
    max-width: 300px;
    gap: 16px;
}

.mv-feature-item__icon {
    width: 40px;
    height: 40px;
    background-color: #4959FB;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .mv-feature-item__icon svg {
        width: 34px;
        height: 25px;
        fill: none;
        stroke: #FFFFFF;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.mv-feature-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mv-feature-item__title {
    font-family: 'RagSansBold', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #221657;
    margin: 0;
    line-height: 32px;
    text-align: center;
}

.mv-feature-item__desc {
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #221657;
    line-height: 24px;
    margin: 0;
    text-align: center;
}

/* =========================================
   Stats Bar
   ========================================= */
.mv-stats {
    background: #4959FB;
    padding: 64px 0 80px;
}

.mv-stats__inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 84px;
}

.mv-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #FFFFFF;
}

.mv-stat-item__number {
    font-family: 'RagSansBold', Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    display: block;
    margin: 0;
}

.mv-stat-item__label {
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: #FFFFFF;
    display: block;
    line-height: 36px;
}

/* =========================================
   About / Content+Image Section
   ========================================= */
.mv-about {
    background-color: #FFFFFF;
    padding: 64px 156px 80px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

    /* Decorative corner shapes */


    .mv-about::before {
        border-radius: 0 200px 0 0;
        bottom: 0;
        left: 0;
    }


.Mivtach-form.hp-form:after {
    background: url();
}

.mv-about::after {
    border-radius: 200px 0 0 0;
    bottom: 50px;
    left: 152px;
}

.mv-about__inner {
    max-width: 1608px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 89px;
    position: relative;
    z-index: 1;
}

.mv-about__text {
    flex: 1;
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.mv-about__title {
    font-family: 'RagSansBold', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #221657;
    margin: 0;
    line-height: 1;
}

.mv-about__body {
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #221657;
    line-height: 1.2;
    margin: 0;
    text-align: right;
}

.mv-about__image {
    flex: 0 0 43%;
    aspect-ratio: 693 / 368;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
}

    .mv-about__image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* =========================================
   CTA Form Section (bottom)
   Uses existing CMS form structure — styled via context selectors
   ========================================= */
.mv-cta {
    background: #1B2060;
    padding: 52px 60px;
    color: #FFFFFF;
}

    /* Reset default form chrome */
    .mv-cta fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }

    .mv-cta .admin-block,
    .mv-cta .admin-holder,
    .mv-cta .form-content,
    .mv-cta .panel-form {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* Center the whole block */
    .mv-cta .admin-block {
        max-width: 1280px;
        margin: 0 auto !important;
        text-align: center;
    }

    /* Title */
    .mv-cta .form-legend,
    .mv-cta .form-legend h2 {
        font-size: 22px;
        font-weight: 700;
        color: #FFFFFF;
        margin: 0 0 28px 0;
        line-height: 1.4;
        text-align: center;
        border: none;
        padding: 0;
    }

    /* Subtitle / desk */
    .mv-cta .desk,
    .mv-cta .desk * {
        color: rgba(255,255,255,0.8);
        font-size: 15px;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Fields row — flex horizontal */
    .mv-cta .form,
    .mv-cta .nd-field-containers,
    .mv-cta table,
    .mv-cta tbody,
    .mv-cta tr {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        border: none;
    }

    .mv-cta td,
    .mv-cta .nd-field-container,
    .mv-cta .field-container {
        display: block !important;
        flex: 1 1 200px;
        max-width: 220px;
        padding: 0 !important;
        border: none;
        vertical-align: unset;
    }

    /* Field inputs */
    .mv-cta input[type="text"],
    .mv-cta input[type="tel"],
    .mv-cta input[type="email"],
    .mv-cta select {
        width: 100%;
        background-color: rgba(255,255,255,0.12);
        border: 1.5px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        padding: 12px 14px;
        font-size: 15px;
        color: #FFFFFF;
        text-align: right;
        direction: rtl;
        outline: none;
        transition: border-color 0.2s;
        font-family: inherit;
        margin: 0;
    }

        .mv-cta input[type="text"]::placeholder,
        .mv-cta input[type="tel"]::placeholder,
        .mv-cta input[type="email"]::placeholder {
            color: rgba(255,255,255,0.6);
        }

        .mv-cta input[type="text"]:focus,
        .mv-cta input[type="tel"]:focus,
        .mv-cta input[type="email"]:focus {
            border-color: #6DD3DF;
        }

    /* Validation error labels under fields */
    .mv-cta .field-validation-error,
    .mv-cta .nd-validation-message {
        color: #ff8080;
        font-size: 12px;
    }

    /* Submit button row */
    .mv-cta .form-btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }

    .mv-cta .mv-btn {
        width: auto;
        padding: 14px 40px;
        min-width: 240px;
    }

    /* Global error */
    .mv-cta .form-global-error {
        color: #ff8080;
        font-size: 13px;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Success panel */
    .mv-cta #SuccessPanel .content,
    .mv-cta #SuccessPanel {
        text-align: center;
        color: #FFFFFF;
        padding: 20px;
    }

        .mv-cta #SuccessPanel h2 {
            font-size: 22px;
            font-weight: 700;
            color: #FFFFFF;
        }

    /* Hide links/repeater zone in CTA */
    .mv-cta .item_link_zone {
        display: none;
    }

/* =========================================
   Custom Footer
   ========================================= */
.mv-footer {
    background-color: #1A2865;
    padding: 24px 100px 32px;
    margin-top: auto;
}

.mv-footer__inner {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* LEFT side: © מבטח סימון */
.mv-footer__copy {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    direction: rtl;
    line-height: 24px;
}

/* RIGHT side: links */
.mv-footer__links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    direction: rtl;
    gap: 24px;
}

    .mv-footer__links a {
        color: #FFFFFF;
        text-decoration: none;
        font-size: 18px;
        font-weight: 400;
        line-height: 30px;
        white-space: nowrap;
        transition: color 0.2s;
    }

        .mv-footer__links a + a {
            padding-right: 24px;
            border-right: 1px solid #FFCDE6;
        }

        .mv-footer__links a:hover {
            opacity: 0.8;
        }

/* =========================================
   Mobile FAB (Floating Action Button)
   ========================================= */
.mv-fab {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
    background-color: #1B2060;
    display: none;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    padding: 10px 20px;
    gap: 12px;
}

/* LEFT: + icon */
.mv-fab__icon {
    width: 40px;
    height: 40px;
    background-color: #4353D5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1;
    flex-shrink: 0;
}

/* RIGHT: text */
.mv-fab__text {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    direction: rtl;
}

/* =========================================
   Responsive - Large Desktop scale-down (max-width: 1600px)
   Figma designed at 1920px — scale ~83%
   ========================================= */
@media (max-width: 1600px) {
    .mv-hero {
        min-height: 580px;
    }

    .mv-hero__couple {
        left: 16rem;
        height: 87%;
        width: 60%;
    }


    .mv-hero__inner {
        padding: 40px 100px 0px 0px;
        min-height: 580px;
    }

    .mv-hero__content {
        padding-top: 70px;
    }

    .mv-hero__title {
        font-size: 40px;
        line-height: 42px;
    }

    .mv-hero__body {
        font-size: 24px;
        line-height: 30px;
    }

    .mv-about {
        padding: 52px 80px 64px;
    }

    .mv-about__inner {
        gap: 60px;
    }

    .mv-about__title {
        font-size: 38px;
    }

    .mv-about__body {
        font-size: 17px;
    }

    .mv-stats {
        padding: 52px 0 64px;
        gap: 60px;
    }

    .mv-stats__inner {
        gap: 60px;
    }

    .mv-stat-item__number {
        font-size: 64px;
        line-height: 1.1;
    }

    .mv-stat-item__label {
        font-size: 24px;
        line-height: 1.2;
    }

    .mv-features {
        padding: 52px 60px 64px;
    }

    .mv-features__inner {
        gap: 0 40px;
    }

    .mv-feature-item__title {
        font-size: 20px;
    }

    .mv-feature-item__desc {
        font-size: 17px;
    }

    .mv-footer {
        padding: 20px 80px 28px;
    }
}

/* =========================================
   Responsive - 1440px scale-down (max-width: 1440px)
   1440/1920 = 75% scale
   ========================================= */
@media (max-width: 1440px) {






    .mv-hero {
        min-height: 520px;
    }

    .mv-hero__inner {
        padding: 32px 80px 0px 0px;
        min-height: 520px;
    }
    /*   .mv-hero__content {
        padding-top: 32px;
    }*/
    .mv-hero__title {
        font-size: 34px;
        line-height: 36px;
        width: 50%;
    }

    .mv-hero__body {
        font-size: 20px;
        line-height: 26px;
        width: 30%;
    }

    .mv-about {
        padding: 48px 60px 60px;
    }

    .mv-about__inner {
        gap: 48px;
    }

    .mv-about__title {
        font-size: 32px;
        line-height: 1.1;
    }

    .mv-about__body {
        font-size: 15px;
        line-height: 1.5;
    }

    .mv-about__image {
        width: 40%;
    }

    .mv-stats {
        padding: 48px 0 60px;
    }

    .mv-stats__inner {
        gap: 48px;
    }

    .mv-stat-item__number {
        font-size: 52px;
        line-height: 1.1;
    }

    .mv-stat-item__label {
        font-size: 20px;
        line-height: 1.2;
    }

    .mv-features {
        padding: 48px 40px 60px;
    }

    .mv-features__inner {
        gap: 0 32px;
    }

    .mv-feature-item__title {
        font-size: 18px;
    }

    .mv-feature-item__desc {
        font-size: 15px;
    }

    .mv-footer {
        padding: 18px 60px 24px;
    }

    .mv-footer__copy,
    .mv-footer__links a {
        font-size: 15px;
    }
}

/* =========================================
   Responsive - Tablet (max-width: 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .mv-hero__couple {
        left: 10rem;
        height: 60%;
        width: 65%;
    }


    .mv-hero__inner {
        padding: 36px 24px;
        gap: 28px;
    }

    .mv-hero__title {
        font-size: 32px;
    }

    .mv-about {
        padding: 48px 40px 60px;
    }

    .mv-about__inner {
        gap: 40px;
    }

    .mv-about__title {
        font-size: 36px;
    }

    .mv-about__body {
        font-size: 17px;
    }

    .mv-about__image {
        width: 340px;
        max-width: 42%;
    }

    .mv-stat-item__number {
        font-size: 52px;
    }

    .mv-stat-item__label {
        font-size: 22px;
    }
}

/* =========================================
   Responsive - Mobile (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {


    mv-hero__couple {
        display: none;
    }

    /* Hero */
    .mv-hero {
        min-height: 380px;
    }

    .mv-hero {
        min-height: 300px;
    }

    .mv-hero__inner {
        padding: 32px 20px;
        min-height: 300px;
        justify-content: center;
    }

    .mv-hero__content {
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .mv-hero__title {
        font-size: 30px;
        text-align: start;
        width: 80%;
    }

    .mv-hero__body {
        font-size: 20px;
        line-height: 26px;
        width: 80%;
        max-width: none;
    }

    .mv-hero__subtitle {
        font-size: 14px;
        text-align: center;
    }

    /* Features — Figma Frame 102131 */
    .mv-features {
        padding: 24px;
        padding-bottom: 0;
    }

    .mv-features__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 45px;
    }

    .mv-feature-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: right;
        max-width: 100%;
        gap: 12px;
        flex: 0 0 auto;
    }

    .mv-feature-item__icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

        .mv-feature-item__icon svg {
            width: 22px;
            height: 25px;
            stroke-width: 2.5;
        }

    .mv-feature-item__text {
        flex: 1;
        text-align: right;
        gap: 2px;
    }

    .mv-feature-item__title {
        font-size: 18px;
        line-height: 18px;
        text-align: right;
    }

    .mv-feature-item__desc {
        font-size: 16px;
        line-height: 18px;
        text-align: right;
    }

    /* Stats — Figma Frame 102241: row-1=3 items, row-2=2 items */
    .mv-stats {
        padding: 32px 0;
    }

    .mv-stats__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px 16px;
        padding: 0 24px;
    }

    .mv-stat-item {
        flex: 0 0 calc(33.33% - 11px);
    }

        .mv-stat-item:first-child {
            grid-column: unset;
            flex: 0 0 calc(33.33% - 11px);
        }

        .mv-stat-item:nth-child(n+4) {
            flex: 0 0 calc(50% - 8px);
        }

    .mv-stat-item__number {
        font-size: 32px;
        line-height: 32px;
    }

    .mv-stat-item__label {
        font-size: 16px;
        line-height: 16px;
    }

    /* About */
    .mv-about {
        padding: 36px 16px;
    }

    .mv-about__inner {
        flex-direction: column-reverse;
        gap: 24px;
    }

    .mv-about__image {
        width: 90%;
        max-width: 100%;
        aspect-ratio: 693 / 268;
    }





    .mv-about__title {
        font-size: 24px;
    }

    /* CTA */
    .mv-cta {
        padding: 36px 16px;
    }

    .mv-cta__form {
        flex-direction: column;
    }

        .mv-cta__form .mv-form__field {
            max-width: 100%;
            width: 100%;
            margin-bottom: 0;
        }

        .mv-cta__form .mv-btn {
            width: 100%;
        }

    /* Footer */
    .mv-footer {
        padding: 16px 16px 72px; /* bottom padding = FAB height */
    }

    .mv-footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mv-footer__copy {
        font-size: 14px;
        order: 2;
    }

    .mv-footer__links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        order: 1;
    }

        .mv-footer__links a + a {
            padding-right: 12px;
        }

        .mv-footer__links a {
            font-size: 14px;
        }

    /* FAB */
    .mv-fab {
        display: flex;
    }
}

/* =========================================
   Mivtach-form — Hero Form Card
   ========================================= */

.Mivtach-form.hp-form:before {
    display: none;
    background: none;
}

/* Card */
.Mivtach-form.hp-form {
    position: absolute;
    left: 1rem;
    top: 8.8rem;
    z-index: 1000;
    width: 30rem;
    background: #001054;
    border-radius: 15px;
    padding: 48px 64px 64px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    height: 35rem;
}


.Mivtach-form.mid.hp-form, .Mivtach-form.footer.hp-form {
    position: relative;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    border-radius: 0;
    z-index: auto;
}


.Mivtach-form.mid .form, .Mivtach-form .form > table, .Mivtach-form.mid .form > table > tbody,
.Mivtach-form.footer .form, .Mivtach-form.footer .form > table, .Mivtach-form.footer .form > table > tbody {
    flex-direction: row;
    display: flex;
    gap: 1rem;
}

.Mivtach-form.mid.hp-form input[type="text"],
.Mivtach-form.mid.hp-form input[type="tel"],
.Mivtach-form.mid.hp-form input[type="email"],
.Mivtach-form.mid.hp-form select,
.Mivtach-form.footer.hp-form input[type="text"],
.Mivtach-form.footer.hp-form input[type="tel"],
.Mivtach-form.footer.hp-form input[type="email"],
.Mivtach-form.footer.hp-form select {
    width: auto;
}


.Mivtach-form.mid .form-content,
.Mivtach-form.mid .side-form .form-content{
    display: flex;
}

.Mivtach-form.footer .form-content,
.Mivtach-form.footer .side-form .form-content{
    display:flex;
    flex-direction:column;
}



.Mivtach-form.footer.hp-form .form-btn input[type="submit"], .Mivtach-form.footer input[type="submit"] {
    width: 295px;
    height: 52px ;
}


.Mivtach-form.mid.hp-form .form_full_width,
.Mivtach-form.footer.hp-form .form_full_width {
    max-width: unset;
}

.Mivtach-form.mid.hp-form .form-btn {
    margin-top: unset;
}

.Mivtach-form.mid.hp-form .form-btn,
.Mivtach-form.footer.hp-form .form-btn {
    margin-top: 1rem;
}




    .Mivtach-form.mid.hp-form .form-btn input[type="submit"], .Mivtach-form.mid input[type="submit"]{
        width: 244px;
        height: auto;
        font-size: 26px;
    }


.Mivtach-form.mid .form > table > tbody > tr,
.Mivtach-form.footer .form > table > tbody > tr {
    display: -webkit-inline-box;
}

/* Title */
.Mivtach-form.hp-form h2 {
    font-family: 'RagSansBold', Arial, sans-serif;
    font-size: 35px;
    line-height: 42px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Fields wrapper */
.Mivtach-form .form,
.Mivtach-form .form > table,
.Mivtach-form .form > table > tbody {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

    /* Each row */
    .Mivtach-form .form > table > tbody > tr {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        border: none;
        padding: 0;
        position: relative;
    }


/* Hide label cells — actual class is pio-form-field-title */
.Mivtach-form .pio-form-cell.pio-form-field-title {
    display: none;
}

/* Hide separator rows */
.Mivtach-form .pio-form-row.pio-form-row-separator {
    display: none;
}

/* Hide error cells */
.Mivtach-form .pio-form-cell.pio-form-error {
    position: absolute;
    top: 3.5rem;
}

.Mivtach-form.mid .pio-form-cell.pio-form-error {
    top: 3.7rem;
    padding-right: 0.6rem;
}
.Mivtach-form.footer .pio-form-cell.pio-form-error {
    top: 3.5rem;
    padding-right: 0.6rem;
}



.Mivtach-form.mid .form > table > tbody > tr:first-child > td:last-child, .Mivtach-form.footer .form > table > tbody > tr:first-child > td:last-child {
     padding-right: 0.6rem; 
}

.Mivtach-form div.pio-form-error {
    padding: 0.1em 0.9em;
    position:unset;
}

.Mivtach-form .form > table > tbody > tr:first-child > td:last-child {
    padding-right: 0;
}
.Mivtach-form .form > table > tbody > tr:first-child > td {
    width: 100%;
}

.Mivtach-form .form > table > tbody > tr:first-child >td:last-child div.pio-form-error

{
        margin-left: 1.5em; 
        margin-right: 0;
}



/* Override CMS rule that limits first row td to 50% — scoped to Mivtach only */
.Mivtach-form.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field {
    width: 100% !important;
    display: block !important;
}
/*
.Mivtach-form.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field-title,
.Mivtach-form.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-error {
    display: none !important;
}

*/




/* Input fields */
.Mivtach-form.hp-form input[type="text"],
.Mivtach-form.hp-form input[type="tel"],
.Mivtach-form.hp-form input[type="email"],
.Mivtach-form.hp-form select {
    width: 100%;
    height: 45px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 18px;
    line-height: 36px;
    color: #221657;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
    outline: none;
}

/* Submit button */
.Mivtach-form.hp-form .form-btn {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
}

    .Mivtach-form.hp-form .form-btn input[type="submit"],
    .Mivtach-form input[type="submit"] {
        width: 295px;
        height: 52px;
        background: #4959FB;
        border: none;
        border-radius: 100px;
        font-family: 'RagSansBold', Arial, sans-serif;
        font-size: 32px;
        font-weight: 500;
        color: #FFFFFF;
        cursor: pointer;
        padding: 0;
    }

        .Mivtach-form input[type="submit"]:hover {
            background: #3747e0;
        }

/* desk = "required fields" note — hide it */
/*.Mivtach-form .desk {
    display: none;
}*/

.Mivtach-form.hp-form .pio-form-cell.pio-form-field {
    padding-bottom: 0;
}

/* Close button hidden on desktop — only shown inside @media mobile block */
.mv-form__close {
    display: none;
}

.Mivtach-form.hp-form [class*="mandatory_text"]:before,
.Mivtach-form.hp-form [class*="pio-form-mandatory"]:before {
    right: 0.5rem;
    font-size: 12px;
    color: red;
    top: 1em;
}

/* =========================================
   Mivtach-form-mid & Mivtach-form-footer
   — Same design as hero form, no positioning
   ========================================= */

.Mivtach-form-mid.hp-form:before,
.Mivtach-form-footer.hp-form:before {
    display: none;
    background: none;
}

/* Card — no position/left/top/z-index/width/height */
.Mivtach-form-mid.hp-form,
.Mivtach-form-footer.hp-form {
    background: #001054;
    border-radius: 15px;
    padding: 48px 64px 64px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

    /* Title */
    .Mivtach-form-mid.hp-form h2,
    .Mivtach-form-footer.hp-form h2 {
        font-family: 'RagSansBold', Arial, sans-serif;
        font-size: 35px;
        line-height: 42px;
        font-weight: 700;
        color: #FFFFFF;
        text-align: center;
        margin: 0;
        padding: 0;
    }

/* Fields wrapper */
.Mivtach-form-mid .form,
.Mivtach-form-mid .form > table,
.Mivtach-form-mid .form > table > tbody,
.Mivtach-form-footer .form,
.Mivtach-form-footer .form > table,
.Mivtach-form-footer .form > table > tbody {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

    /* Each row */
    .Mivtach-form-mid .form > table > tbody > tr,
    .Mivtach-form-footer .form > table > tbody > tr {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        border: none;
        padding: 0;
        position: relative;
    }

/* Hide label, separator, error */
.Mivtach-form-mid .pio-form-cell.pio-form-field-title,
.Mivtach-form-mid .pio-form-row.pio-form-row-separator,
.Mivtach-form-mid .pio-form-cell.pio-form-error,
.Mivtach-form-footer .pio-form-cell.pio-form-field-title,
.Mivtach-form-footer .pio-form-row.pio-form-row-separator,
.Mivtach-form-footer .pio-form-cell.pio-form-error {
    display: none;
}

/* Override CMS first-row td width */
.Mivtach-form-mid.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field,
.Mivtach-form-footer.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field {
    width: 100% !important;
    display: block !important;
}

.Mivtach-form-mid.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field-title,
.Mivtach-form-mid.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-error,
.Mivtach-form-footer.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-field-title,
.Mivtach-form-footer.main-form .form > table > tbody > tr:first-child > td.pio-form-cell.pio-form-error {
    display: none !important;
}

/* Input cell */
.Mivtach-form-mid.hp-form .pio-form-cell.pio-form-field,
.Mivtach-form-footer.hp-form .pio-form-cell.pio-form-field {
    padding-bottom: 0;
}

/* Input fields */
.Mivtach-form-mid.hp-form input[type="text"],
.Mivtach-form-mid.hp-form input[type="tel"],
.Mivtach-form-mid.hp-form input[type="email"],
.Mivtach-form-mid.hp-form select,
.Mivtach-form-footer.hp-form input[type="text"],
.Mivtach-form-footer.hp-form input[type="tel"],
.Mivtach-form-footer.hp-form input[type="email"],
.Mivtach-form-footer.hp-form select {
    width: 100%;
    height: 45px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-family: 'RagSansRegular', Arial, sans-serif;
    font-size: 18px;
    line-height: 36px;
    color: #221657;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
    outline: none;
}

/* Submit button */
.Mivtach-form-mid.hp-form .form-btn,
.Mivtach-form-footer.hp-form .form-btn {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

    .Mivtach-form-mid.hp-form .form-btn input[type="submit"],
    .Mivtach-form-mid input[type="submit"],
    .Mivtach-form-footer.hp-form .form-btn input[type="submit"],
    .Mivtach-form-footer input[type="submit"] {
        width: 295px;
        height: 52px;
        background: #4959FB;
        border: none;
        border-radius: 100px;
        font-family: 'RagSansBold', Arial, sans-serif;
        font-size: 32px;
        font-weight: 500;
        color: #FFFFFF;
        cursor: pointer;
        padding: 0;
    }

        .Mivtach-form-mid input[type="submit"]:hover,
        .Mivtach-form-footer input[type="submit"]:hover {
            background: #3747e0;
        }

/* =========================================
   Mivtach-form Responsive
   ========================================= */

/* 1600px — hero: 580px */
@media (max-width: 1600px) {
    .Mivtach-form.hp-form {
        left: 2rem;
        top: 0.3rem;
        height: 36rem;
        width: 420px;
    }

        .Mivtach-form.hp-form h2 {
            font-size: 36px;
            line-height: 36px;
        }

        .Mivtach-form.hp-form input[type="text"],
        .Mivtach-form.hp-form input[type="tel"],
        .Mivtach-form.hp-form input[type="email"],
        .Mivtach-form.hp-form select {
            height: 46px;
            font-size: 16px;
        }

    .Mivtach-form .form > table > tbody > tr {
    }

    .Mivtach-form.hp-form .form-btn input[type="submit"],
    .Mivtach-form input[type="submit"] {
        width: 244px;
        height: 44px;
        font-size: 26px;
    }
}

/* 1440px — hero: 520px */
@media (max-width: 1440px) {
    .Mivtach-form.mid.hp-form input[type="text"],
    .Mivtach-form.mid.hp-form input[type="tel"],
    .Mivtach-form.mid.hp-form input[type="email"],
    .Mivtach-form.mid.hp-form select,
    .Mivtach-form.footer.hp-form input[type="text"],
    .Mivtach-form.footer.hp-form input[type="tel"],
    .Mivtach-form.footer.hp-form input[type="email"],
    .Mivtach-form.footer.hp-form select {
        width: 10rem;
    }

    .Mivtach-form.mid.hp-form .form-btn input[type="submit"], .Mivtach-form.mid input[type="submit"] {
        width: 200px;
    }


    .Mivtach-form.hp-form {
        left: 1rem;
        top: 0rem;
        height: 32.5rem;
        width: 330px;
    }


        .Mivtach-form.hp-form h2 {
            font-size: 30px;
            line-height: 30px;
        }

        .Mivtach-form.hp-form input[type="text"],
        .Mivtach-form.hp-form input[type="tel"],
        .Mivtach-form.hp-form input[type="email"],
        .Mivtach-form.hp-form select {
            height: 42px;
            font-size: 14px;
        }

    .Mivtach-form .form > table > tbody > tr {
    }

    /*   .Mivtach-form.hp-form .form-btn input[type="submit"],
        .Mivtach-form input[type="submit"] {
            width: 210px;
            height: 40px;
            font-size: 22px;
        }*/
}

/* 1024px — tablet */
@media (max-width: 1024px) {
    .Mivtach-form.mid.hp-form input[type="text"],
    .Mivtach-form.mid.hp-form input[type="tel"],
    .Mivtach-form.mid.hp-form input[type="email"],
    .Mivtach-form.mid.hp-form select,
    .Mivtach-form.footer.hp-form input[type="text"],
    .Mivtach-form.footer.hp-form input[type="tel"],
    .Mivtach-form.footer.hp-form input[type="email"],
    .Mivtach-form.footer.hp-form select {
        width: 8rem;
    }

    .Mivtach-form.mid.hp-form .form-btn input[type="submit"], .Mivtach-form.mid input[type="submit"] {
        width: 150px;
    }






    .Mivtach-form.hp-form {
        left: 0.5rem;
        top: 2.5rem;
        height: 30rem;
        width: 250px;
    }


        .Mivtach-form.hp-form h2 {
            font-size: 24px;
            line-height: 26px;
        }

        .Mivtach-form.hp-form input[type="text"],
        .Mivtach-form.hp-form input[type="tel"],
        .Mivtach-form.hp-form input[type="email"],
        .Mivtach-form.hp-form select {
            height: 38px;
            font-size: 13px;
        }

    .Mivtach-form .form > table > tbody > tr {
    }

    .Mivtach-form.hp-form .form-btn input[type="submit"],
    .Mivtach-form input[type="submit"] {
        width: 180px;
        height: 38px;
        font-size: 18px;
    }
}

/* 768px — mobile: hide desktop card, show FAB per Figma Frame 102130 */
@media (max-width: 768px) {

    .Mivtach-form .pio-form-cell.pio-form-error {
        top: 4rem;
    }


    .Mivtach-form .form > table > tbody > tr:first-child > td {
        display: revert;
    }




    .mv-hero__couple {
        display: none;
    }

    /* Form becomes a fixed bottom sheet, initially off-screen */
    .Mivtach-form.hp-form {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        bottom: 0;
        transform: translateY(100%);
        transition: transform 0.35s ease;
        border-radius: 5px;
        z-index: 9999;
        padding: 28px 24px 40px;
        gap: 24px;
        max-height: 92vh;
        overflow-y: auto;
    }





    .Mivtach-form.mid.hp-form,
    .Mivtach-form.footer.hp-form {
        display: none;
    }

        .Mivtach-form.hp-form .form-btn {
            margin-top: 0;
        }


    .Mivtach-form .admin-block {
        margin-top: 1rem;
    }
    /* Open state */
    .Mivtach-form.hp-form.mv-mobile-open {
        transform: translateY(0);
    }

    /* Close (X) button injected by JS */
    .mv-form__close {
        position: absolute;
        left: 20px;
        top: 20px;
        width: 27px;
        height: 27px;
        background: none;
        border: none;
        color: #FFFFFF;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 1;
    }

    /* Form title on mobile */
    .Mivtach-form.hp-form h2 {
        font-size: 24px;
        line-height: 24px;
        text-align: right;
        width: 100%;
    }

    /* Input fields on mobile */
    .Mivtach-form.hp-form input[type="text"],
    .Mivtach-form.hp-form input[type="tel"],
    .Mivtach-form.hp-form input[type="email"],
    .Mivtach-form.hp-form select {
        height: 48px;
        font-size: 16px;
    }

    .Mivtach-form .form > table > tbody > tr {
        margin-bottom: 16px;
    }

    /* Submit button on mobile */
    .Mivtach-form.hp-form .form-btn input[type="submit"],
    .Mivtach-form input[type="submit"] {
        width: 210px;
        height: 48px;
        font-size: 20px;
    }

    /* FAB bar — fixed at bottom, visible when form is closed */
    .mv-fab {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #001054;
        border-radius: 24px 24px 0 0;
        height: 67px;
        padding: 0 24px;
        justify-content: space-between;
        z-index: 9998;
        cursor: pointer;
    }

        .mv-fab.mv-fab--hidden {
            display: none;
        }

    .mv-fab__text {
        font-size: 24px;
        font-weight: 500;
    }

    /* Overlay behind the form */
    .mv-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9997;
    }

        .mv-overlay.mv-overlay--visible {
            display: block;
        }
}


.Mivtach-form.mid.hp-form [class*="mandatory_text"]:before, .Mivtach-form.mid.hp-form [class*="pio-form-mandatory"]:before{
    right: 0.3rem;
    font-size: 12px;
    color: red;
    top: 1em;
    position: absolute;
}

.Mivtach-form.footer.hp-form [class*="mandatory_text"]:before, .Mivtach-form.footer.hp-form [class*="pio-form-mandatory"]:before {
    right: 1rem;
    font-size: 12px;
    color: red;
    top: 1em;
    position: relative;
}

.Mivtach-form.mid.hp-form div.pio-form-error, .Mivtach-form.footer.hp-form div.pio-form-error {
    min-width: auto;
}

.Mivtach-form.hp-form tr.pio-form-row:not(.phone_code) td.pio-form-cell.pio-form-field-title {
    display: none;
}

@media (min-width: 768px) {
     .hp-form.main-form:not(.Mivtach-form) {
        display: none;
    }
}

.hp-form.main-form:not(.Mivtach-form) {
    border-radius: 0px;
    margin-top: 2rem;
}

@media screen and (max-width: 460px) {
    .mv-hero__content {
        padding-top: 40px;
    }
}

div.pio-form-error:before {
    content: none;
}