:root {
    --fed-blue: #004b76;
    --fed-blue-dark: #003350;
    --fed-grey: #e2e8ec;
    --fed-text: #1a1a1a;
    --fed-text-light: #555555;
    --white: #ffffff;
    --error: #cc0000;
    --success: #008000;
    --focus: #ffcc00;
    --border: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f7f9fa;
    color: var(--fed-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.federal-bar {
    display: flex;
    height: 6px;
    width: 100%;
}

.federal-bar .color-black { flex: 1; background-color: #000000; }
.federal-bar .color-red { flex: 1; background-color: #ff0000; }
.federal-bar .color-gold { flex: 1; background-color: #ffcc00; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 2px solid var(--fed-blue);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.crest {
    width: 60px;
    height: 60px;
}

.titles {
    display: flex;
    flex-direction: column;
}

.suptitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fed-text-light);
    font-weight: 700;
}

.header h1 {
    font-size: 1.5rem;
    color: var(--fed-blue);
    font-weight: 700;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.main-nav button, .main-nav a {
    background: none;
    border: none;
    color: var(--fed-blue);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.main-nav button:hover, .main-nav a:hover {
    color: var(--fed-blue-dark);
}

/* Intro */
.intro-box {
    background-color: var(--white);
    border-left: 5px solid var(--fed-blue);
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.intro-box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--fed-blue);
}

/* Wizard */
.wizard-container {
    background: var(--white);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.wizard-progress {
    display: flex;
    background-color: var(--fed-grey);
    border-bottom: 1px solid var(--border);
}

.wizard-progress .step {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-weight: 700;
    color: var(--fed-text-light);
    border-right: 1px solid var(--border);
    background: #f0f4f7;
    position: relative;
    transition: all 0.3s;
}

.wizard-progress .step:last-child {
    border-right: none;
}

.wizard-progress .step.active {
    background-color: var(--white);
    color: var(--fed-blue);
    border-bottom: 3px solid var(--fed-blue);
}

.report-form {
    padding: 40px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--fed-blue);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--error);
}

.form-group input[type="url"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: var(--white);
    color: var(--fed-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fed-blue);
    box-shadow: 0 0 0 3px var(--focus);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--fed-text-light);
    font-size: 0.85rem;
}

.info-alert {
    background-color: #e6f3ff;
    border-left: 4px solid var(--fed-blue);
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid var(--border);
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: var(--fed-blue);
}

.form-check label {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-check a {
    color: var(--fed-blue);
}

/* Buttons */
.step-actions {
    margin-top: 35px;
    display: flex;
    justify-content: flex-end;
}

.step-actions.split {
    justify-content: space-between;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary, .btn-submit {
    background-color: var(--fed-blue);
    color: var(--white);
}

.btn-primary:hover, .btn-submit:hover {
    background-color: var(--fed-blue-dark);
}

.btn-secondary {
    background-color: var(--fed-grey);
    color: var(--fed-text);
}

.btn-secondary:hover {
    background-color: #d1d9df;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeOverlay 0.2s;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--white);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    border-top: 5px solid var(--fed-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    color: var(--fed-blue);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.modal p {
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--fed-text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--error);
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.faq-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--fed-blue);
}

/* Footer */
.footer {
    background-color: var(--fed-blue-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a, .footer-links button {
    color: var(--white);
    text-decoration: none;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
}

.footer-links a:hover, .footer-links button:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Utilities */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
.hidden { display: none !important; }

.message {
    margin-top: 20px;
    padding: 15px;
    font-weight: 700;
    border-left: 4px solid;
}

.message.success {
    background-color: #e6ffe6;
    border-color: var(--success);
    color: var(--success);
}

.message.error {
    background-color: #ffe6e6;
    border-color: var(--error);
    color: var(--error);
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .wizard-progress { flex-direction: column; }
    .wizard-progress .step { border-right: none; border-bottom: 1px solid var(--border); text-align: left; padding: 15px 20px; }
    .report-form { padding: 20px; }
    .footer-grid { flex-direction: column; gap: 20px; }
    .footer-links { flex-direction: column; gap: 10px; align-items: flex-start; }
}
