:root {
  --cbls-yellow: #FFD700;
  --cbls-yellow-dark: #c9a800;
  --cbls-blue: #0057B7;
  --cbls-blue-light: #1a6fd4;
  --cbls-navy: #333333;
  --cbls-gray: #f0f0f0;
  --cbls-text: #222222;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--cbls-text);
  background: var(--cbls-gray);
  margin: 0;
  min-height: 100vh;
}

.site-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .brand-name {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
  letter-spacing: -0.5px;
}
.site-nav .nav-link {
  color: #555;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav .nav-link:hover { color: var(--cbls-blue); }

.page-header {
  background: linear-gradient(135deg, var(--cbls-blue) 0%, #003d8a 100%);
  color: #fff;
  padding: 48px 0 36px;
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-header p  { opacity: 0.85; margin: 0; font-size: 1rem; }

.pay-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  padding: 36px;
  margin: 40px auto;
  max-width: 560px;
}

.step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cbls-blue);
  margin-bottom: 6px;
}

.pay-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--cbls-navy);
}

.btn-pay {
  background: var(--cbls-yellow);
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.btn-pay:hover:not(:disabled) { background: var(--cbls-yellow-dark); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }

.quote-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--cbls-blue);
}
.quote-summary .label { font-size: 0.8rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.quote-summary .value { font-size: 1rem; color: var(--cbls-navy); font-weight: 500; }

.items-table { font-size: 0.9rem; width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.items-table th { background: #f0f0f0; padding: 8px 10px; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.items-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; }
.items-table .text-end { text-align: right; }
.items-table tfoot td { font-weight: 700; border-top: 2px solid #ddd; border-bottom: none; }

.total-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cbls-blue);
  text-align: center;
  margin: 16px 0 20px;
}

.alert-box {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-box.error   { background: #fdecea; color: #c62828; border-left: 4px solid #c62828; }
.alert-box.success { background: #e8f5ea; color: #2e7d32; border-left: 4px solid #2e7d32; }
.alert-box.info    { background: #e3f0ff; color: #003d8a; border-left: 4px solid var(--cbls-blue); }

footer {
  text-align: center;
  padding: 24px;
  color: #888;
  font-size: 0.83rem;
}

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: #333;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Presentation formerly supplied by style attributes. */
.spinner-loading { width:32px;height:32px;border-width:3px;margin-bottom:16px; }
.quote-number-input { font-size:1rem; }
.btn-lookup { width:auto;padding:14px 20px;white-space:nowrap; }

.is-hidden { display: none !important; }
