@font-face {
  font-family: "Arab";
  src: url("/font/arab.ttf");
}

* {
  box-sizing: border-box;
  font-family: "Arab", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f8f9fa;
  background-image: radial-gradient(#d4af3718 1px, transparent 1px);
  background-size: 24px 24px;
  color: #333;
  margin: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* --- خلفية المقصات العائمة --- */
.floating-scissors {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scissor-icon {
  position: absolute;
  color: #d4af37;
  opacity: 0.16;
  animation: floatScissor 12s ease-in-out infinite;
}

.scissor-icon.s1 { top: 8%; right: 8%; width: 46px; animation-duration: 11s; }
.scissor-icon.s2 { top: 22%; left: 7%; width: 38px; animation-duration: 14s; animation-delay: -2s; }
.scissor-icon.s3 { bottom: 25%; right: 6%; width: 42px; animation-duration: 13s; animation-delay: -5s; }
.scissor-icon.s4 { bottom: 14%; left: 10%; width: 50px; animation-duration: 16s; animation-delay: -7s; }
.scissor-icon.s5 { top: 50%; left: 48%; width: 32px; opacity: 0.09; animation-duration: 15s; animation-delay: -4s; }

@keyframes floatScissor {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(22deg);
  }
}

/* --- الحاوية الرئيسية --- */
main.container {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 32px;
  margin-bottom: 20px;
  padding: 32px 24px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  text-align: center;
  max-width: 440px;
  width: 100%;
  z-index: 1;
}

.header-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  background: #1a1a1a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.15);
}

h1 {
  color: #1a1a1a;
  font-weight: 900;
  font-size: 1.8rem;
  border-bottom: 3px solid #d4af37;
  display: inline-block;
  padding-bottom: 8px;
  margin: 0 0 8px 0;
}

.subtitle {
  margin: 0 0 24px 0;
  color: #777;
  font-size: 0.92rem;
}

/* --- الفورم والحقول --- */
.booking-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: right;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

label {
  font-size: 0.95rem;
  color: #222;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  background-color: #fafafa;
  font-size: 1rem;
  color: #1a1a1a;
  outline: none;
  direction: rtl;
  text-align: right;
  transition: all 0.25s ease;
}

input:focus {
  border-color: #d4af37;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

/* --- القائمة المنسدلة المخصصة (Custom Select) --- */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  background-color: #fafafa;
  font-size: 1rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-select.open .custom-select-trigger {
  border-color: #d4af37;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.chevron {
  width: 18px;
  height: 18px;
  color: #d4af37;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.custom-select.open .chevron {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  max-height: 215px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-options::-webkit-scrollbar {
  width: 5px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 10px;
}

.custom-option {
  padding: 13px 16px;
  font-size: 0.96rem;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s ease;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover,
.custom-option:active {
  background-color: #fdf9ec;
}

.custom-option.selected {
  background-color: #fbf3d5;
  color: #1a1a1a;
  font-weight: bold;
}

.option-check {
  color: #d4af37;
  font-weight: bold;
  display: none;
}

.custom-option.selected .option-check {
  display: inline;
}

.custom-option.disabled {
  color: #999;
  cursor: not-allowed;
  background: #fafafa;
}

/* --- زر الحجز --- */
.btn-book {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.18);
  transition: all 0.25s ease;
}

.btn-book:hover {
  background-color: #d4af37;
  color: #1a1a1a;
}

.btn-book:active {
  transform: scale(0.98);
}

.btn-book:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.error {
  background: #ffeaea;
  color: #c0392b;
  border: 1px solid #f5b7b1;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.92rem;
}

/* --- الإشعار المنبثق (Toast) --- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast-notification {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #1a1a1a;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  direction: rtl;
  transform: translateY(-130%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  opacity: 0;
  pointer-events: auto;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  background: rgba(46, 213, 115, 0.18);
  border: 1px solid rgba(46, 213, 115, 0.4);
  color: #20bf6b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  flex-shrink: 0;
}

.toast-content {
  font-size: 0.92rem;
  font-weight: bold;
}

/* --- الفوتر وزر تثبيت التطبيق --- */
footer {
  margin-top: auto;
  padding: 16px 0 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.pwa-install-wrapper {
  margin-bottom: 14px;
}

.btn-install-pwa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1.5px solid #d4af37;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
  transition: all 0.25s ease;
}

.btn-install-pwa:hover,
.btn-install-pwa:active {
  background: #d4af37;
  color: #1a1a1a;
}

/* --- نافذة تعليمات الآيفون --- */
.ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.ios-modal-overlay.active {
  display: flex;
}

.ios-modal {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 24px;
  text-align: right;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ios-modal h3 {
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.ios-modal p {
  margin: 0 0 12px 0;
  font-size: 0.92rem;
  color: #555;
}

.ios-modal ol {
  margin: 0 0 18px 0;
  padding-right: 20px;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.8;
}

.btn-close-modal {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}