*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2744; --navy-mid: #243260; --blue: #1560aa;
  --blue-light: #d6e6f7; --blue-pale: #edf4fc; --red: #c0392b;
  --gold: #c9991a; --gray-100: #f4f5f7; --gray-200: #e8eaed;
  --gray-400: #9aa2ad; --gray-600: #5a6370; --gray-900: #1c2128;
  --success: #1c7a3b; --border: #d0d5dd; --radius: 4px; --radius-lg: 8px;
}
body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 15px; color: var(--gray-900); background: var(--gray-100); line-height: 1.6; }

/* GOV BANNER */
.gov-banner { background: #f0f0f0; border-bottom: 1px solid #ddd; padding: 5px 0; }
.gov-banner-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 8px; color: #555; font-size: 12px; }

/* HEADER */
.site-header { background: var(--navy); }
.header-top { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-img-wrap { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue); border: 3px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.logo-placeholder { font-size: 20px; font-weight: 900; color: white; letter-spacing: -1px; }
.logo-text h1 { font-size: 20px; font-weight: 700; color: white; line-height: 1.2; }
.logo-text p { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.header-actions { display: flex; gap: 10px; }
.header-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: white; padding: 7px 14px; border-radius: var(--radius); font-size: 13px; cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; }
.header-btn:hover { background: rgba(255,255,255,0.2); }
.header-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* NAV */
.site-nav { background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-label { color: rgba(255,255,255,0.6); font-size: 12px; padding: 10px 0; letter-spacing: .04em; text-transform: uppercase; }
.nav-active-tag { background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 12px; }

/* MAIN LAYOUT */
.main-wrap { max-width: 1100px; margin: 28px auto; padding: 0 20px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }

/* SIDEBAR */
.sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-header { background: var(--navy); color: white; padding: 14px 16px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.step-list { list-style: none; }
.step-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--gray-200); }
.step-item:last-child { border-bottom: none; }
.step-item.active { background: var(--blue-pale); }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.step-item.active .step-num { background: var(--blue); color: white; }
.step-item.completed .step-num { background: var(--success); color: white; }
.step-label { font-size: 13.5px; color: var(--gray-900); font-weight: 500; line-height: 1.4; }
.step-item.active .step-label { color: var(--blue); font-weight: 600; }

/* FORM CARD */
.form-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.form-header { background: var(--navy); padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.form-header h2 { color: white; font-size: 16px; font-weight: 700; }
.step-badge { background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 12px; }
.progress-bar-wrap { background: var(--blue-pale); height: 6px; }
.progress-bar { height: 6px; background: var(--gold); transition: width 0.4s ease; }
.form-body { padding: 28px 28px 24px; }
.section-note { background: var(--blue-pale); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; font-size: 13.5px; color: var(--gray-600); margin-bottom: 24px; }
.required-note { font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }
.required-note span { color: var(--red); font-weight: 700; }
.alert-box { background: #fff3cd; border: 1px solid #ffc107; border-left: 4px solid #ffc107; border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; color: #664d03; margin-bottom: 20px; }

/* FORM ELEMENTS */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--gray-900); }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-label .opt { font-weight: 400; color: var(--gray-400); font-size: 12px; margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"],
input[type="password"], select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--gray-900); background: white; font-family: inherit;
  appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,96,170,.12); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6370' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.radio-group { display: flex; gap: 20px; padding: 6px 0; flex-wrap: wrap; }
.radio-option, .check-option { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; }
input[type="radio"], input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.section-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.subsection-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-light); text-transform: uppercase; letter-spacing: .04em; }
.field-footer { display: flex; justify-content: flex-end; font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.legal-text { background: var(--gray-100); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: 12.5px; line-height: 1.6; color: var(--gray-600); max-height: 180px; overflow-y: auto; margin-bottom: 16px; }

/* TRANSACTION / SUBJECT CARDS */
.transaction-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 16px; background: var(--gray-100); }
.transaction-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.transaction-label { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.remove-btn { background: none; border: 1px solid var(--red); color: var(--red); border-radius: var(--radius); padding: 3px 10px; font-size: 12px; cursor: pointer; font-weight: 600; }
.remove-btn:hover { background: #fdf0ef; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px dashed var(--blue); color: var(--blue); border-radius: var(--radius); padding: 8px 16px; font-size: 13.5px; cursor: pointer; font-weight: 600; }
.add-btn:hover { background: var(--blue-pale); }

/* BUTTONS */
.btn-prev { background: white; border: 1px solid var(--border); color: var(--gray-600); padding: 10px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-prev:hover { border-color: var(--gray-600); }
.btn-next { background: var(--blue); border: none; color: white; padding: 10px 26px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-next:hover { background: #0e4d8c; }
.btn-submit { background: var(--success); border: none; color: white; padding: 10px 26px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-submit:hover { background: #155c2d; }

/* FORM NAV */
.form-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-100); }

/* SUCCESS */
.success-screen { text-align: center; padding: 60px 28px; }
.success-icon { width: 72px; height: 72px; background: #d4edda; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 20px; }
.success-screen h2 { font-size: 22px; color: var(--success); margin-bottom: 10px; }
.success-screen p { color: var(--gray-600); font-size: 14.5px; max-width: 440px; margin: 0 auto 10px; }
.complaint-ref { background: var(--blue-pale); border: 1px solid var(--blue-light); border-radius: var(--radius); display: inline-block; padding: 12px 24px; margin: 16px 0 28px; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: .06em; font-family: monospace; }

/* TRACKER */
.complaint-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: var(--gray-100); }
.complaint-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.complaint-ref-small { font-size: 13px; font-weight: 700; color: var(--navy); font-family: monospace; }
.complaint-meta { font-size: 13px; color: var(--gray-600); }
.status-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.status-pending { background: #fff3cd; color: #664d03; }
.status-review  { background: var(--blue-pale); color: var(--blue); }
.status-closed  { background: #d4edda; color: var(--success); }

/* FOOTER */
.site-footer { background: var(--navy); padding: 40px 0 24px; margin-top: 40px; }
.footer-logo-area { max-width: 1100px; margin: 0 auto; padding: 0 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo-wrap { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; background: var(--blue); border: 4px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.footer-org-name { font-size: 18px; font-weight: 700; color: white; text-align: center; }
.footer-org-sub { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; }
.footer-bottom-bar { max-width: 1100px; margin: 20px auto 0; padding: 16px 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }

.hidden { display: none !important; }

@media (max-width: 780px) {
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .header-actions { display: none; }
}
