/* ---- Global ---- */
body { background: #f8f9fa; }

/* ---- Header image ---- */
.header-image-wrapper {
  text-align: center;
  padding: 2rem 1rem 0;
}
.header-image {
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* ---- Page wrapper ---- */
.subscription-wrapper {
  min-height: 100vh;
}

/* ---- Form title ---- */
.form-title {
  font-weight: 700;
  color: #1a1a2e;
}

/* ---- Section headings ---- */
.section-heading {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #e9ecef;
}

/* ---- Price tier cards ---- */
.price-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.price-tier-card {
  cursor: pointer;
  position: relative;
  margin: 0;
}

.price-tier-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.price-tier-inner {
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all .2s ease;
  background: #fff;
  text-align: center;
}

.price-tier-radio:checked + .price-tier-inner {
  border-color: #4361ee;
  background: #f0f4ff;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, .15);
}

.price-tier-card:hover .price-tier-inner {
  border-color: #adb5bd;
}

.price-tier-name {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: .25rem;
}

.price-tier-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4361ee;
  margin-top: .5rem;
}

.price-tier-interval {
  font-size: .875rem;
  font-weight: 400;
}

/* ---- Coupon ---- */
.coupon-group .form-control { text-transform: uppercase; letter-spacing: .05em; }

/* ---- Order summary ---- */
.order-summary { border-color: #dee2e6 !important; }

/* ---- Payment element container ---- */
#payment-element {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

/* ---- Buttons ---- */
#continue-btn, #pay-btn {
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 10px;
  transition: all .2s;
}

/* ---- Checkboxes ---- */
.checkbox-detail-link { font-size: .85em; }

/* ---- Success page ---- */
.success-icon { animation: pop-in .4s ease; }
@keyframes pop-in {
  0% { transform: scale(.5); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .price-tier-grid { grid-template-columns: 1fr 1fr; }
  .price-tier-amount { font-size: 1.2rem; }
}
