/* Enhanced Modal Styles with Toggle */
.plan-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  /* overflow-y: auto; */
  padding: 20px;
  box-sizing: border-box;
}

.plan-modal-overlay.active {
  display: flex;
}

.plan-modal {
  border-radius: 12px;
  background: var(--Grey-50, #EFF2F6);
  max-width: 958px;
  width: 100%;
  height: 742px;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.plan-modal-header {
  align-items: center;
  color: var(--Grey-800, #3C4654);
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  padding-top: 32px;
}


/* Billing Toggle */
.billing-toggle-container {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.billing-toggle {
  display: inline-flex;
  border-radius: 22px;
  border: 1px solid #128292;
  background: #FFF;
  padding: 4px;
  gap: 4px;
}

.billing-option {
  padding: 0px 22px;
  width: 108px;
  height: 30px;
  color: #66707D;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  border: none;
  background: transparent;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.2s;
}

.billing-option.active {
  background: #128292;
  color: #FFF;
  box-shadow: 0 2px 8px rgba(18, 130, 146, 0.2);
}

.billing-option:hover:not(.active) {
  color: #128292;
  background: rgba(18, 130, 146, 0.1);
}

/* Plan Cards Container */
.plan-modal-body {
  padding: 24px 32px 30px 32px;
  display: flex;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Plan Card */
.plan-card {
  width: 282px;
  height: 438px;  
  background: #FFF;
  border: 1px solid #DFE1E4;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.10);
  margin-top: 24px;
  box-sizing: border-box;
}

/* .plan-card:hover {
  border-color: #128292;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(18, 130, 146, 0.12);
} */

.plan-card.selected {
  border: 3px solid #128292;
  /* background: linear-gradient(135deg, #FFFFFF 0%, #F8FFFE 100%); */
  box-shadow: 0 8px 24px rgba(18, 130, 146, 0.15);
}

.plan-card.recommended {
  /* border-color: #F4AC21; */
  height: 460px; 
  margin-top: 0px;
  position: relative;
  overflow: hidden;
}


.recommended-badge {
  border-radius: 40px;
  background: #F16722;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 16px;
  width: fit-content;
  margin: auto;
  margin-top: 16px;
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px 16px 24px;
  /* margin-bottom: 24px; */
}

.plan-icon {
  width: 48px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* .plan-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
} */



/* Hover effect */
/* .plan-card:hover .plan-icon {
  transform: scale(1.05);
  transition: transform 0.2s ease;
} */

.plan-details {
  flex: 1;
}

.plan-title {
  font-size: 20px;
  font-weight: 700;
  line-height:  30px; 
  /* margin: 0 0 8px 0; */
}

.plan-card[data-plan-type="essentials"] .plan-title {
  color: #128292;
}

.plan-card[data-plan-type="pro"] .plan-title {
  color: #128292;
}

.plan-card[data-plan-type="elite"] .plan-title {
  color: #F16722;
}

.plan-price-container {
  margin-top: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0px;
}

.price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #3C4654;
  /* line-height:  30px; */
}

.price-period {
  font-size: 14px;
  font-weight: 400;
  color: #3C4654;
}

.plan-annual-note {
  font-size: 12px;
  color: #3C4654;
  font-weight: 400;
  /* margin-top: 4px; */
}

.plan-annual-note .plan-annual-note-amount {
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .plan-icon {
    width: 48px;
    height: 48px;
  }
  
  .plan-icon img {
    width: 28px;
    height: 28px;
  }
  
  .plan-title {
    font-size: 20px;
  }
  
  .price-amount {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .plan-card-header {
    gap: 12px;
  }
  
  .plan-icon {
    width: 44px;
    height: 44px;
  }
  
  .plan-icon img {
    width: 24px;
    height: 24px;
  }
  
  .plan-title {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .price-amount {
    font-size: 24px;
  }
  
  .price-period {
    font-size: 13px;
  }
}

.plan-include{
    font-size: 16px;
    font-weight: 700;
    color: #30343B;
    /* margin-bottom: 16px; */
    line-height: 24px;
    padding-left: 24px;
}

/* Plan Features */
.plan-features {
  list-style: none;
  padding:0px 24px;
  margin: 0;
  min-height: 320px;
}

.plan-features li {
  color: #3C4654;
  padding-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  position: relative;
}

.plan-features li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* .plan-features li span {
  padding-left: 8px;
} */

.plan-features li strong {
  color: #3C4654;
  padding-top: 12px;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}




/* .plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #128292;
  font-weight: bold;
  font-size: 16px;
} */

/* Plan Select Radio */
.plan-select {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #E9EDF2;
}

.plan-select input[type="radio"] {
  display: none;
}

.plan-select label {
  display: block;
  text-align: center;
  padding: 14px 24px;
  background: #F3F5F8;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  color: #3C4654;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
}

.plan-card.selected .plan-select label,
.plan-select input[type="radio"]:checked + label {
  background: #128292;
  color: white;
  box-shadow: 0 4px 12px rgba(18, 130, 146, 0.3);
}

.plan-select label:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

/* Modal Footer */
.plan-modal-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 32px;
  border-radius: 0 0 32px 32px;
}

.btn-primary {
  background: #128292;
  color: white;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  padding: 0px 20px;
  height: 44px;
}

.btn-primary:hover {
  opacity: 1.2;
  box-shadow: 0 4px 12px rgba(18, 130, 146, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #128292;
  padding: 0px 20px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
}


.btn-secondary:hover {
  opacity: 1.2;
  color: #128292;
}

/* Adjust card height for consistency */
.plan-features {
  min-height: 320px;
}

/* Responsive for tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .plan-modal-body {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px;
  }
  
  .plan-features {
    min-height: 380px;
  }
  
  .plan-title {
    font-size: 24px;
  }
  
  .price-amount {
    font-size: 36px;
  }
  
  .plan-features li {
    font-size: 12px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .plan-modal-body {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  
  .plan-modal-header {
    padding: 20px 24px;
  }
  
  .plan-modal-header h3 {
    font-size: 24px;
  }
  
  .billing-toggle-container {
    padding: 24px 24px 0 24px;
  }
  
  .billing-option {
    padding: 10px 28px;
    font-size: 14px;
  }
  
  .plan-card {
    padding: 24px;
  }
  
  .plan-title {
    font-size: 24px;
  }
  
  .price-amount {
    font-size: 36px;
  }
  
  .plan-features {
    min-height: auto;
  }
  
  .plan-features li {
    font-size: 13px;
    padding: 8px 0 8px 28px;
  }
}