/* =============================================================================
   IFTAR VOUCHER STYLES
   ============================================================================= */

/* =============================================================================
   1. GLOBAL & UTILITIES
   ============================================================================= */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

table li {
  font-size: 18px;
}

.description ul li {
  list-style-type: disc;
  margin-left: 20px;
}

/* =============================================================================
   2. LOADING STATE
   ============================================================================= */

.modal-loading {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.8) url('{!! asset("img/ajax-loader.gif") !!}') 50% 50% no-repeat;
}

body.loading .modal-loading {
  display: block;
  overflow: hidden;
}

/* =============================================================================
   3. ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* =============================================================================
   4. HERO SECTION
   ============================================================================= */

.ramadan-hero-section {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #5a0f3a;
  font-family: 'Raleway', sans-serif;
}

@media (min-width: 768px) {
  .ramadan-hero-section {
    height: 450px;
  }
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.0;
}

/* Hero Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(135, 25, 104, 0.4), rgba(90, 15, 58, 0.8));
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Hero Card */
.hero-card {
  background-color: #ffffff;
  padding: 30px 20px;
  width: 100%;
  max-width: 650px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-top: 5px solid #D4AF37;
  opacity: 0;
  transform: translateY(20px);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 40px;
  }
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Hero Brand Divider */
.hero-brand-divider {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.hero-banner-image {
        max-width: 100%;
        height: auto;
        display: block;
}

/* Desktop - 70% width */
@media (min-width: 1024px) {
    .hero-banner-image {
        width: 70%;
    }
}

/* Tablet and Mobile - 90% width */
@media (max-width: 1023px) {
    .hero-banner-image {
        width: 100%;
    }
}

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
}

/* =============================================================================
   5. CONTENT SECTION
   ============================================================================= */

.ramadan-content-section {
  padding: 40px 0 40px 0;
  background-color: #f9fafb;
  font-family: 'Raleway', sans-serif;
}

.content-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* =============================================================================
   6. MAIN CONTENT AREA
   ============================================================================= */

.main-content {
  /* Container untuk konten utama */
}

