:root {
  --color-primary: #004b76;
  --color-accent: #f47a00;
  --color-dark: #111827;
  --color-text: #4b5563;
  --color-bg-alt: #f4f8fb;
  --color-white: #ffffff;
  --color-border: #e5e7eb;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { min-height: 100vh; font-family: var(--font-body); color: var(--color-dark); background: var(--color-bg-alt); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.25; }
a { color: inherit; text-decoration: none; transition: .3s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.oc-topbar { background: var(--color-primary); color: white; font-size: .875rem; }
.oc-topbar-inner, .oc-header, .container { width: min(100% - 40px, 1180px); margin: 0 auto; }
.oc-topbar-inner { min-height: 34px; display: flex; align-items: center; }
.oc-topbar a { color: white; }
.oc-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.oc-logo img { width: 145px; height: auto; }
.oc-back { display: inline-flex; align-items: center; justify-content: center; padding: 11px 23px; border-radius: 50px; background: #e6eef3; color: var(--color-primary); font-weight: 600; }
.oc-back:hover { background: var(--color-primary); color: white; }
.calculator-section { padding: 34px 0 70px; }
.section-kicker { margin-bottom: 10px; color: var(--color-accent); text-align: center; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .85rem; }
.section-title { margin-bottom: 15px; text-align: center; font-size: 2.3rem; font-weight: 700; }
.section-subtitle { max-width: 800px; margin: 0 auto 40px; color: var(--color-text); text-align: center; font-size: 1.1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border: 2px solid transparent; border-radius: 50px; font: 600 1rem/1.2 var(--font-body); cursor: pointer; transition: .3s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--color-accent); color: white; border-color: var(--color-accent); box-shadow: 0 4px 15px rgba(244,122,0,.3); }
.btn-primary:hover:not(:disabled) { background: #d96d00; border-color: #d96d00; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.15); color: white; border-color: rgba(255,255,255,.4); backdrop-filter: blur(5px); }
.btn-ghost:hover { background: white; color: var(--color-primary); }
.btn-block { width: 100%; display: flex; }

/* Reference calculator styling */
.calculator-wizard-container { max-width: 900px; min-height: 550px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-primary); color: white; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.wizard-layout { display: grid; grid-template-columns: 2fr 1fr; min-height: 550px; height: 100%; }
.wizard-main { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.wizard-step { display: none !important; animation: fadeIn .5s; }
.wizard-step.active { display: block !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wizard-header h3 { color: white; font-size: 1.5rem; }
.progress-container { height: 6px; margin: 15px 0 10px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.2); }
.progress-bar { height: 100%; background: var(--color-accent); transition: width .4s ease; }
.step-indicator { margin-bottom: 20px; color: rgba(255,255,255,.7); text-align: right; font-size: .85rem; }
.q-title { margin-bottom: 20px; color: white; font-size: 1.3rem; font-weight: 600; }
.form-group { margin-bottom: 1rem; }
.form-group > label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.9); }
.wizard-input { width: 100%; margin-top: 5px; padding: 15px; outline: none; border: 2px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(255,255,255,.05); color: white; font: 1rem var(--font-body); transition: .3s; }
.wizard-input option { background: var(--color-primary); color: white; }
.wizard-input:focus { border-color: var(--color-accent); background: rgba(255,255,255,.1); }
.wizard-options { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 10px; }
.wiz-card { position: relative; flex: 1; min-width: 100px; cursor: pointer; }
.wiz-card input { position: absolute; opacity: 0; }
.wiz-card span { display: block; padding: 15px; border: 2px solid rgba(255,255,255,.2); border-radius: 10px; color: rgba(255,255,255,.8); text-align: center; font-weight: 600; transition: .2s; }
.wiz-card input:focus-visible + span { outline: 3px solid rgba(255,255,255,.5); outline-offset: 2px; }
.wiz-card input:checked + span { border-color: var(--color-accent); background: var(--color-accent); color: white; }
.checkbox-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.wiz-check { display: flex; align-items: center; gap: 15px; padding: 12px; border: 2px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer; transition: .2s; }
.wiz-check:hover { background: rgba(255,255,255,.1); }
.wiz-check input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--color-accent); }
.wiz-check span { color: rgba(255,255,255,.9); }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.wizard-sidebar { display: flex; flex-direction: column; justify-content: center; padding: 40px 30px; border-left: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2); }
.live-score-box { margin-bottom: 40px; text-align: center; }
.score-label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; }
.score-val { display: block; color: white; font-size: 5rem; font-weight: 800; line-height: 1; }
.score-req { color: var(--color-accent); font-weight: 600; }
.score-breakdown { padding: 0; }
.score-breakdown li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: .9rem; }
.score-breakdown li span { color: white; font-weight: 700; }
.result-box { padding: 20px; color: white; text-align: center; }
.score-circle { width: 100px; height: 100px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-accent); font-size: 3rem; font-weight: 800; }
.result-box h3 { margin-bottom: 10px; color: white; font-size: 2rem; }
.result-box p { margin-bottom: 30px; opacity: .9; font-size: 1.1rem; }
.sidebar-state { text-align: center; }
.sidebar-state-icon { margin-bottom: 10px; font-size: 3rem; line-height: 1; }
.sidebar-state h3 { margin-bottom: 10px; color: white; font-size: 1.2rem; }
.sidebar-state p { margin-bottom: 20px; color: rgba(255,255,255,.8); font-size: .9rem; }
.reset-button { width: 100%; margin-top: 20px; opacity: .7; font-size: .8rem; }

@media (max-width: 900px) {
  .calculator-section { padding-top: 18px; }
  .wizard-layout { display: flex; flex-direction: column; }
  .wizard-sidebar { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; padding: 20px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
  .live-score-box { margin-bottom: 0; text-align: left; }
  .score-breakdown { display: none; }
  .sidebar-state { width: 100%; }
}

@media (max-width: 600px) {
  .oc-topbar-inner, .oc-header, .container { width: calc(100% - 24px); }
  .oc-header { min-height: 76px; }
  .oc-logo img { width: 125px; }
  .oc-back { padding: 9px 15px; font-size: .85rem; }
  .section-title { font-size: 1.85rem; }
  .section-subtitle { margin-bottom: 26px; font-size: 1rem; }
  .wizard-main { padding: 28px 20px; }
  .wizard-sidebar { flex-direction: column; text-align: center; }
  .live-score-box { text-align: center; }
  .wizard-options { gap: 10px; }
  .wiz-nav { margin-top: 30px; }
  .wiz-nav .btn { padding: 11px 18px; }
}
