/* Plan Cards */

.sms-membership-form {
  max-width: 100%;
  width: 800px;
  margin: 0 auto;
  /* padding: 2rem; */
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0px;
}

/* Membership Level Selection */
.membership-levels {
  display: flex;
  gap: 1rem;
  justify-content: center;
  /* margin-bottom: 2rem; */
  padding-bottom: 2rem;
}

.level-option {
  position: relative;
  cursor: pointer;
  flex: 1;
}

.level-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.level-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: 1px solid #1c4488;
  background: #fff;
  color: #2d2330;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.level-btn .plan-price {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #1c4488;
  font-weight: 900;
}

.level-option input[type="radio"]:checked + .level-btn {
  background: #1c4488;
  color: #fff;
}

.level-option input[type="radio"]:checked + .level-btn .plan-price {
  color: #fff;
}

/* Plan Info */
.plan-description,
.pricing-info {
  text-align: center;
  margin: 1.5rem 0;
}

.base-price,
.additional-price {
  color: #e31837;
  font-weight: 600;
}

.base-price {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Form Fields */
.section-title {
  color: #e31837;
  margin: 2rem 0 1.5rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.required {
  color: #e31837;
}

/* Order Summary */
.order-summary {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 8px;
}

.order-summary h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #ddd;
  font-weight: 600;
  font-size: 1.1rem;
}

.summary-label {
  color: #666;
}

.summary-value {
  color: #333;
  font-weight: 500;
}

/* Payment Section */
.payment-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.payment-section h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

#payment-element {
  margin-top: 1rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #e31837;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 2rem;
  cursor: pointer;
}

.submit-btn:hover {
  background: #c41330;
}

/* Error and Success Messages */
.error-message,
.success-message {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.error-message {
  background: #fee;
  color: #e31837;
  border: 1px solid #e31837;
}

.success-message {
  background: #efe;
  color: #00a32a;
  border: 1px solid #00a32a;
}

.hidden {
  display: none;
}

/* Loading State */
button[type="submit"]:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .membership-levels {
    flex-direction: column;
    align-items: center;
  }

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

  .level-btn {
    width: 100%;
    min-width: 200px;
  }
}

/* Add these styles to your existing CSS */
.user-check-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.user-check-message.success {
  color: #00a32a;
}

.user-check-message.error {
  color: #e31837;
}

.platinum-only.hidden {
  display: none;
}

/* Form Steps */
.form-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
}

.step:last-child::after {
  display: none;
}

.step.active {
  color: #e31837;
}

.step.completed {
  color: #00a32a;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step.active .step-number {
  background: #e31837;
  border-color: #e31837;
  color: #fff;
}

.step.completed .step-number {
  background: #00a32a;
  border-color: #00a32a;
  color: #fff;
}

.step-title {
  font-weight: 500;
}

/* Form Steps Content */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.form-step[data-step="1"] .form-actions {
  justify-content: flex-end;
}

.prev-step {
  background: #1c4488 !important;
  border: 1px solid #ddd;
  box-shadow: none !important;
}

.prev-step:hover {
  background: #eee;
}

/* Thank You Step */
.thank-you-message {
  text-align: center;
  padding: 2rem;
  /* max-width: 600px; */
  margin: 0 auto;
}

.thank-you-icon {
  margin-bottom: 1.5rem;
}

.thank-you-icon svg {
  width: 64px;
  height: 64px;
  color: #00a32a;
}

.thank-you-message h2 {
  color: #00a32a;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.confirmation-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.membership-details {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.membership-details h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #666;
  font-weight: 500;
}

.detail-value {
  color: #333;
  font-weight: 600;
}

.next-steps {
  text-align: left;
  margin: 2rem 0;
}

.next-steps h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.next-steps li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.next-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00a32a;
  font-weight: bold;
}

/* Membership Card */
.membership-card {
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 0;
  /* max-width: 480px; */
  margin: 2rem auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, #e31837 0%, #c41330 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.card-header .logo svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.plan-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.5rem;
}

