/* חוסם גלילה אופקית ושומר על מבנה המסך */
html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    text-align: center;
    direction: rtl;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* מבנה הדף */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: auto;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    width: 100%;
    padding: 20px;
}

@media (max-width: 768px) {
    /* ברירת מחדל ל-index.php */
    .landing-container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding-top: 200px; /* עובד טוב עבור index.php */
    }

    /* התאמה מיוחדת ל-send.php בלבד */
    body.send-page .landing-container {
        padding-top: 01px; /* שומר על מרווח אחר רק ב-send.php */
    }
}

/* תיבת הטופס */
.form-container {
    margin-top: 30px; /* מוסיף רווח מתחת ללוגו */
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 20px; /* מעגליות זהה לכל הכיוונים */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    box-sizing: border-box;
    margin: auto; /* ממרכז את התיבה */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* עיצוב לוגו */
.logo {
    width: 200px;
    margin-bottom: 10px;
}

/* כותרות */
h2 {
    text-align: center; /* מיישר את הכותרת המשנית לאמצע */
    width: 100%;
    margin: 10px 0;
}


h3 {
    text-align: center; /* מיישר את הכותרת המשנית לאמצע */
    width: 100%;
    margin: 10px 0;
}


/* עיצוב טופס */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

/* תוויות */
label {
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

/* שדות קלט */
input, textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: right;
}

/* שדה הערות */
textarea {
    height: 80px;
    resize: vertical;
}

/* כפתור שליחה */
button {
    font-size: 20px;
    font-weight: bold;
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    width: 100%;
}

/* אפקט ריחוף לכפתור */
button:hover {
    background: #218838;
}

#submit-btn:disabled {
    background-color: #ccc; /* רקע אפור כשהכפתור מושבת */
    cursor: not-allowed; /* מצביע שמראה שהכפתור חסום */
    opacity: 0.6; /* שקיפות קלה */
    transition: background-color 0.3s ease; /* שינוי רקע חלק */
}
