* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  direction: rtl;
  background: #f5f0e8;
  color: #222;
  min-height: 100vh;
}

/* ââ header ââ */
.site-header {
  background: #1a3a2a;
  color: #fff;
  text-align: center;
  padding: 28px 16px 20px;
}
.site-header h1 { font-size: 1.9rem; margin-bottom: 6px; }
.site-header .subtitle { opacity: .85; font-size: 1rem; line-height: 1.5; }

/* ââ info bar ââ */
.info-bar {
  background: #2e6644;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 10px 16px;
  font-size: .92rem;
}
.info-bar span { display: flex; align-items: center; gap: 5px; }

/* ââ price note ââ */
.price-note {
  background: #fff8e1;
  border: 1px solid #f0c040;
  border-radius: 8px;
  padding: 10px 16px;
  margin: 18px auto;
  max-width: 520px;
  text-align: center;
  font-size: .95rem;
}

/* ââ form card ââ */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  padding: 28px 24px;
  margin: 0 auto 32px;
  max-width: 520px;
}
.card h2 { font-size: 1.2rem; margin-bottom: 20px; color: #1a3a2a; }

/* ââ form fields ââ */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  direction: rtl;
  transition: border-color .2s;
}
input:focus, select:focus { outline: none; border-color: #2e6644; }

/* ââ qty stepper ââ */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-stepper button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #2e6644;
  background: #fff;
  color: #2e6644;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s;
}
.qty-stepper button:hover { background: #2e6644; color: #fff; }
.qty-stepper .qty-val {
  font-size: 1.3rem;
  font-weight: bold;
  min-width: 32px;
  text-align: center;
}
.duration-note { font-size: .85rem; color: #555; margin-top: 6px; }

/* ââ slot grid ââ */
.slot-section { margin-bottom: 18px; }
.slot-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid #2e6644;
  background: #fff;
  color: #2e6644;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.slot-btn:hover { background: #e8f5ee; }
.slot-btn.selected { background: #2e6644; color: #fff; }
.slot-btn.taken {
  border-color: #bbb;
  color: #aaa;
  cursor: default;
  background: #f3f3f3;
}
.no-slots { color: #c00; font-size: .9rem; padding: 6px 0; }
.slot-loading { color: #888; font-size: .9rem; }

/* ââ submit ââ */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: #2e6644;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.btn-submit:hover { background: #1a3a2a; }
.btn-submit:disabled { background: #aaa; cursor: default; }

/* ââ success screen ââ */
#success-screen {
  display: none;
  text-align: center;
  padding: 32px 24px;
}
#success-screen .check-icon { font-size: 4rem; }
#success-screen h2 { color: #1a3a2a; margin: 12px 0 8px; font-size: 1.5rem; }
#succest-screen p { color: #444; line-height: 1.6; }
.appt-summary {
  background: #e8f5ee;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
  text-align: right;
  font-size: 1rem;
  line-height: 1.8;
}

/* ââ error ââ */
.error-msg { color: #c00; font-size: .9rem; margin-top: 10px; text-align: center; }

/* ââ footer ââ */
footer {
  text-align: center;
  padding: 16px;
  color: #777;
  font-size: .85rem;
}

@media (max-width: 540px) {
  .card { border-radius: 0; margin: 0 0 24px; }
  .site-header h1 { font-size: 1.5rem; }
}

.chabad-logo {
  display: block;
  max-width: 200px;
  margin: 0 auto 8px;
}
