* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
  min-height: 100vh;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Header Section */
.header {
  background: linear-gradient(135deg, #FFB84D 0%, #FF9500 100%);
  height: 340px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
      radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px, 70px 70px;
}

.back-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: #666;
  z-index: 10;
  cursor: pointer;
}

.hero-image {
  position: static;
  width: 100%;
  height: 190px;
  transform: none;
  z-index: 5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: top;
  border: none;
  display: block;
}

/* Content Section */
.content {
  background: white;
  border-radius: 40px 40px 0 0;
  margin-top: -220px;
  padding: 20px 20px 30px;
  position: relative;
  z-index: 10;
  min-height: 650px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      linear-gradient(45deg, transparent 49%, rgba(240, 240, 240, 0.3) 50%, transparent 51%),
      linear-gradient(-45deg, transparent 49%, rgba(240, 240, 240, 0.3) 50%, transparent 51%);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 42px;
  letter-spacing: -1%;
  text-align: center;
  margin-bottom: 8px;
  color: #222;
}

.servicename {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -1%;
  text-align: center;
  margin-bottom: 8px;
  color: #222;
}

.subtitle {
  text-align: center;
  color: #222;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  color: #222;
  margin-top: 0;
}

/* Pricing Cards */
.pricing-container {
  display: flex;
  gap: 18px;

  justify-content: center;
  align-items: flex-end;
  padding: 0 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: #111;
  border-radius: 22px;
  text-align: center;
  color: white;
  position: relative;
  border: 3px solid #FFB84D;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 142.5px;
  min-width: 114px;
  height: 190px;
  padding: 12px 6px 10px 6px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.pricing-card.selected {
  border-color: #4CAF50;
  background: #1A1A1A;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
  width: 180.5px;
  min-width: 152px;
  height: 210px;
  padding: 16px 6px 12px 6px;
  z-index: 2;
  transform: scale(1.08);
}

.plan-header {
  background: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.selected .plan-header {
  background: #222;
}

.checkmark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 16px;
  font-weight: bold;
  background: #FFB84D;
  border: 2px solid #FFB84D;
  color: #111;
}

.pricing-card.selected .checkmark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #B2FFB2 0%, #00E676 100%);
  color: #111;
  font-size: 22px;
  border: 3px solid #4CAF50;
  margin-bottom: 12px;
}

.checkmark.yellow {
  background: #FFB84D;
  border: 2px solid #FFB84D;
  color: #111;
}

.checkmark.green {
  background: #FFB84D;
  border: 2px solid #FFB84D;
  color: #111;
}

.duration {
  font-size: 12px;
  margin-bottom: 4px;
  color: #fff;
  font-weight: 400;
}

