/*
 * KeepMyBooking - Pricing page
 * Scoped to .pricing-page (guide-layout shell from guide.css)
 */

/* ── Section blocks ──────────────────────────────────────────────── */
.pricing-page .pricing-section {
  margin-bottom: 40px;
  padding-top: 8px;
}

.pricing-page .pricing-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.pricing-page .pricing-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  border: none;
  padding: 0;
  width: 100%;
}

.pricing-page .pricing-section-intro {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 16px 0 24px;
  line-height: 1.7;
}

.pricing-page .pricing-section-divider {
  border: none;
  border-top: 1px solid var(--bg-tertiary);
  margin: 12px 0 20px;
}

/* ── Info cards ──────────────────────────────────────────────────── */
.pricing-page .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-page .info-card {
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.pricing-page .info-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.pricing-page .info-card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-page .info-card-body strong {
  color: var(--text-primary);
}

/* ── Notices / callouts ──────────────────────────────────────────── */
.pricing-page .notice {
  border-radius: var(--radius-md);
  margin: 16px 0;
  border: 1px solid var(--bg-tertiary);
  border-left: 3px solid var(--primary);
  background: var(--bg-primary);
}

.pricing-page .notice-body {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-page .notice-body strong {
  color: var(--primary);
  font-weight: 600;
}

.pricing-page .notice.gold {
  border-left-color: #d97706;
  background: #fff8e1;
}

.pricing-page .notice.gold .notice-body {
  color: #5a4200;
}

.pricing-page .notice.gold .notice-body strong {
  color: #7a5200;
}

.pricing-page .notice.green {
  border-left-color: #1d7a4a;
  background: #eaf5ee;
}

.pricing-page .notice.green .notice-body {
  color: #065f46;
}

.pricing-page .notice.green .notice-body strong {
  color: #1d7a4a;
}

/* ── Pricing cards ───────────────────────────────────────────────── */
.pricing-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-page .pricing-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.pricing-page .pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-page .pricing-card.featured {
  border-color: rgba(75, 0, 130, 0.35);
  box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1), var(--shadow-md);
}

.pricing-page .featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #16a34a;
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
}

.pricing-page .card-header {
  padding: 24px 24px 0;
}

.pricing-page .card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-page .card-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.pricing-page .card-price-wrap {
  padding: 16px 24px;
  background: rgba(75, 0, 130, 0.05);
  border-top: 1px solid var(--bg-tertiary);
  border-bottom: 1px solid var(--bg-tertiary);
}

.pricing-page .card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-page .price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-page .price-currency {
  font-size: 18px;
  font-weight: 600;
  color: rgba(75, 0, 130, 0.65);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-page .price-period {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.pricing-page .price-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

.pricing-page .price-sub strong {
  color: var(--primary);
}

.pricing-page .card-features {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-page .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pricing-page .feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-page .feature-cross {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-page .feature-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-page .card-cta {
  padding: 16px 24px 24px;
}

.pricing-page .cta-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pricing-page .cta-primary {
  background: var(--primary);
  color: #fff;
}

.pricing-page .cta-primary:hover {
  background: var(--primary-light);
}

.pricing-page .cta-secondary {
  background: rgba(75, 0, 130, 0.06);
  color: var(--primary);
  border: 1.5px solid var(--bg-tertiary);
}

.pricing-page .cta-secondary:hover {
  background: rgba(75, 0, 130, 0.1);
  border-color: rgba(75, 0, 130, 0.25);
}

/* ── Tables ──────────────────────────────────────────────────────── */
.pricing-page .fee-table-wrap,
.pricing-page .compare-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pricing-page .fee-table,
.pricing-page .compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.pricing-page .fee-table th,
.pricing-page .compare-table th {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pricing-page .compare-table th {
  text-align: center;
  font-size: 12px;
}

.pricing-page .compare-table th:first-child {
  text-align: left;
  background: rgba(75, 0, 130, 0.85);
}

.pricing-page .fee-table th:last-child {
  text-align: right;
}

.pricing-page .fee-table td,
.pricing-page .compare-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
  vertical-align: middle;
}

.pricing-page .fee-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary);
}

.pricing-page .compare-table td {
  text-align: center;
}

.pricing-page .compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

.pricing-page .fee-table tr:last-child td,
.pricing-page .compare-table tr:last-child td {
  border-bottom: none;
}

.pricing-page .fee-table tr:nth-child(even) td,
.pricing-page .compare-table tr:nth-child(even) td {
  background: rgba(75, 0, 130, 0.03);
}

.pricing-page .fee-table .total-row td {
  background: rgba(75, 0, 130, 0.08);
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

.pricing-page .fee-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.pricing-page .check-yes {
  color: #16a34a;
  font-size: 16px;
  font-weight: 700;
}

.pricing-page .check-no {
  color: var(--text-tertiary);
  font-size: 16px;
}

/* ── Worked examples ─────────────────────────────────────────────── */
.pricing-page .example-box {
  background: var(--bg-primary);
  border: 1.5px solid rgba(75, 0, 130, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pricing-page .example-header {
  background: var(--primary);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-page .example-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.pricing-page .example-header-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: auto;
}

.pricing-page .example-row {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid var(--bg-tertiary);
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-page .example-row:last-child {
  border-bottom: none;
}

.pricing-page .example-row.highlight {
  background: rgba(75, 0, 130, 0.05);
}

.pricing-page .example-row.total {
  background: rgba(75, 0, 130, 0.08);
  border-top: 2px solid rgba(75, 0, 130, 0.2);
}

.pricing-page .example-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 140px;
}

.pricing-page .example-label strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-page .example-calc {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
}

.pricing-page .example-amount {
  font-size: 14px;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}

.pricing-page .amount-deduct {
  color: #dc2626;
}

.pricing-page .amount-neutral,
.pricing-page .amount-total {
  color: var(--primary);
}

.pricing-page .amount-total {
  font-size: 15px;
}

/* ── CTA banner ──────────────────────────────────────────────────── */
.pricing-page .cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #5b3b8c 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  margin-bottom: 8px;
}

.pricing-page .cta-banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.pricing-page .cta-banner-title span {
  color: #ff6b6b;
}

.pricing-page .cta-banner-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.pricing-page .cta-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-page .cta-banner-btn {
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.pricing-page .btn-gold {
  background: #16a34a;
  color: #fff;
}

.pricing-page .btn-gold:hover {
  background: #15803d;
}

.pricing-page .btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.pricing-page .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* guide.css sets .content a { color: var(--primary) } — restore button contrast */
.pricing-page .content a.cta-btn.cta-primary,
.pricing-page .content a.cta-btn.cta-primary:hover {
  color: #fff;
}

.pricing-page .content a.cta-btn.cta-secondary,
.pricing-page .content a.cta-btn.cta-secondary:hover {
  color: var(--primary);
}

.pricing-page .content a.cta-banner-btn.btn-gold,
.pricing-page .content a.cta-banner-btn.btn-gold:hover {
  color: #fff;
}

.pricing-page .content a.cta-banner-btn.btn-outline,
.pricing-page .content a.cta-banner-btn.btn-outline:hover {
  color: #fff;
}

.pricing-page .pricing-faq-list {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .pricing-page .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-page .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .pricing-page .example-header-sub {
    margin-left: 0;
    width: 100%;
  }
}
