/* Modern Checkout Page Styles - Premium UI/UX */

.checkout-page-modern {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding: 0;
  margin: 0;
  position: relative;
}

.checkout-container-modern {
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Back Button */
.back-to-plans-btn {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 12px;
  color: #369B39;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.back-to-plans-btn:hover {
  background: white;
  color: #2d7d2e;
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(54, 155, 57, 0.2);
}

.back-to-plans-btn svg {
  transition: transform 0.3s ease;
}

.back-to-plans-btn:hover svg {
  transform: translateX(-3px);
}

/* Main Grid Layout */
.checkout-grid-modern {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100vh;
  gap: 0;
}

/* Section Title */
.checkout-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

/* ========================================
   ORDER SUMMARY SECTION (Left Side)
   ======================================== */
.checkout-summary-modern {
  background: linear-gradient(160deg, #369B39 0%, #2d8530 50%, #246824 100%);
  padding: 80px 60px;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.checkout-summary-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.checkout-summary-modern::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.checkout-summary-modern h2 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Summary Card */
.summary-card-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.summary-value {
  font-size: 17px;
  color: white;
  font-weight: 600;
}

/* Discount Item */
.discount-item {
  background: rgba(255, 255, 255, 0.15);
  margin: 12px -40px;
  padding: 16px 40px;
  border-bottom: none !important;
  border-radius: 0;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.discount-value {
  color: #ffffff !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
}

/* Summary Divider */
.summary-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  margin: 24px 0;
}

/* Total Section */
.summary-total {
  padding-top: 24px;
  margin-top: 12px;
  border-top: none !important;
  border-bottom: none !important;
}

.summary-total .summary-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.total-amount,
.summary-total .summary-value,
.summary-card-modern .summary-total .total-amount,
.checkout-summary-modern .total-amount,
.checkout-summary-modern .summary-total .summary-value {
  font-size: 48px !important;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: unset !important;
}

.summary-total .total-amount,
span.total-amount,
.checkout-page-modern .total-amount {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}

/* Recurring Notice */
.recurring-notice {
  margin-top: 32px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.recurring-notice svg {
  flex-shrink: 0;
  color: white;
  opacity: 0.9;
}

/* ========================================
   PAYMENT SECTION (Right Side)
   ======================================== */
.checkout-payment-modern {
  background: #ffffff;
  padding: 80px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.checkout-payment-modern .checkout-section-title {
  margin-bottom: 32px;
  color: #1f2937;
  font-size: 26px;
  font-weight: 700;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

/* Payment Method Button */
.payment-method-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: #fafbfc;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.payment-method-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #369B39;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.payment-method-btn:hover {
  border-color: #369B39;
  background: #f8fdf8;
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(54, 155, 57, 0.12);
}

.payment-method-btn:hover::before {
  transform: scaleY(1);
}

/* Primary (Selected) Payment Method */
.payment-method-btn.primary {
  border-color: #369B39;
  background: linear-gradient(135deg, #369B39 0%, #2d8530 100%);
  box-shadow: 0 8px 24px rgba(54, 155, 57, 0.25);
}

.payment-method-btn.primary::before {
  display: none;
}

.payment-method-btn.primary .payment-method-name {
  color: white;
}

.payment-method-btn.primary .payment-method-desc {
  color: rgba(255, 255, 255, 0.85);
}

.payment-method-btn.primary svg {
  color: white;
}

.payment-method-btn.primary:hover {
  background: linear-gradient(135deg, #2d8530 0%, #246824 100%);
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 12px 32px rgba(54, 155, 57, 0.35);
}

/* Payment Method Icon */
.payment-method-icon {
  width: 56px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.payment-method-btn.primary .payment-method-icon {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.payment-method-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Payment Method Details */
.payment-method-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-method-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.01em;
}

.payment-method-desc {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* Arrow Icon */
.payment-method-btn svg:last-child {
  width: 22px;
  height: 22px;
  color: #cbd5e0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.payment-method-btn:hover svg:last-child {
  color: #369B39;
  transform: translateX(4px);
}

.payment-method-btn.primary svg:last-child {
  color: white;
}

/* No Gateway Message */
.no-gateway-message {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  width: 100%;
  max-width: 480px;
  background: #fafbfc;
  border-radius: 20px;
  border: 2px dashed #e5e7eb;
}

.no-gateway-message svg {
  color: #cbd5e0;
  margin-bottom: 20px;
}

.no-gateway-message p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* ========================================
   SECURITY BADGES
   ======================================== */
.checkout-security-badges {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  max-width: 480px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.security-badge svg {
  color: #369B39;
  width: 20px;
  height: 20px;
}

/* Accepted Cards Badges */
.accepted-cards-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid #e5e7eb;
}

.accepted-cards-badges .card-logo {
  height: 28px;
  width: auto;
}

.accepted-cards-badges .visa-logo {
  height: 24px;
  width: 50px;
}

.accepted-cards-badges .mastercard-logo {
  height: 28px;
  width: 40px;
}

/* ========================================
   PAYMENT FORM CONTAINER
   ======================================== */
.payment-form-container {
  width: 100%;
  max-width: 480px;
  margin-top: 0;
  padding: 36px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Back to payment methods button inside form */
.payment-form-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.payment-form-back-btn:hover {
  color: #369B39;
}

.payment-form-back-btn svg {
  transition: transform 0.2s ease;
}

.payment-form-back-btn:hover svg {
  transform: translateX(-3px);
}

/* Form Controls */
.payment-form-container .form-control,
.payment-form-container input[type="text"],
.payment-form-container input[type="email"],
.payment-form-container input[type="number"],
.payment-form-container select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  color: #1a202c;
  background: #fafbfc;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.payment-form-container .form-control:focus,
.payment-form-container input:focus,
.payment-form-container select:focus {
  outline: none;
  border-color: #369B39;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(54, 155, 57, 0.1);
}

.payment-form-container label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payment-form-container button[type="submit"],
.payment-form-container .btn-primary {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #369B39 0%, #2d8530 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(54, 155, 57, 0.25);
}

.payment-form-container button[type="submit"]:hover,
.payment-form-container .btn-primary:hover {
  background: linear-gradient(135deg, #2d8530 0%, #246824 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54, 155, 57, 0.35);
}

.payment-form-container .form-group {
  margin-bottom: 20px;
}

.payment-form-container .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-form-container .error-message {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-form-container ::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ========================================
   AUTHORIZE.NET FORM STYLES
   ======================================== */
.authorizenet-form-wrapper {
  width: 100%;
  max-width: 480px;
}

.authorizenet-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.authorizenet-error svg {
  flex-shrink: 0;
  color: #dc2626;
}

.authorizenet-form {
  width: 100%;
}

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

.authorizenet-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151 !important;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.authorizenet-form input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 17px;
  color: #1f2937;
  background: #fafbfc;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  letter-spacing: 0.05em;
}

.authorizenet-form input:focus {
  outline: none;
  border-color: #369B39;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(54, 155, 57, 0.12);
}

.authorizenet-form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: normal;
}

.authorizenet-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.authorizenet-form .pay-button {
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, #369B39 0%, #2d8530 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(54, 155, 57, 0.3);
}

.authorizenet-form .pay-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2d8530 0%, #246824 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(54, 155, 57, 0.4);
}

.authorizenet-form .pay-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.authorizenet-form .pay-button svg {
  flex-shrink: 0;
}

.authorizenet-form .pay-button .spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.authorizenet-form .secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 12px;
  font-size: 14px;
  color: #166534;
  font-weight: 600;
  border: 1px solid rgba(54, 155, 57, 0.2);
}

.authorizenet-form .secure-notice svg {
  color: #369B39;
  flex-shrink: 0;
}

/* Card Number Input with Icon */
.card-number-wrapper {
  position: relative;
}

.card-number-wrapper input {
  padding-right: 60px;
}

.card-type-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 24px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .checkout-summary-modern,
  .checkout-payment-modern {
    padding: 60px 50px;
  }
}

@media (max-width: 992px) {
  .checkout-grid-modern {
    grid-template-columns: 1fr;
  }

  .checkout-summary-modern {
    min-height: auto;
    padding: 100px 40px 60px;
    order: 1;
  }

  .checkout-payment-modern {
    min-height: auto;
    padding: 60px 40px;
    order: 2;
  }

  .back-to-plans-btn {
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
  }

  .payment-methods-grid,
  .payment-form-container,
  .checkout-security-badges {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .checkout-summary-modern {
    padding: 90px 30px 50px;
  }

  .checkout-payment-modern {
    padding: 50px 30px;
  }

  .summary-card-modern {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .discount-item {
    margin: 12px -24px;
    padding: 14px 24px;
  }

  .checkout-section-title {
    font-size: 22px;
  }

  .total-amount {
    font-size: 36px !important;
  }

  .payment-method-btn {
    padding: 18px 20px;
    gap: 14px;
  }

  .payment-method-icon {
    width: 48px;
    height: 34px;
  }

  .checkout-security-badges {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .back-to-plans-btn {
    top: 15px;
    left: 15px;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
  }

  .payment-form-container {
    padding: 28px 24px;
    border-radius: 16px;
  }

  .authorizenet-form .form-row-3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .authorizenet-form .form-row-3 .form-group:last-child {
    grid-column: span 2;
  }

  .authorizenet-form input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .authorizenet-form .pay-button {
    padding: 16px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .checkout-summary-modern {
    padding: 85px 24px 40px;
  }

  .checkout-payment-modern {
    padding: 40px 24px;
  }

  .summary-card-modern {
    padding: 24px 20px;
  }

  .discount-item {
    margin: 10px -20px;
    padding: 12px 20px;
  }

  .summary-item {
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .total-amount {
    font-size: 32px !important;
  }

  .checkout-summary-modern h2 {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .payment-method-btn {
    padding: 16px;
  }

  .payment-method-name {
    font-size: 15px;
  }

  .payment-method-desc {
    font-size: 12px;
  }

  .payment-form-container {
    padding: 24px 20px;
  }

  .authorizenet-form .form-row-3 {
    grid-template-columns: 1fr;
  }

  .authorizenet-form .form-row-3 .form-group:last-child {
    grid-column: span 1;
  }
}

/* ========================================
   STRIPE FORM INTEGRATION
   ======================================== */
.StripeElement {
  padding: 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfc;
  transition: all 0.2s ease;
}

.StripeElement--focus {
  border-color: #369B39;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(54, 155, 57, 0.12);
}

.StripeElement--invalid {
  border-color: #dc2626;
}

/* ========================================
   BANK TRANSFER FORM
   ======================================== */
.bank-transfer-info {
  background: #f0fdf4;
  border: 1px solid rgba(54, 155, 57, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.bank-transfer-info h4 {
  color: #166534;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-transfer-info p {
  color: #15803d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   LOADING STATE
   ======================================== */
.checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.checkout-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #369B39;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========================================
   SUCCESS/ERROR STATES
   ======================================== */
.checkout-success {
  text-align: center;
  padding: 60px 40px;
}

.checkout-success svg {
  width: 80px;
  height: 80px;
  color: #369B39;
  margin-bottom: 24px;
}

.checkout-success h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.checkout-success p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

/* ========================================
   ACCEPTED CARDS DISPLAY
   ======================================== */
.accepted-cards {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
}

.accepted-cards-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.accepted-cards-icons {
  display: flex;
  gap: 8px;
}

.accepted-cards-icons img {
  height: 24px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.accepted-cards-icons img:hover {
  opacity: 1;
}

/* ========================================
   CHECKOUT LOGO
   ======================================== */
.checkout-logo {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.checkout-logo img {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

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

.checkout-summary-modern,
.checkout-payment-modern {
  animation: fadeInUp 0.5s ease-out;
}

.checkout-payment-modern {
  animation-delay: 0.1s;
}

/* Pulse animation for pay button */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(54, 155, 57, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(54, 155, 57, 0.5);
  }
}

.authorizenet-form .pay-button:not(:disabled) {
  animation: pulse 2s ease-in-out infinite;
}

.authorizenet-form .pay-button:hover:not(:disabled) {
  animation: none;
}

/* ========================================
   CHECKOUT HEADER (for non logged in users)
   ======================================== */
.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}

.checkout-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.checkout-header p {
  font-size: 16px;
  color: #6b7280;
}

/* ========================================
   PROGRESS STEPS (Optional)
   ======================================== */
.checkout-progress {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
}

.progress-step.active {
  color: #369B39;
}

.progress-step.completed {
  color: #369B39;
}

.progress-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.progress-step.active .progress-step-number {
  background: #369B39;
  color: white;
}

.progress-step.completed .progress-step-number {
  background: #369B39;
  color: white;
}

/* ========================================
   TERMS AND CONDITIONS
   ======================================== */
.checkout-terms {
  margin-top: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

.checkout-terms a {
  color: #369B39;
  text-decoration: none;
  font-weight: 600;
}

.checkout-terms a:hover {
  text-decoration: underline;
}

/* ========================================
   PROMO CODE SECTION IN CHECKOUT
   ======================================== */
.checkout-promo-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.promo-toggle-btn:hover {
  color: white;
}

.promo-input-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.promo-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 14px;
}

.promo-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.promo-input-wrapper input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.promo-apply-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-apply-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   GUARANTEE BADGE
   ======================================== */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guarantee-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guarantee-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.guarantee-text h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.guarantee-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
