.booking-page {
  min-height: 100vh;
  background: var(--arys-background, #fffaf5);
  color: var(--arys-text, #302018);
}

.booking-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 20px;
  padding: 56px 34px;
  border-radius: var(--arys-radius, 32px);
  background:
    radial-gradient(circle at top right, rgba(197, 129, 82, 0.22), transparent 34%),
    var(--arys-secondary, #fff7ee);
  box-shadow: var(--arys-shadow, 0 24px 60px rgba(69, 42, 27, 0.13));
}

.booking-hero p,
.booking-kicker {
  margin: 0 0 10px;
  color: var(--arys-primary, #7a3f22) !important;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.booking-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  color: var(--arys-text, #302018);
}

.booking-hero span,
.booking-intro {
  display: block;
  margin-top: 14px;
  color: var(--arys-muted-text, #634839) !important;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

.booking-section {
  padding: 42px 22px;
  scroll-margin-top: 120px;
}

.booking-section-returning {
  padding-top: 20px;
}

.booking-card {
  width: min(940px, 100%);
  margin: 0 auto;
  background: var(--arys-surface, #ffffff);
  border: 1px solid rgba(122, 63, 34, 0.14);
  border-radius: var(--arys-radius, 30px);
  padding: 32px;
  box-shadow: var(--arys-shadow, 0 24px 60px rgba(69, 42, 27, 0.13));
}

.returning-quick-card {
  border: 2px solid rgba(122, 63, 34, 0.18);
}

.booking-card h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--arys-text, #302018);
}

.booking-form,
.quick-book-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.quick-book-form {
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
}

.booking-form label,
.quick-book-form label {
  display: grid;
  gap: 8px;
  color: var(--arys-text, #302018);
  font-weight: 900;
}

.booking-form label.full {
  grid-column: 1 / -1;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.quick-book-form input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(122, 63, 34, 0.22);
  background: #fffaf5;
  color: #302018;
  font: inherit;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.quick-book-form input:focus {
  border-color: var(--arys-primary, #7a3f22);
  box-shadow: 0 0 0 4px rgba(122, 63, 34, 0.12);
}

.booking-form button,
.quick-book-form button {
  border: 0;
  border-radius: 999px;
  padding: 17px 22px;
  background: var(--arys-primary, #7a3f22);
  color: #ffffff;
  font-weight: 1000;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(122, 63, 34, 0.2);
  white-space: nowrap;
}

.booking-form button {
  grid-column: 1 / -1;
}

.booking-form button:disabled,
.quick-book-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.booking-success,
.booking-error {
  margin-top: 18px;
  padding: 15px;
  border-radius: 18px;
  font-weight: 900;
}

.booking-success {
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #bbf7d0;
}

.booking-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 900px) {
  .quick-book-form {
    grid-template-columns: 1fr;
  }

  .quick-book-form button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .booking-hero {
    padding: 38px 22px;
  }

  .booking-card {
    padding: 22px;
    border-radius: 24px;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-form label.full {
    grid-column: auto;
  }
}

/* ===== Fully booked modal ===== */
.booking-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(22, 14, 10, 0.58);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.booking-modal {
  width: min(440px, 100%);
  background: #ffffff;
  color: #302018;
  border-radius: 30px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  position: relative;
  animation: bookingModalIn 0.22s ease-out;
}

.booking-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff2e8;
  color: #7a3f22;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.booking-modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #fff2e8;
  font-size: 36px;
}

.booking-modal h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 1000;
  color: #302018;
}

.booking-modal p {
  margin: 0;
  color: #634839;
  line-height: 1.6;
  font-weight: 750;
}

.booking-modal-button {
  margin-top: 22px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #7a3f22;
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 1000;
  cursor: pointer;
}

@keyframes bookingModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Fix booking form typing/clicking issue ===== */
.booking-page form,
.booking-page input,
.booking-page textarea,
.booking-page select,
.booking-page button {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}

.booking-page input,
.booking-page textarea,
.booking-page select {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
}

.booking-page section,
.booking-page .booking-card,
.booking-page .booking-form,
.booking-page .booking-panel {
  position: relative !important;
  z-index: 10 !important;
}

/* Modal فقط وقتی داخل React ساخته شده باشد فعال است */
.booking-modal-backdrop {
  pointer-events: auto !important;
}

.booking-modal {
  pointer-events: auto !important;
}

/* ===== Emergency safe fix: make booking form clickable/typeable ===== */

/* هر لایه تزئینی روی فرم نباید کلیک را بگیرد */
.booking-page::before,
.booking-page::after,
.booking-page *::before,
.booking-page *::after {
  pointer-events: none !important;
}

/* خود فرم و فیلدها باید بالاتر از همه باشند */
.booking-page form,
.booking-page label,
.booking-page input,
.booking-page textarea,
.booking-page select {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* دکمه‌ها هم کلیک‌پذیر باشند */
.booking-page button,
.booking-page a {
  pointer-events: auto !important;
}

/* کارت‌های فرم بالاتر از بک‌گراند باشند */
.booking-page .booking-card,
.booking-page .booking-panel,
.booking-page .booking-form,
.booking-page [id="appointment"],
.booking-page [id="returning-appointment"] {
  position: relative !important;
  z-index: 999 !important;
  pointer-events: auto !important;
}

/* فقط وقتی modal واقعاً باز است روی صفحه بیاید */
.booking-modal-backdrop {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.booking-modal-backdrop[hidden],
.booking-modal-backdrop[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
}
