/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #f3f7ff, #e9f1ff);
  color: #0b2042;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
  text-align: center;
  padding: 40px 20px;
  max-height: 1100px;
  overflow-y: auto;
}

.pricing-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-section h2 span {
  color: #ff7a00;
}

.pricing-section p.subtitle {
  color: #1c2950;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Pricing Cards Layout */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.pricing-card {
  position: relative; /* important so .tag positions relative to this */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* optional if tag overlaps edge */
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.pricing-card .header {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 20px 0;
  margin-bottom: 20px;
}

.pricing-card .tag {

   position: absolute;
  top: 0;
  left: 0;
  background: #0094ff;
  color: #fff;
  border-radius: 0 0 8px 0; /* rounded only on bottom-right */
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;;
}

/* Card Content */
.pricing-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.pricing-card .duration {
  font-size: 14px;
  color: #555;
}

.pricing-card .price {
  font-size: 24px;
  font-weight: 600;
  color: #ff7a00;
  margin: 10px 0;
}

.pricing-card .save {
  background: #fff176;
  display: inline-block;
  font-weight: 600;
  padding: 3px 8px;
  font-size: 14px;
  border-radius: 3px;
}

/* Features List */
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  color: #102a43;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-card ul li {
  margin-left: 10px;
}

.pricing-card .highlight {
  font-weight: 700;
  color: #001b48;
}

/* CTA Button */
.pricing-card .btn {
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 30px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 80%;
}

.pricing-card .btn:hover {
  background: #ff8533;
}

.pricing-card .btn.loading {
  background: #95a5a6;
  cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Layout */
@media (max-width: 992px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Additional Buttons */
.additional-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.secondary-button {
  background: #fff;
  color: #3498db;
  border: 2px solid #3498db;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #3498db;
  color: #fff;
}

/* Message Box */
#message {
  padding: 15px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  display: none;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Secure Notice */
.secure-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-top: 20px;
}

.secure-notice svg {
  margin-right: 8px;
}