.price {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.choose-btn, .selected-btn {
  background: #FFB84D;
  color: #111;
  border: none;
  padding: 6px 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  width: 90%;
  margin-top: 4px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 0;
}

.selected-btn {
  background: #4CAF50;
  color: #fff;
}

.choose-btn:hover {
  background: #FF9500;
}

/* Subscribe Button */
.subscribe-btn {
  background: linear-gradient(90deg, #F9C441 0%, #E9A825 100%);
  color: #fff;
  border: none;
  padding: 18px 0;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  margin-bottom: 36px;
  letter-spacing: 1px;
  margin-top: 18px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.4);
}

/* Phone Number Section Styles */
.phone-section {
  margin-bottom: 30px;
  text-align: center;
  padding: 20px 0;
}

.phone-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.phone-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.phone-input-container {
  margin-bottom: 15px;
}

.phone-input {
  width: 90%;
  padding: 15px 20px;
  border: 3px solid #FFB84D;
  border-radius: 16px;
  font-size: 24px;
  background: white;
  outline: none;
  color: #333;
  text-align: left;
  transition: border-color 0.2s;
}

.phone-input:focus {
  border-color: #FF9500;
}

.verify-button {
  width: 90%;
  background: #FFB84D;
  border: none;
  border-radius: 25px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s;
}

.verify-button:hover {
  background: #FF9500;
}

/* SID-SD Specific Styles */
.your-selection-label {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 18px;
}

.selected-plan-card {
  background: #111;
  border-radius: 22px;
  border: 2px solid #FFB84D;
  width: 140px;
  margin: 0 auto 12px auto;
  padding: 14px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.selected-plan-card .plan-header {
  background: #222;
  color: #fff;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.selected-plan-card .checkmark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFB84D;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 14px;
}

.selected-plan-card .price {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.change-pack-link {
  display: block;
  text-align: center;
  color: #FFB84D;
  font-weight: 700;
  font-size: 16px;
  margin: 10px 0 8px 0;
  text-decoration: underline;
  cursor: pointer;
}

.confirm-message {
  text-align: center;
  color: #222;
  font-size: 15px;
  margin-bottom: 18px;
}

.confirm-message .phone {
  font-weight: 700;
  color: #111;
}

.confirm-btn {
  background: linear-gradient(90deg, #F9C441 0%, #E9A825 100%);
  color: #fff;
  border: none;
  padding: 18px 0;
  border-radius: 999px;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  margin-bottom: 24px;
  letter-spacing: 1px;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
  box-shadow: none;
}

.auto-renewal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auto-renewal-label {
  font-size: 18px;
  color: #222;
  font-weight: 500;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

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

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

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  transition: .4s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.switch input:checked + .slider {
  background: #4CAF50;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 28px;
}

/* Thank You Page Specific Styles */
.checkmark-circle {
  width: 64px;
  height: 64px;
  background: #F9C441;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 16px auto;
}

.checkmark-circle .checkmark {
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
}

.processing-message {
  text-align: center;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 32px;
}

.content-body {
  min-height: 230px;
}

.footer-spacer {
  flex: 1 1 auto;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 20px;
}

.terms-link {
  color: #333;
  text-decoration: underline;
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
}

.mtn-logo {
  display: inline-block;
  margin-bottom: 10px;
}

.copyright {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* ===== SPINNER AND LOADING STATES ===== */

/* Full-page spinner overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spinner-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Main spinner */
.spinner-main {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF9500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading text */
.spinner-text {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

.spinner-subtext {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Content loading states */
.content.loading {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.content.ready {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Button loading states */
.subscribe-btn.loading {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.subscribe-btn.ready {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Error state */
.spinner-error {
  color: #e74c3c;
  font-weight: 500;
}

/* Fallback for older browsers */
@supports not (animation: spin) {
  .spinner-main {
    background: linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%, #f3f3f3),
                linear-gradient(45deg, #f3f3f3 25%, transparent 25%, transparent 75%, #f3f3f3 75%, #f3f3f3);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: none;
  }
}

/* Responsive Design - Keep horizontal layout on all screen sizes */
@media (max-width: 480px) {
  .container {
      max-width: 100%;
  }
  
  .pricing-container {
      gap: 6px;
      padding: 0 5px;
  }
  
  .pricing-card.small {
      flex: 0 0 26%;
  }
  
  .pricing-card.large {
      flex: 0 0 32%;
  }
  
  .content {
      padding: 30px 15px 20px;
  }
  
  .servicename {
      font-size: 22px;
      line-height: 1.1;
      margin-bottom: 12px;
  }
  
  .subtitle {
      font-size: 16px;
      margin-bottom: 20px;
      line-height: 1.3;
  }
  
  h2 {
      font-size: 20px;
      margin-bottom: 24px;
  }
  
  .phone-title {
      font-size: 16px;
      margin-bottom: 6px;
  }
  
  .phone-subtitle {
      font-size: 13px;
      margin-bottom: 18px;
  }
  
  .phone-input {
      font-size: 20px;
      padding: 12px 16px;
  }
  
  .verify-button {
      font-size: 15px;
      padding: 12px;
  }
  
  .your-selection-label {
      font-size: 18px;
      margin-bottom: 16px;
  }
  
  .selected-plan-card {
      width: 140px;
      min-width: 0;
      margin: 0 auto 16px auto;
  }
  
  .subscribe-btn {
      font-size: 22px;
      padding: 14px 0;
  }
  
  .confirm-btn {
      font-size: 22px;
      padding: 14px 0;
  }
  
  .confirm-message {
      font-size: 14px;
      margin-bottom: 16px;
  }
  
  .auto-renewal-label {
      font-size: 16px;
  }
  
  .checkmark-circle {
      width: 56px;
      height: 56px;
      margin: 6px auto 14px auto;
  }
  
  .checkmark-circle .checkmark {
      font-size: 32px;
  }
  
  .processing-message {
      font-size: 16px;
      margin-bottom: 28px;
  }
  
  .content-body {
      min-height: 200px;
  }
}