.member-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.member-name,
.member-id {
  margin-bottom: 0.75rem;
}

.member-name label,
.member-id label,
.equipment-item label,
.validity label {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-name span,
.member-id span,
.equipment-item span {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
}

.equipment-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.validity span {
  font-weight: 500;
  color: #333;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: #e8f7e9;
  color: #00a32a;
}

/* Plan-specific styles */
.membership-card[data-plan="bronze"] .card-header {
  background: linear-gradient(135deg, #cd7f32 0%, #b36a1d 100%);
}

.membership-card[data-plan="silver"] .card-header {
  background: linear-gradient(135deg, #c0c0c0 0%, #a7a7a7 100%);
}

.membership-card[data-plan="platinum"] .card-header {
  background: linear-gradient(135deg, #e5e4e2 0%, #b8b7b5 100%);
}

/* Add a subtle pattern overlay */
.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  pointer-events: none;
}

/* Add shine effect */
.membership-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  animation: shine 5s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Active Membership Notice */
.active-membership-notice {
  background: #2d2330;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  border: 1px solid var(--sms-border);
  padding: 20px 20px;
  border-radius: 12px;
  gap: 25px;
}

.active-membership-notice .notice-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--sms-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-membership-notice .notice-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.active-membership-notice .notice-content {
  flex-grow: 1;
}

.active-membership-notice h4 {
  color: #ded9df;
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
}

.active-membership-notice p {
  color: #988c9a;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.active-membership-notice .button-primary {
  display: inline-block;
  margin-top: var(--sms-spacing);
}

@media (max-width: 768px) {
  .active-membership-notice {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Benefits Styles */
.plan-benefits-container {
  margin: 1rem 0;
  padding: 1.25rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 2rem;
}

.membership-benefits {
  transition: all 0.3s ease;
}

.benefits-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.previous-benefits {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  color: #4f4b51;
  margin-bottom: -0.25rem;
}

.previous-plan-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.previous-plan-label svg {
  width: 16px;
  height: 16px;
  color: #00a32a;
}

.plus-divider {
  font-size: 1.1rem;
  font-weight: 500;
  color: #00a32a;
}

.current-benefits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.5rem;
  color: #736d75;
  line-height: 1.4;
}

.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
}

.benefit-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.benefit-separator {
  margin: 0 0.5rem;
  color: #da2128;
  font-size: 0.95rem;
  line-height: 1;
}

/* Plan-specific styling */
.membership-benefits[data-plan="bronze"] .benefit-item svg {
  color: #cd7f32;
}

.membership-benefits[data-plan="silver"] .benefit-item svg {
  color: #c0c0c0;
}

.membership-benefits[data-plan="platinum"] .benefit-item svg {
  color: #e5e4e2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .plan-benefits-container {
    margin: 1rem 0;
    padding: 1rem;
  }

  .current-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .benefit-separator {
    display: none;
  }

  .benefit-item {
    background: #f8f8f8;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
  }
}

/* Benefits Skeleton Loader */
.benefits-skeleton {
  animation: fade 1.5s ease-in-out infinite;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-previous {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skeleton-label {
  width: 120px;
  height: 20px;
  background: #eee;
  border-radius: 4px;
}

.skeleton-plus {
  width: 20px;
  height: 20px;
  background: #eee;
  border-radius: 4px;
}

.skeleton-current {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.skeleton-item {
  height: 20px;
  background: #eee;
  border-radius: 4px;
  flex: 1;
  min-width: 150px;
}

@keyframes fade {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Hide elements */
.hidden {
  display: none !important;
}

/* Benefits Error State */
.benefits-error {
  text-align: center;
  padding: 1rem;
  color: #e31837;
  background: #fee;
  border-radius: 4px;
  margin: 1rem 0;
}

.benefits-error p {
  margin: 0;
  font-size: 0.9rem;
}
