/* ===== עיצוב רקע כללי ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #e9f1f5, #f8fafc);
  min-height: 100vh;
  margin: 0;
  color: #333;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 15px;
  transition: background 0.5s ease, color 0.5s ease;
}

/* מצב כהה אוטומטי */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    color: #eee;
  }
  .container {
    background: rgba(40, 40, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
  input, select, textarea {
    background: #2b2b2b;
    border-color: #444;
    color: #eee;
  }
  input:focus, select:focus, textarea:focus {
    border-color: #2196F3;
    background: #333;
  }
  button {
    box-shadow: none;
  }
}

/* ===== קונטיינר ראשי ===== */
.container {
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 35px 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: fadeIn 0.7s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== כותרת ===== */
h2 {
  text-align: center;
  font-size: 28px;
  color: #222;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  right: 50%;
  transform: translateX(50%);
}
h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 20%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #2196F3);
  border-radius: 2px;
}

/* ===== הודעת משלוחים ===== */
.delivery-note {
  text-align: center;
  background: #fff7d9;
  color: #7a6000;
  border: 1px solid #ffe699;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0 30px 0;
  font-size: 1.1em;
  line-height: 1.6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.delivery-note:hover {
  transform: scale(1.01);
}
.delivery-note .highlight {
  color: #d9534f;
  font-weight: bold;
}

/* ===== תוויות ===== */
label {
  display: block;
  margin-top: 16px;
  color: #444;
  font-weight: 500;
  font-size: 15px;
}
.required::after {
  content: " * חובה";
  color: #d9534f;
  font-weight: normal;
  font-size: 0.9em;
}

/* ===== שדות קלט ===== */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 15px;
  background: #fafafa;
  transition: all 0.25s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #2196F3;
  box-shadow: 0 0 8px rgba(33,150,243,0.25);
  background: #fff;
  transform: scale(1.01);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[readonly].readonly {
  background-color: #eee;
  color: #555;
  cursor: not-allowed;
}

/* ===== כפתורים כלליים ===== */
button {
  background: linear-gradient(45deg, #4CAF50, #2E7D32);
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 22px;
  width: 100%;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 14px rgba(0,0,0,0.12);
}
button:hover {
  background: linear-gradient(45deg, #43a047, #1b5e20);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
button:active {
  transform: scale(0.97);
}

/* ===== כפתור ניתוק ===== */
#disconnectBtn {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  font-weight: bold;
}
#disconnectBtn:hover {
  background: linear-gradient(45deg, #ff6b61, #e74c3c);
}

/* ===== כפתור ניטרלי ===== */
.neutral-btn {
  background: #f2f2f2;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}
.neutral-btn:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

/* ===== כפתור וואצאפ ===== */
.whatsapp-btn {
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.whatsapp-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.whatsapp-btn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== Loader ===== */
.loader {
  display: inline-block;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2196F3;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== אנימציה כללית ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== רספונסיביות לנייד ===== */
@media (max-width: 600px) {
  .container {
    padding: 25px 20px;
    margin: 20px;
  }
  h2 {
    font-size: 22px;
  }
  button {
    font-size: 16px;
  }
}
