/* Subscription and Payment Styles */

/* Pricing Cards */
.pricing-card {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border-color: var(--bs-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card .card-header {
  background-color: transparent;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 1rem;
}

.pricing-card.popular .card-header {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  border-bottom-color: var(--bs-primary);
}

.pricing-card-title {
  font-size: 2.5rem;
  margin: 1.5rem 0;
}

/* Ribbon for popular plan */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 8px 0;
  background-color: var(--bs-primary);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  transform: rotate(45deg);
  right: -45px;
  top: 45px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Billing toggle */
.billing-toggle {
  margin: 2rem 0;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Payment form */
.card-element-container {
  padding: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: white;
}

.payment-method-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.payment-method-options .btn {
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  background-color: white;
  transition: all 0.2s ease;
}

.payment-method-options .btn:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.payment-method-options img {
  height: 30px;
  width: auto;
}

/* Payment success page */
.payment-success-icon {
  margin: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .pricing-card-title {
    font-size: 2rem;
  }
  
  .payment-method-options {
    flex-wrap: wrap;
  }
}

/* Custom form styling for payment */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Card details section */
.card-details-row {
  display: flex;
  gap: 0.5rem;
}

.card-details-row .form-control {
  flex: 1;
}

/* Subscription management section */
.subscription-info-card {
  border-left: 4px solid var(--bs-primary);
}

.subscription-status-active {
  color: #198754;
}

.subscription-status-inactive {
  color: #dc3545;
}

.subscription-status-trial {
  color: #fd7e14;
}

/* FAQ section */
.accordion-button:not(.collapsed) {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
