/* =============================================
   PURCHASE PAGE SUPPLEMENTS
   Extends styles.css — does NOT replace it
   ============================================= */

/* Terms scrollable container */
.terms-scroll {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fafaf7;
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.terms-scroll::-webkit-scrollbar { width: 6px; }
.terms-scroll::-webkit-scrollbar-track { background: #F5F1E8; border-radius: 3px; }
.terms-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.terms-scroll::-webkit-scrollbar-thumb:hover { background: #5a6677; }
.terms-scroll h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.terms-scroll h3:first-child { margin-top: 0; }
.terms-scroll p { font-size: 0.88rem; margin-bottom: 0.75rem; }
.terms-scroll ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.terms-scroll ul li { font-size: 0.88rem; margin-bottom: 0.3rem; }
.terms-intro { color: #5a6677; font-size: 0.9rem; margin-bottom: 1rem; }
#terms-read-indicator { opacity: 0; transition: opacity 0.3s; margin-top: 0.5rem; }
#terms-read-indicator.visible { opacity: 1; }

/* Acceptance checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #F5F1E8;
  border-radius: 8px;
  border: 2px solid #d1d5db;
  transition: border-color 0.3s, background 0.3s;
}
.checkbox-row.checked { border-color: #2D5F2D; background: #f0f7f0; }
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px;
  accent-color: #2D5F2D; flex-shrink: 0; cursor: pointer;
}
.checkbox-row label {
  font-size: 0.92rem; cursor: pointer; line-height: 1.5;
}
.checkbox-row label strong { color: #1B2A4A; }

/* Client info form grid */
.purchase-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.purchase-form-grid .form-group { display: flex; flex-direction: column; }
.purchase-form-grid .form-group.full { grid-column: 1 / -1; }
.purchase-form-grid label {
  font-size: 0.82rem; font-weight: 600; color: #1B2A4A; margin-bottom: 0.3rem;
}
.purchase-form-grid label .req { color: #dc2626; }
.purchase-form-grid input,
.purchase-form-grid select,
.purchase-form-grid textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1a1a1a !important;
  background: #fff !important;
}
.purchase-form-grid input::placeholder {
  color: #9ca3af !important;
}
.purchase-form-grid label {
  color: #1B2A4A !important;
}
.purchase-form-grid input:focus,
.purchase-form-grid select:focus {
  outline: none;
  border-color: #B8860B;
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}

/* Payment button */
.btn-payment {
  display: block; width: 100%; padding: 1rem;
  background: #2D5F2D; color: #fff;
  font-size: 1.05rem; font-weight: 600; font-family: inherit;
  border: none; border-radius: 8px; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-payment:hover:not(:disabled) {
  background: #3a7a3a; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: #fff;
}
.btn-payment:disabled {
  background: #d1d5db; color: #5a6677; cursor: not-allowed; transform: none;
}
.payment-note {
  text-align: center; font-size: 0.8rem; color: #5a6677; margin-top: 0.6rem;
}
.secure-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-top: 1rem; padding: 0.75rem;
  font-size: 0.78rem; color: #5a6677;
}
.secure-badges svg { width: 16px; height: 16px; fill: #5a6677; flex-shrink: 0; }
.secure-badges span { display: flex; align-items: center; gap: 0.35rem; }

/* Purchase page section cards */
.purchase-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Included/excluded checklists */
.purchase-included li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  font-size: 0.92rem;
  border-bottom: 1px solid #e5e7eb;
  list-style: none;
}
.purchase-included li:last-child { border-bottom: none; }
.purchase-included li::before {
  content: '✓'; position: absolute; left: 0;
  color: #2D5F2D; font-weight: 700;
}
.purchase-excluded li {
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  font-size: 0.85rem;
  color: #5a6677;
  list-style: none;
}
.purchase-excluded li::before {
  content: '✗'; position: absolute; left: 0;
  color: #dc2626; font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .purchase-form-grid { grid-template-columns: 1fr; }
  .secure-badges { flex-direction: column; }
}
@media (max-width: 480px) {
  .purchase-section { padding: 1.25rem; }
  .terms-scroll { max-height: 300px; padding: 1rem; }
}
