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

:root {
    --navy: #1a2744;
    --navy-light: #2a3a5c;
    --gold: #c5a44e;
    --gold-light: #d4b967;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --red: #c0392b;
    --red-light: #fdf0ef;
    --green: #27ae60;
    --green-light: #eafaf1;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--navy);
    color: var(--white);
    padding: 20px 16px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}
.header-badge {
    font-size: 32px;
    margin-bottom: 4px;
}
.header h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.header p {
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 500;
}

/* Main container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

/* Info banner */
.info-banner {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--gray-600);
}
.info-banner strong {
    color: var(--gray-800);
}

/* Form */
.form-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 16px;
    margin-bottom: 16px;
}
.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.form-group {
    margin-bottom: 16px;
}
.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}
label .required {
    color: var(--red);
}
label .hint {
    font-weight: 400;
    color: var(--gray-400);
    font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px; /* Prevents iOS zoom */
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}
textarea {
    resize: vertical;
    min-height: 100px;
}

.row {
    display: flex;
    gap: 12px;
}
.row .form-group {
    flex: 1;
}

/* File upload area */
.file-upload-area {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 30px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--navy);
    background: rgba(26, 39, 68, 0.03);
}
.file-upload-area-icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.file-upload-area p {
    font-size: 14px;
    color: var(--gray-600);
}
.file-upload-area .browse-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
}
.file-upload-area input[type="file"] {
    display: none;
}

/* File list */
.file-list {
    margin-top: 12px;
}
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}
.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}
.file-item-size {
    color: var(--gray-400);
    font-size: 13px;
    margin-right: 12px;
    white-space: nowrap;
}
.file-item-remove {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}
.submit-btn:hover {
    background: var(--navy-light);
}
.submit-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}
/* Narrow variant (was inline style on "Submit More Evidence") */
.submit-btn-narrow {
    max-width: 300px;
    margin: 0 auto;
}

/* Progress bar */
.progress-container {
    display: none;
    margin-top: 16px;
}
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 4px;
    transition: width 0.3s;
    width: 0%;
}
.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

/* Messages */
.message {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.message.error {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid var(--red);
    display: block;
}
.message.success {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--green);
    display: block;
}

/* Success screen */
.success-screen {
    display: none;
    text-align: center;
    padding: 40px 16px;
}
.success-screen.visible {
    display: block;
}
.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.success-screen h2 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 8px;
}
.success-screen .confirmation-id {
    display: inline-block;
    background: var(--gray-50);
    border: 2px solid var(--navy);
    border-radius: var(--radius);
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 700;
    font-family: "Courier New", monospace;
    color: var(--navy);
    margin: 16px 0;
    letter-spacing: 1px;
}
.success-screen p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 8px;
}
/* Wrapper around the "Submit More" button (was inline margin-top: 24px) */
.success-actions {
    margin-top: 24px;
}

/* Small helper note under fields (was inline font-size/color/margin) */
.field-note {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
    color: var(--gray-400);
    border-top: 1px solid var(--gray-200);
    margin-top: 20px;
}
.footer a {
    color: var(--navy);
}

/* Responsive */
@media (max-width: 480px) {
    .row { flex-direction: column; gap: 0; }
}
