/* باقات الحفلات والفعاليات - مرستكه */

/* شبكة الباقات الرئيسية بعد إضافة البطاقة الرابعة */
.has-event-box-launcher {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* بطاقة الحفلات الرئيسية */
.event-box-launcher {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  color: #584033;
  background: #fffdf9;
  border: 1px solid #ead8c5;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(78, 48, 30, .04);
}

.event-box-launcher h3 {
  margin: 0 0 1.6rem;
  color: #573521;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  font-weight: 900;
}

.event-box-launcher-price {
  margin-bottom: 1.3rem;
  color: #a42522;
  font-size: clamp(1.65rem, 2.3vw, 2.5rem);
  font-weight: 900;
}

.event-box-launcher-price small {
  display: inline-block;
  margin-inline-start: .25rem;
  font-size: .9rem;
  font-weight: 800;
}

.event-box-launcher-minimum {
  margin-bottom: 1.8rem;
  color: #867568;
  font-size: 1rem;
}

.event-box-launcher-description {
  flex: 1;
  margin: 1.3rem 0;
  color: #405052;
  font-size: 1rem;
  line-height: 1.9;
}

.event-box-launcher ul {
  margin: 0 0 1.4rem;
  padding: 0 1.25rem 0 0;
  text-align: right;
  color: #6c5b50;
  line-height: 1.9;
}

.event-box-launcher-button,
.event-box-primary-button {
  width: 100%;
  padding: .9rem 1rem;
  color: #fff;
  background: #aa2627;
  border: 0;
  border-radius: 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.event-box-launcher-button:hover,
.event-box-primary-button:hover {
  opacity: .94;
  transform: translateY(-1px);
}

/* النافذة */
.event-box-modal {
  width: min(1000px, 94vw);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  color: #4f3729;
  background: #fffdf9;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 25px 80px rgba(40, 23, 13, .32);
}

.event-box-modal::backdrop {
  background: rgba(43, 27, 17, .55);
  backdrop-filter: blur(2px);
}

.event-box-modal-inner {
  padding: clamp(1rem, 3vw, 1.7rem);
}

.event-box-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eadbce;
}

.event-box-modal-head h3 {
  margin: 0;
  color: #573521;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.event-box-close,
.event-box-back {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.event-box-close {
  padding: .2rem .5rem;
  color: #6d5545;
  background: transparent;
  font-size: 2rem;
}

.event-box-back {
  padding: .55rem .85rem;
  color: #7d2723;
  background: #f7e9df;
  border-radius: 10px;
  font-weight: 800;
}

/* اختيار البوكس */
.event-box-picker-intro {
  max-width: 720px;
  margin: 1rem auto 1.5rem;
  text-align: center;
  color: #705f53;
  line-height: 1.9;
}

.event-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.event-box-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 100%;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #e7d7c6;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(69, 41, 20, .07);
}

.event-box-card.is-featured {
  border: 2px solid #a42522;
  transform: translateY(-4px);
}

.event-box-badge {
  position: absolute;
  top: -13px;
  left: 18px;
  padding: .35rem .75rem;
  color: #fff;
  background: #a42522;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 900;
}

.event-box-icon {
  font-size: 2rem;
}

.event-box-card h4 {
  margin: 0;
  color: #573521;
  font-size: 1.3rem;
}

.event-box-price {
  color: #a42522;
  font-size: 1.9rem;
  font-weight: 900;
}

.event-box-price small {
  color: #765f51;
  font-size: .85rem;
}

.event-box-minimum {
  color: #806f63;
  font-size: .9rem;
}

.event-box-card ul {
  flex: 1;
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: #605249;
  line-height: 1.85;
}

/* نموذج التخصيص */
.event-box-selected-summary {
  margin: 1rem 0;
  padding: .9rem 1rem;
  color: #5c4333;
  background: #f9eee4;
  border: 1px solid #ead7c5;
  border-radius: 15px;
  line-height: 1.9;
}

.event-box-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.event-box-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
  color: #4c3528;
  font-weight: 800;
}

.event-box-form input,
.event-box-form select,
.event-box-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .75rem;
  color: #30231d;
  background: #fff;
  border: 1px solid #ddcbbb;
  border-radius: 11px;
  font: inherit;
}

.event-box-form input:focus,
.event-box-form select:focus,
.event-box-form textarea:focus {
  border-color: #a42522;
  outline: 2px solid rgba(164, 37, 34, .12);
}

.event-box-form .full {
  grid-column: 1 / -1;
}

