/*איפוס הגדרות ברירת מחדל*/
* {
    box-sizing: border-box; /*חישוב רוחב כולל מסגרת וריפוד*/
}

/*הגדרות בסיס לאתר*/
body {
    background-color: #f4f4f4;
    direction: rtl;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1 {
    color: #D32F2F; /*אדום מותג*/
    margin-top: 15px;
    font-size: 1.8rem;
    padding: 0 10px;
}

/*התאמת תצוגה למסכים שונים בצורה רספונסיבית */
#content-box {
    background-color: white;
    max-width: 600px; /*במחשב: רוחב מקסימלי*/
    width: 90%;       /*בנייד: רוחב יחסי*/
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*באנרים ותמונות*/
#banner-top, #banner-bottom {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

#banner-bottom {
    margin-top: 20px;
}

/*ניווט בין טאבים*/
#tabs-container {
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap; /*מאפשר שבירת שורה במסכים קטנים*/
    justify-content: center;
    gap: 8px;
}

#tabs-container button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex: 1 1 auto; /*גמישות ברוחב הכפתור*/
}

#tabs-container button:hover {
    background-color: #ddd;
}

/*הסתרת טאבים שאינם בשימוש*/
#tab-status, #tab-info {
    display: none;
}

/*עיצוב איזור של המפה*/
.map-section-wrapper {
    margin-top: 30px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

/*עיצוב הטופס*/
#form-table {
    width: 100%;
    text-align: right;
    border-collapse: collapse;
    border: none; /*וידוא שאין מסגרת לטבלה*/
}

.label-col {
    width: 30%;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    vertical-align: top;
}

/*עיצוב שדות הקלט*/
input[type="text"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 5px;
}

/*מניעת שינוי גודל ידני לתיבת הטקסט*/
textarea {
    resize: none; 
    height: 100px;
}

/*כפתורי פעולה*/
#buttons-area {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*התאמה למסכים גדולים יותר*/
@media (min-width: 480px) {
    #buttons-area {
        flex-direction: row; /*שינוי לשורה*/
        justify-content: center;
    }
}

#btn-submit, #btn-reset {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}

@media (min-width: 480px) {
    #btn-submit, #btn-reset {
        width: auto;
    }
}

#btn-submit {
    background-color: #D32F2F;
    color: white;
}

#btn-reset {
    background-color: #ccc;
    color: black;
}

/*רשתות חברתיות*/
#social-area {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s; /*אנימציה*/
}

.social-icons img:hover {
    transform: scale(1.1); /*הגדלה במעבר עכבר*/
}

/*וידאו ומפה*/
.video-container, .map-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/*קישורים משפטיים ופוטר*/
#copyright-area {
    padding: 15px;
    font-size: 14px;
    color: #666;
}

.legal-links {
    margin-top: 5px;
    font-size: 13px;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #D32F2F;
    text-decoration: underline;
}

/*עיצוב חלון קופץ*/
.modal {
    display: none;
    position: fixed; /*נשאר במקום בגלילה*/
    z-index: 2000;   /*שכבה עליונה מעל הכל*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /*מסך כהה חצי שקוף*/
    
    /*מרכוז התוכן*/
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: right;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

#modal-title {
    color: #D32F2F;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/*התאמה לפלאפון בצורה רספונסיבית*/
@media (max-width: 600px) {
    /* הפיכת הטבלה לתצוגת בלוקים (תאים זה מתחת לזה) */
    #form-table, #form-table tbody, #form-table tr, #form-table td {
        display: block;
        width: 100%;
    }

    #form-table tr {
        margin-bottom: 15px;
    }

    .label-col {
        width: 100%;
        font-weight: bold;
        color: #D32F2F;
        padding-bottom: 5px;
    }
    
    #form-table td {
        padding: 0;
    }
}

/*עיצוב להודעת שעת השליחה*/
#footer-time {
    text-align: center;
    color: green;
}