.description-block {
  margin-bottom: 16;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.section-text p {
  margin-bottom: 16px;
}

.btn-menu {
  background-color: #871968;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-menu:hover {
  background-color: #6a1450;
}

/* =============================================================================
   7. TERMS & CONDITIONS SECTION
   ============================================================================= */

.terms-block {
  margin-top: 20px;
}

.terms-label {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.terms-list {
  list-style-type: disc;
  padding-left: 20px;
}

.terms-list li {
  font-size: 1.125rem;
  margin-bottom: 4px;
  line-height: 1.6;
}

.terms-list li::marker {
  color: #871968;
}

/* =============================================================================
   8. SIDEBAR & AFFILIATE CARD
   ============================================================================= */

.sidebar-content {
  position: sticky;
  top: 20px;
  align-self: start;
  height: fit-content;
}

.affiliate-card {
  background: linear-gradient(135deg, #871968 0%, #6a1450 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

@media (min-width: 768px) {
  .affiliate-card {
    padding: 32px;
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card-desc {
  color: #DBDBDB;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.btn-affiliate {
  width: 100%;
  background-color: #EDA72C;
  color: #871968;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-affiliate:hover {
  background-color: #c4a132;
}

.card-footer-text {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   9. UTILITY CLASSES
   ============================================================================= */

.hidden {
  display: none !important;
}

/* =============================================================================
   Packages Section
   ============================================================================= */
.ramadan-packages-section {
  padding: 0 0 60px 0; /* Memberi jarak bawah */
  background-color: #f9fafb; /* Lanjutan background dari section sebelumnya */
  font-family: 'Raleway', sans-serif;
}

/* Judul Section */
.packages-title {
  font-size: 1.75rem; /* 28px */
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 24px;
}

/* Grid Layout */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
  }
}

/* --- Card Styles --- */
.package-card {
  background-color: #ffffff;
  border: 1px solid #871968;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.package-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px); /* Sedikit efek naik saat hover */
}

/* Card Header */
.card-header {
  padding: 16px;
  padding-bottom: 8px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.pkg-name {
  font-size: 18px; /* 14px */
  font-weight: 700;
  color: #871968;
  margin: 0;
}

.badge-available {
  background-color: #10B981; /* Green-500 */
  color: white;
  font-size: 0.75rem; /* 12px */
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .badge-available {
    font-size: 10px;
  }
}

.pkg-period {
  font-size: 14px; /* 12px */
  font-weight: 500;
  color: #6B7280; /* Gray-500 */
  margin: 0;
}

/* Card Body */
.card-body {
  padding: 16px;
  padding-top: 0;
}

/* Price Box */
.price-box {
  background-color: rgba(135, 25, 104, 0.05); /* #871968 dengan opacity 5% */
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-label {
  font-size: 14px; /* 12px */
  color: #6B7280;
}

.price-value {
  font-size: 14px; /* 12px */
  font-weight: 700;
  color: #871968;
}

/* Quota Row */
.quota-row {
  border-top: 1px solid #E5E7EB; /* Gray-200 */
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quota-label {
  font-size: 14px; /* 12px */
  color: #6B7280;
}

.quota-value {
  font-size: 14px; /* 12px */
  font-weight: 700;
  color: #374151; /* Gray-700 */
}

/* --- Booking Section Layout --- */
.booking-section {
  padding: 40px 0 80px 0;
  background-color: #f9fafb;
  font-family: 'Raleway', sans-serif;
  width: 100%;
}

.booking-section .container {
  width: 100%;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative; /* Penting untuk context sticky */
  width: 100%;
}

@media (min-width: 1024px) {
  .booking-grid {
    grid-template-columns: 2fr 1fr; /* 2 kolom di kiri, 1 di kanan */
  }
}

/* --- Form Column & Card Styles --- */
.form-column {
  width: 100%;
}

.sidebar-column {
  width: 100%;
}

@media (min-width: 1024px) {
  .form-column {
    grid-column: 1;
  }
  
  .sidebar-column {
    grid-column: 2;
  }
}

.form-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header-text {
  margin-bottom: 24px;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #6B7280;
}

/* Form Groups */
.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group-row.align-end {
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.2s;
  font-family: 'Raleway', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: #871968;
  box-shadow: 0 0 0 2px rgba(135, 25, 104, 0.1);
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper .form-control {
  padding-right: 12px;
}

/* Phone Input Special Styling */
.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background-color: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  color: #374151;
  font-size: 0.875rem;
  white-space: nowrap;
}

.info-note {
  font-size: 0.75rem;
  color: #EF4444; /* Red */
  font-weight: 600;
  margin-top: 4px;
}

/* --- Package Info Box (Dynamic) --- */
.package-info-box {
  background-color: rgba(135, 25, 104, 0.05);
  border: 1px solid rgba(135, 25, 104, 0.2);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .package-info-box {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.package-info-box.hidden {
  display: none;
}

.pkg-name-display {
  font-size: 1.125rem;
  font-weight: 700;
  color: #871968;
  margin: 0;
}

.pkg-period-display {
  font-size: 0.75rem;
  color: #4B5563;
}

.pkg-quota-display {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 4px;
}

.pkg-price-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: #871968;
}

.alert-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #9CA3AF;
  font-size: 0.875rem;
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 6px;
  margin-bottom: 16px;
}

.btn-add-cart {
  width: 100%;
  height: 40px;
  background-color: white;
  border: 1px solid #871968;
  color: #871968;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-add-cart:hover:not(:disabled) {
  background-color: rgba(135, 25, 104, 0.05);
}

.btn-add-cart:disabled {
  border-color: #D1D5DB;
  color: #9CA3AF;
  background-color: #F3F4F6;
  cursor: not-allowed;
}

/* --- Sidebar Cart (Sticky) --- */
.cart-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px); /* Membatasi tinggi agar bisa discroll internal */
}

.sidebar-column {
  position: relative;
}

.sticky-cart {
  position: sticky;
  top: 100px; /* Jarak dari atas */
  z-index: 20;
}

.cart-header {
  padding: 16px;
  background-color: rgba(135, 25, 104, 0.05);
  border-bottom: 1px solid #E5E7EB;
}

.cart-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #871968;
}

.cart-items-scroll {
  flex: 1;
  overflow-y: auto; /* Scrollable internal */
  padding: 16px;
  min-height: 150px;
}

/* Cart Item Style */
.cart-item {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.cart-item-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}

.item-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1F2937;
}

.item-type {
  font-size: 0.65rem;
  background: rgba(135, 25, 104, 0.15);
  color: #871968;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.item-date {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 8px;
}

.item-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 8px;
}

.item-qty-price {
  color: #6B7280;
  flex: 1;
}

.item-subtotal {
  font-weight: 700;
  color: #1F2937;
  min-width: 90px;
  text-align: right;
}

.btn-remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #D1D5DB;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-remove-item:hover {
  color: #EF4444;
}

.cart-empty-state {
  text-align: center;
  color: #9CA3AF;
  padding: 32px 0;
}

.cart-empty-state p { margin-bottom: 4px; font-size: 0.875rem; }
.cart-empty-state small { font-size: 0.75rem; }

/* Footer */
.cart-footer {
  padding: 16px;
  border-top: 1px solid #E5E7EB;
  background: white;
  border-radius: 0 0 8px 8px;
}

.form-control-sm {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed #E5E7EB;
}

.promo-group {
  margin-bottom: 16px;
}

.promo-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.total-row span:first-child {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1F2937;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #871968;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: #871968;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background-color: #6a1450;
}

.btn-submit:disabled {
  background-color: #D1D5DB;
  cursor: not-allowed;
}

.btn-help {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #871968;
  color: #871968;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-help:hover {
  background-color: rgba(135, 25, 104, 0.05);
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 4px 0;
}