/* הגדרות כלליות */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    direction: rtl; /* יישור לימין */
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

/* עיצוב הטופס */
form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #4a90e2;
}

/* עיצוב כפתורים */
button, input[type="submit"] {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s, transform 0.1s;
}

button:active, input[type="submit"]:active {
    transform: scale(0.98);
}

input[type="submit"] {
    background-color: #2ecc71;
    color: white;
}

#print { background-color: #3498db; color: white; }
#delet { background-color: #e74c3c; color: white; }
#close { background-color: #95a5a6; color: white; }

/* רשימת אנשי הקשר */
#contacts {
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
    display: grid;
    gap: 15px;
}

#contacts > div {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 5px solid #4a90e2;
    cursor: pointer;
}

#contacts > div:hover {
    background-color: #f9f9f9;
}

#contacts p {
    margin: 0;
}

#contacts p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
}

select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
}

/* התאמה להדפסה */
@media print {
    form, h1 { display: none; }
    #contacts { width: 100%; }
}