:root {
    /* משתנים גלובליים */
    --primary-color: #056483;
    --text-color: #333;
    --modal-bg: rgba(0, 0, 0, 0.6);
}

/* סגנונות בסיסיים */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    direction: rtl;
}

/* מיכל ראשי */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* תמונות רקע */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.background-image.desktop {
    display: block;
}

.background-image.mobile {
    display: none;
}

/* מיכל ה-GIF */
.gif-container {
    position: absolute;
    top: 53%;
    right: 47%;
    width: 200px;
    height: 150px;
    z-index: 10;
}

.gif-content {
    width: 113%;
    height: 111%;
    object-fit: cover;
    border-radius: 19px;
}

/* מיכל הכפתורים */
.buttons-container {
    position: absolute;
    right: 24%;
    top: 68%;
    display: flex;
    gap: 10px;
    z-index: 20;
    align-items: center;
}

/* כפתור יצירת קשר */
.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #3fbe6b;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5,100,131,0.2);
}

/* אייקונים */
.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.icon {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* מודל טופס */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(142, 106, 106, 0.7);
}

.modal-content {
    background-color: none;
    margin: 5% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 385px;
    border-radius: 15px;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.2);*/
    text-align: center;
}

/* כותרת הטופס */
.modal-content h2 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* תוויות השדות */
.modal-content label {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: block;
    text-align: right;
    margin-bottom: -14px;
}

/* שדות טקסט */
.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"] {
    width: 85%;
    padding: 9px -22px;
    margin: 0 auto -15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 26px;
    color: #fff;
    transition: all 0.3s ease;
    display: block;
    background-color: black;
}

/* שדה הערות */
.modal-content textarea {
    width: 70%;
    height: 84px;
    padding: 5px 5px;
    margin: 7px auto -54px;
    border: 0x solid #e0e0e0;
    border-radius: 18px;
    font-size: 16px;
    color: white;
    resize: vertical;
    transition: all 0.3s ease;
    display: block;
    background-color: black;
}

/* מצב פוקוס בשדות */
.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #056483;
    box-shadow: 0 0 0 3px rgba(5,100,131,0.1);
}

/* כפתור שליחה */
.modal-content .contact-button {
    background: #3fbe6b;
    color: white;
    padding: 12px 40px;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 55px;
    display: inline-block;
  
}

/* ריחוף על כפתור שליחה */
.modal-content .contact-button:hover {
    background: #045371;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5,100,131,0.2);
}

/* כפתור סגירה */
.close-modal {
    color: #fff;
    float: left;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    margin: -10px 0 0 -10px;
}

.close-modal:hover {
    color: #056483;
}

/* התאמה למובייל */
@media (max-width: 767px) {
    .background-image.desktop {
        display: none;
    }

    .background-image.mobile {
        display: block;
    }

    .gif-container {
        top: 55%;
        right: 5%;
        width: 59px;
        height: 76px;
    }

    .gif-content {
        width: 176%;
        height: 179%;
        border-radius: 8px;
    }

    .buttons-container {
        right: 18%;
        top: 47%;
        display: flex !important;
        visibility: visible !important;
    }

    .contact-button {
        padding: 6px 9px;
        font-size: 14px;
        display: inline-flex !important;
        visibility: visible !important;
    }

    .icon {
        width: 25px;
        height: 25px;
    }

    a[href*="wa.me"] {
        position: fixed !important;
        bottom: 31px !important;
        left: 20px !important;
        z-index: 1001 !important;
        display: block !important;
        visibility: visible !important;
    }

    a[href*="wa.me"] img {
        width: 50px !important;
        height: 50px !important;
    }

    /* התאמות לטופס במובייל */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }

    .modal-content input[type="text"],
    .modal-content input[type="tel"],
    .modal-content input[type="email"],
    .modal-content textarea {
        width: 90%;
        font-size: 16px;
        
        left: 50%;
    }

    .modal-content .contact-button {
        width: 26%;
        padding: 12px 28px;
   

    }
}

/* תיקונים ספציפיים לאייפון */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: 100vh;
        min-height: -webkit-fill-available;
    }

    .buttons-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100;
    }

    .contact-button {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    a[href*="wa.me"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        z-index: 1000 !important;
    }

    .icon {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* תיקון למודל באייפון */
    .modal-content {
        margin: 10vh auto;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* מניעת גלילה כשהמודל פתוח */
    body.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}


/* עיצוב דף תודה */
.thank-you-page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.thank-you-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thank-you-image.mobile {
    display: none;
}



@media (max-width: 767px) {
    .thank-you-image.desktop {
        display: none;
    }
    
    .thank-you-image.mobile {
        display: block;
    }
}
/* מניעת תצוגת מסך לרוחב */
@media screen and (orientation: landscape) and (max-width: 900px) {
    body::before {
        content: "נא לסובב את המכשיר לתצוגת מסך לאורך";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        text-align: center;
        z-index: 10000;
        padding: 20px;
    }

    .hero, .thank-you-page {
        display: none;
    }
}