/* Purchase Report Page — celebration-inspired redesign (Feb 2026) */

/* Override form-styles.css 850px !important cap on #main-content */
#main-content:has(#purchaseReportPage) {
  max-width: 1500px !important;
}

/* Override Bootstrap .container constraint */
#main-content > .container:has(#purchaseReportPage) {
  max-width: 1500px;
}

/* ===== Layout ===== */
#purchaseReportPage {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 20px;
}

#purchaseReportPage .purchase-report-heading {
  font-size: 34px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
  text-align: center;
}

#purchaseReportPage .page-subtitle {
  text-align: center;
  color: #6B7280;
  font-size: 17px;
  margin-bottom: 6px;
}

#purchaseReportPage .page-subtitle a {
  text-decoration: underline;
}

#purchaseReportPage .cancel-link {
  text-align: center;
  font-size: 16px;
  margin-bottom: 0;
}

#purchaseReportPage .cancel-link a {
  text-decoration: underline;
}

#purchaseReportPage a {
  color: rgb(62, 126, 108);
  text-decoration: none;
}

#purchaseReportPage a:hover {
  text-decoration: underline;
}

#purchaseReportPage .purchase-report-container {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 40px;
  margin-top: 36px;
}

/* ===== Cards ===== */
#purchaseReportPage .purchase-report-option {
  flex: 1;
  padding: 40px 36px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  background: white;
}

#purchaseReportPage .card-headline {
  font-size: 32px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 24px;
  text-align: center;
}

#purchaseReportPage .case-found:not(.disabled) .card-headline {
  color: rgb(62, 126, 108);
}

#purchaseReportPage .case-not-found:not(.disabled) .card-headline {
  color: #1F2937;
}

/* Hide savings/terms/button on disabled Case Found card */
#purchaseReportPage .purchase-report-option.disabled .savings-section,
#purchaseReportPage .purchase-report-option.disabled .card-divider,
#purchaseReportPage .purchase-report-option.disabled .recommend-text,
#purchaseReportPage .purchase-report-option.disabled .terms-section,
#purchaseReportPage .purchase-report-option.disabled .card-action {
  display: none;
}

#purchaseReportPage .card-body {
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Savings section (celebration-inspired) ===== */
#purchaseReportPage .savings-section {
  text-align: center;
  margin-bottom: 24px;
}

#purchaseReportPage .savings-label {
  font-size: 17px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 8px;
}

#purchaseReportPage .savings-amount {
  font-size: 48px;
  font-weight: 700;
  color: rgb(62, 126, 108);
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

#purchaseReportPage .savings-detail {
  font-size: 18px;
  color: #374151;
  margin-bottom: 6px;
}

#purchaseReportPage .savings-detail strong {
  color: rgb(62, 126, 108);
  font-weight: 700;
}

#purchaseReportPage .savings-footnote {
  font-size: 14px;
  color: #9CA3AF;
  font-style: italic;
}

/* ===== Divider ===== */
#purchaseReportPage .card-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 24px 0;
}

/* ===== Recommendation text ===== */
#purchaseReportPage .recommend-text {
  font-size: 18px;
  color: #374151;
  text-align: center;
  margin-bottom: 20px;
}

/* ===== Terms ===== */
#purchaseReportPage .terms-section {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 20px;
}

#purchaseReportPage .terms-section strong {
  color: #374151;
}

#purchaseReportPage .form-check {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 17px;
}

#purchaseReportPage .form-check-input:checked {
  background-color: rgb(62, 126, 108);
  border-color: rgb(62, 126, 108);
}

#purchaseReportPage .form-check-input:focus {
  border-color: rgb(62, 126, 108);
  box-shadow: 0 0 0 0.25rem rgba(62, 126, 108, 0.25);
}

#purchaseReportPage .form-check input {
  accent-color: rgb(62, 126, 108);
}

/* ===== Button ===== */
#purchaseReportPage .card-action {
  text-align: center;
  margin-top: 20px;
}

#purchaseReportPage #purchaseReportBtn {
  display: inline-flex;
  align-items: center;
  background: rgb(62, 126, 108);
  color: white;
  border: 1px solid rgb(62, 126, 108);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#purchaseReportPage #purchaseReportBtn:hover {
  background: rgb(50, 100, 86);
  border-color: rgb(50, 100, 86);
}

#purchaseReportPage #purchaseReportBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== No Case Found — centered ===== */
#purchaseReportPage .case-not-found .card-body {
  justify-content: center;
  text-align: center;
}

#purchaseReportPage .case-not-found .card-body p {
  margin-bottom: 16px;
}

#purchaseReportPage .case-not-found .card-body p:last-child {
  margin-bottom: 0;
}

/* ===== Disabled cards ===== */
#purchaseReportPage .purchase-report-option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

#purchaseReportPage .purchase-report-option.disabled .card-headline,
#purchaseReportPage .purchase-report-option.disabled .card-body {
  color: #888;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  #purchaseReportPage .purchase-report-container {
    flex-direction: column;
  }

  #purchaseReportPage .purchase-report-option {
    width: 100%;
    margin-bottom: 2rem;
  }

  #purchaseReportPage .card-headline {
    height: auto;
  }
}

@media (max-width: 480px) {
  #purchaseReportPage .purchase-report-option {
    padding: 32px 24px;
  }

  #purchaseReportPage .savings-amount {
    font-size: 36px;
  }

  #purchaseReportPage .purchase-report-heading {
    font-size: 28px;
  }
}
