/* =========================================================================
   فرم رزرو نوبت — تم مدرن (Dark Glass / Golden)
   Scoped entirely to `.nobat-book` (added to <body> on book-appointment.php
   only). Nothing here touches the original stylesheet, form fields, names,
   ids, required/pattern attributes, or the PHP logic — restyling only.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");

.nobat-book {
  --nb-bg: #0a0806;
  --nb-panel-1: #100d09;
  --nb-panel-2: #1c150c;
  --nb-surface: rgba(255, 244, 214, 0.05);
  --nb-surface-strong: rgba(255, 244, 214, 0.09);
  --nb-border: rgba(212, 175, 85, 0.18);
  --nb-gold: #d4af37;
  --nb-gold-strong: #b6862a;
  --nb-amber: #f0c869;
  --nb-text: #f6efe0;
  --nb-text-dim: #b9ac8f;
  --nb-danger: #ff6b81;
  font-family: "Vazirmatn", "samim", "tanha", sans-serif;
  background: var(--nb-bg) !important;
  color: var(--nb-text);
  min-height: 100vh;
}

.nobat-book * { box-sizing: border-box; }

/* ---------- ambient background glow ---------- */
.nobat-book {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, 0.20), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(240, 200, 105, 0.16), transparent 45%) !important;
  background-attachment: fixed;
}

/* ---------- header ---------- */
.nobat-book header {
  padding: 44px 16px 34px;
  text-align: center;
}
.nobat-book header .container {
  max-width: 640px;
  margin: 0 auto;
}
.nobat-book .site-logo {
  max-width: 72px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 14px;
}
.nobat-book header h1 {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 800;
  color: var(--nb-text);
  margin: 0 0 14px;
}
.nobat-book header .slots-remaining {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nb-text-dim) !important;
  background: var(--nb-surface);
  border: 1px solid var(--nb-border);
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0;
}
.nobat-book header .slots-remaining span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  font-weight: 800;
  color: #241a08;
  background: var(--nb-amber);
}

/* ---------- form card ---------- */
.nobat-book main.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 60px;
}
.nobat-book .appointment-form {
  background: var(--nb-surface);
  border: 1px solid var(--nb-border);
  border-radius: 22px;
  padding: 32px 26px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -35px rgba(160, 120, 30, 0.35);
}

.nobat-book .form-group {
  margin-bottom: 20px;
}
.nobat-book .form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--nb-text-dim) !important;
  margin-bottom: 8px;
}

.nobat-book input[type="text"],
.nobat-book input[type="tel"],
.nobat-book input[type="email"],
.nobat-book select,
.nobat-book textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--nb-border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--nb-text) !important;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nobat-book textarea { resize: vertical; min-height: 90px; }

.nobat-book input::placeholder,
.nobat-book textarea::placeholder {
  color: #66708f;
}

.nobat-book input:focus,
.nobat-book select:focus,
.nobat-book textarea:focus {
  outline: none;
  border-color: var(--nb-gold) !important;
  background: rgba(212, 175, 55, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.nobat-book input:invalid:not(:placeholder-shown) {
  border-color: var(--nb-danger) !important;
}

/* custom select arrow, CSS-only */
.nobat-book select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--nb-text-dim) 50%),
                     linear-gradient(135deg, var(--nb-text-dim) 50%, transparent 50%) !important;
  background-position: calc(100% - 22px) calc(1.15em + 2px), calc(100% - 17px) calc(1.15em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.nobat-book select option {
  background: var(--nb-panel-1);
  color: var(--nb-text);
}

/* ---------- clinic info panel ---------- */
.nobat-book .clinic-info {
  margin: 28px 0 22px;
  padding: 20px 20px 8px;
  border-radius: 16px;
  background: var(--nb-panel-2);
  border: 1px solid var(--nb-border);
  border-right: 3px solid var(--nb-gold);
}
.nobat-book .clinic-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--nb-text) !important;
  margin: 0 0 12px;
}
.nobat-book .clinic-info p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--nb-text-dim) !important;
}
.nobat-book .clinic-info strong {
  color: var(--nb-text) !important;
}

/* ---------- submit button: golden, no pink/purple ---------- */
.nobat-book button.btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #241a08 !important;
  background: linear-gradient(95deg, var(--nb-gold-strong), var(--nb-amber)) !important;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 30px -12px rgba(212, 175, 55, 0.45);
}
.nobat-book button.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.nobat-book button.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.nobat-book button.btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.6);
  outline-offset: 2px;
}

/* ---------- footer ---------- */
.nobat-book footer {
  text-align: center;
  padding: 26px 16px 40px;
  border-top: 1px solid var(--nb-border);
  margin-top: 10px;
}
.nobat-book footer p {
  color: var(--nb-text-dim) !important;
  font-size: 13.5px;
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .nobat-book .appointment-form { padding: 24px 18px; border-radius: 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .nobat-book button.btn { transition: none !important; }
  .nobat-book button.btn:hover { transform: none !important; }
}