.event-box-section-title {
  grid-column: 1 / -1;
  margin-top: .45rem;
  padding-bottom: .5rem;
  color: #a42522;
  border-bottom: 1px solid #eadbce;
  font-size: 1.05rem;
  font-weight: 900;
}

.event-box-payment {
  grid-column: 1 / -1;
  display: grid;
  gap: .45rem;
  padding: 1rem;
  color: #fff;
  background: #573521;
  border-radius: 16px;
}

.event-box-payment-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.event-box-payment-row.total {
  margin-top: .3rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.15rem;
  font-weight: 900;
}

.event-box-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .7rem;
}

.event-box-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #715f52;
  font-size: .88rem;
  line-height: 1.7;
}

/* شاشات متوسطة */
@media (max-width: 1250px) {
  .has-event-box-launcher {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* الجوال */
@media (max-width: 760px) {
  .has-event-box-launcher,
  .event-boxes-grid,
  .event-box-form {
    grid-template-columns: 1fr !important;
  }

  .event-box-card.is-featured {
    transform: none;
  }

  .event-box-modal {
    width: 96vw;
  }
}

/* تثبيت الباقات الأربع في صف واحد على شاشات الكمبيوتر */
.has-event-box-launcher {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* تصغير المسافات الداخلية حتى تتسع الباقات الأربع */
.has-event-box-launcher > * {
  min-width: 0 !important;
}

.event-box-launcher {
  padding: 1.6rem 1rem 1.25rem;
}

.event-box-launcher h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.55rem);
}

/* الأجهزة اللوحية فقط */
@media (max-width: 900px) {
  .has-event-box-launcher {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* الجوال */
@media (max-width: 600px) {
  .has-event-box-launcher {
    grid-template-columns: 1fr !important;
  }
}

/* ==================================================
   توحيد بطاقة الحفلات مع بطاقات البوفيه الحالية
   ================================================== */

.has-event-box-launcher {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
}

.has-event-box-launcher > * {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* البطاقة الرابعة بنفس نمط الباقات الأساسية */
.event-box-launcher {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 28px 20px 20px !important;
  color: #47362e !important;
  background: #ffffff !important;
  border: 1px solid #eadfd5 !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 25px rgba(67, 45, 31, 0.08) !important;
  text-align: center !important;
  overflow: hidden !important;
}

/* الشريط العلوي مطابق للهوية */
.event-box-launcher::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(
    90deg,
    #7d2027 0%,
    #a1272d 50%,
    #687343 50%,
    #849155 100%
  );
}

/* عنوان البطاقة */
.event-box-launcher h3 {
  min-height: 58px;
  margin: 8px 0 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #532f24 !important;
  font-size: clamp(1.1rem, 1.25vw, 1.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

/* السعر */
.event-box-launcher-price {
  margin: 0 0 8px !important;
  color: #9c2529 !important;
  font-size: clamp(1.45rem, 1.7vw, 1.9rem) !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

.event-box-launcher-price small {
  color: #74645b !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

/* الحد الأدنى */
.event-box-launcher-minimum {
  min-height: 26px;
  margin: 0 0 12px !important;
  color: #77675e !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

/* الوصف */
.event-box-launcher-description {
  min-height: 92px;
  margin: 0 0 12px !important;
  color: #64564e !important;
  font-size: 0.94rem !important;
  line-height: 1.8 !important;
}

/* المزايا */
.event-box-launcher ul {
  flex: 1 !important;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: right !important;
}

.event-box-launcher li {
  position: relative;
  margin-bottom: 8px;
  padding-right: 24px;
  color: #594b43 !important;
  font-size: 0.91rem !important;
  line-height: 1.6 !important;
}

.event-box-launcher li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #758248;
  font-weight: 900;
}

/* زر البطاقة */
.event-box-launcher-button {
  margin-top: auto !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 11px 12px !important;
  color: #ffffff !important;
  background: #9c2529 !important;
  border: 0 !important;
  border-radius: 14px !important;
  font: inherit !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.event-box-launcher-button:hover {
  background: #7f1e22 !important;
}

/* أربع باقات في صف واحد على الكمبيوتر والأجهزة المتوسطة */
@media (min-width: 901px) {
  .has-event-box-launcher {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* صفان فقط على الأجهزة اللوحية الصغيرة */
@media (min-width: 601px) and (max-width: 900px) {
  .has-event-box-launcher {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* بطاقة واحدة على الجوال */
@media (max-width: 600px) {
  .has-event-box-launcher {
    grid-template-columns: 1fr !important;
  }
}


/* إخفاء أيقونات بوكسات الحفلات */
.event-box-icon {
  display: none !important;
}
