/* دریافت نوبت — lightbox */
.pmd-appt-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pmd-appt-modal[hidden] {
  display: none !important;
}

.pmd-appt-modal.is-open {
  display: flex;
}

.pmd-appt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 20, 28, 0.55);
  backdrop-filter: blur(3px);
}

.pmd-appt-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  background: linear-gradient(165deg, #fff 0%, #fff9fb 100%);
  border: 1px solid rgba(242, 214, 225, 0.95);
  border-radius: var(--pmd-radius-lg);
  box-shadow: var(--pmd-shadow-lg);
  animation: pmd-appt-modal-in 0.28s ease;
}

@keyframes pmd-appt-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pmd-appt-modal__close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(217, 79, 140, 0.1);
  color: var(--pmd-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pmd-appt-modal__close:hover,
.pmd-appt-modal__close:focus-visible {
  background: var(--pmd-primary);
  color: var(--pmd-white);
  outline: none;
}

.pmd-appt-modal__body .drz-form__title {
  margin: 0 0 0.35rem;
  padding-inline-end: 2rem;
  font-size: var(--pmd-text-xl);
  font-weight: 800;
  color: var(--pmd-text);
}

.pmd-appt-modal__body .drz-form__desc {
  margin: 0 0 1rem;
  font-size: var(--pmd-text-sm);
  line-height: 1.65;
  color: var(--pmd-mauve);
}

.pmd-appt-modal__body .drz-form__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pmd-appt-modal__body .drz-form__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pmd-mauve);
}

.pmd-appt-modal__body .drz-form__field input,
.pmd-appt-modal__body .drz-form__field select,
.pmd-appt-modal__body .drz-form__field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--pmd-border);
  border-radius: var(--pmd-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--pmd-white);
}

.pmd-appt-modal__body .drz-form__field input:focus,
.pmd-appt-modal__body .drz-form__field select:focus,
.pmd-appt-modal__body .drz-form__field textarea:focus {
  outline: none;
  border-color: var(--pmd-blush);
  box-shadow: 0 0 0 2px rgba(217, 79, 140, 0.12);
}

.pmd-appt-modal__body .drz-form__field--tel input {
  direction: ltr;
  text-align: left;
}

.pmd-appt-modal__body .drz-btn--primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: var(--pmd-radius-sm);
  background: var(--pmd-primary);
  color: var(--pmd-white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pmd-appt-modal__body .drz-btn--primary:hover:not(:disabled) {
  background: var(--pmd-primary-dark);
}

.pmd-appt-modal__body .drz-btn--primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pmd-appt-modal__body .drz-form__message {
  min-height: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pmd-appt-modal__body .drz-form__message.is-success {
  color: #1a7a4a;
}

.pmd-appt-modal__body .drz-form__message.is-error {
  color: #b42318;
}

.pmd-appt-modal__body .drz-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

body.pmd-appt-modal-open {
  overflow: hidden;
}
