/* =========================================
   1. INPUT FIELDS (Fixed Alignment)
   ========================================= */
.input-field.clickable-trigger {
  position: relative;
  cursor: pointer;
}

/* RTL Padding Fix */
.clickable-trigger input[readonly] {
  cursor: pointer;
  caret-color: transparent;
  padding-left: 45px !important;
}

/* Arrow Icon */
.custom-arrow {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 1rem;
  z-index: 5;
}

/* =========================================
   2. ULTRA CLEAN MINIMAL MODAL (No Icon)
   ========================================= */

/* Overlay */
.clean-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.clean-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Box - Compact & Clean */
.clean-modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 380px; /* Slightly narrower for compact look */
  border-radius: 24px;
  padding: 30px 25px 25px 25px; /* Reduced top padding since icon is gone */
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.clean-modal-overlay.active .clean-modal-box {
  transform: translateY(0);
  opacity: 1;
}

/* Close Button */
.clean-close-btn {
  position: absolute;
  top: 20px;
  left: 20px; /* RTL Left */
  width: 36px;
  height: 36px;
  background: #f8f9fa;
  color: #9ca3af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: all 0.3s ease;
  z-index: 10;
}

.clean-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* Header (Text Only - Compact) */
.clean-modal-header {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 10px; /* Adjusted spacing */
  padding-bottom: 15px;
  border-bottom: 1px solid #f3f4f6; /* Subtle divider */
}

.clean-modal-header h3 {
  font-family: "Alexandria", serif;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.modal-subtitle {
  font-family: "Rubik", serif;
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* Option List */
.clean-modal-body {
  overflow-y: auto;
  max-height: 55vh;
  padding: 5px 2px;
  scrollbar-width: none;
}
.clean-modal-body::-webkit-scrollbar { display: none; }

.clean-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Option Items */
.clean-option-item {
  position: relative;
  background: #f9fafb;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid transparent;
}

.clean-option-item:hover {
  background: #ffffff;
  border-color: rgba(238, 159, 13, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.clean-option-item.selected {
  background: #ffffff;
  border-color: #ee9f0d;
  box-shadow: 0 4px 15px -3px rgba(238, 159, 13, 0.2);
}

.option-label {
  font-family: "Rubik", serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #374151;
}

.clean-option-item.selected .option-label {
  color: #ee9f0d;
  font-weight: 600;
}

/* Radio Button */
.custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  position: relative;
}

.custom-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  background: #ee9f0d;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clean-option-item.selected .custom-radio {
  border-color: #ee9f0d;
}

.clean-option-item.selected .custom-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   SCROLL LOCK UTILITY (Pop-up Fix)
   ========================================= */

/* This class will be added to BODY via JS */
body.no-scroll {
  overflow: hidden !important; /* Disable Scroll */
  height: 100vh; /* Lock height */
  touch-action: none; /* Disable touch scroll on mobile */
  padding-right: 0px; /* Prevent layout shift if needed */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .clean-modal-box {
    width: 95%;
    padding: 25px 20px;
  }
}

/* =========================================
   MOBILE RESPONSIVE ADJUSTMENT (Smaller & Cleaner)
   ========================================= */

@media (max-width: 480px) {
  .clean-modal-box {
    /* ১. প্রস্থ কমিয়ে দেওয়া হয়েছে যাতে চারপাশে ফাঁকা থাকে */
    width: 85% !important; 
    max-width: 330px !important; /* মোবাইলে এর চেয়ে বড় হবে না */
    
    /* ২. প্যাডিং এবং বর্ডার রেডিয়াস একটু কমিয়ে সামঞ্জস্য করা হয়েছে */
    padding: 25px 20px !important;
    border-radius: 20px !important;
  }

  /* হেডার টেক্সট একটু ছোট করা হয়েছে যাতে বক্সের সাথে মানানসই হয় */
  .clean-modal-header h3 {
    font-size: 1.25rem !important;
    margin-bottom: 4px !important;
  }

  /* অপশনগুলোর প্যাডিং একটু কমানো হয়েছে */
  .clean-option-item {
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }
  
  .option-label {
    font-size: 0.95rem !important;
  }
}