/* Subscription Page Styles */
:root {
  --accent: #007acc;
  --accent-hover: #0099ff;
  --accent-light: rgba(0, 122, 204, 0.1);
  --gradient-blue: linear-gradient(135deg, #0072ff, #00c6ff);
  --gradient-green: linear-gradient(135deg, #11998e, #38ef7d);
  --gradient-purple: linear-gradient(135deg, #654ea3, #eaafc8);
  --success: #2ecc71;
  --warning: #f39c12;
  --error: #e74c3c;
  --border: #ddd;
  --text: #333;
  --text-light: #777;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.subscription-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.subscription-header {
  text-align: center;
  margin-bottom: 60px;
}

.subscription-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--accent);
  background: linear-gradient(90deg, #007ACC, #00B4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subscription-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Payment Toggle */
.payment-selector {
  margin-bottom: 40px;
}

.payment-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(30px);
}

.discount-badge {
  background-color: #f39c12;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 5px;
}

/* Subscription Plans */
.subscription-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
}

.plan-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.plan-card.selected {
  border: 2px solid var(--accent);
  transform: scale(1.02);
}

.plan-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.plan-card.popular:hover {
  transform: translateY(-10px) scale(1.05);
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom-left-radius: 8px;
}

.plan-header {
  padding: 25px 20px 15px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.plan-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent);
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monthly-price, .yearly-price {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.monthly-price.active, .yearly-price.active {
  display: flex;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.period {
  font-size: 0.9rem;
  opacity: 0.7;
}

.plan-body {
  padding: 20px;
  flex-grow: 1;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.plan-features i {
  color: var(--success);
  margin-right: 10px;
  margin-top: 3px;
}

.plan-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.btn-subscribe {
  background: var(--gradient-blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 80%;
  cursor: pointer;
}

.btn-subscribe:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Payment Form */
.payment-info {
  max-width: 800px;
  margin: 0 auto 60px;
}

.payment-info h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
}

.payment-form-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.checkbox-group {
  margin-top: 10px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent-light);
}

.btn-success {
  background: var(--gradient-green);
  color: white;
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Payment Instructions */
.payment-instructions {
  text-align: center;
}

.payment-instructions h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.payment-qr {
  width: 250px;
  height: 250px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background-color: white;
}

.payment-details {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  text-align: left;
}

.bank-details {
  margin-bottom: 20px;
}

.bank-details p {
  margin-bottom: 10px;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid #3498db;
  color: #2980b9;
}

.alert i {
  margin-top: 3px;
}

/* FAQ Section */
.subscription-faq {
  max-width: 800px;
  margin: 0 auto 60px;
}

.subscription-faq h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  margin: 0;
  line-height: 1.6;
}

.faq-item.active .faq-question {
  background-color: #f0f0f0;
}

/* Toast Messages */
.message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.message {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.message-content {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-success .message-content {
  border-left: 4px solid var(--success);
}

.message-error .message-content {
  border-left: 4px solid var(--error);
}

.message i {
  font-size: 1.2rem;
}

.message-success i {
  color: var(--success);
}

.message-error i {
  color: var(--error);
}

.message-close {
  background: none;
  border: none;
  padding: 15px;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.message-close:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .subscription-plans {
    flex-direction: column;
    align-items: center;
  }
  
  .plan-card {
    width: 100%;
    max-width: 100%;
  }
  
  .plan-card.popular {
    transform: none;
  }
  
  .plan-card.popular:hover {
    transform: translateY(-10px);
  }
  
  .payment-form-container {
    padding: 20px;
  }
  
  .subscription-header h1 {
    font-size: 2rem;
  }
  
  .payment-toggle {
    flex-direction: column;
    gap: 10px;
  }
}
