/*
 * Heroes Nomination Form - frontend styles.
 * Mirrors the look-and-feel of the official PDF.
 */

.hnf-form-wrapper {
    max-width: 880px;
    margin: 24px auto;
    background: #ffffff;
    border: 6px solid #b9d34d;
    border-radius: 4px;
    padding: 28px 32px;
    color: #222;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.hnf-form-header {
    text-align: center;
    border-bottom: 1px solid #cfe9a3;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.hnf-brand-bar {
    color: #555;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.hnf-brand-sep { margin: 0 8px; color: #aaa; }

.hnf-form-title {
    background: #cfe9a3;
    color: #0a3a14;
    padding: 10px 16px;
    margin: 8px auto 6px;
    font-size: 20px;
    text-align: center;
    border: 1px solid #9bbb59;
    display: inline-block;
}
.hnf-form-tagline {
    color: #0a7d2c;
    font-style: italic;
    margin: 0;
}

/* Stepper */
.hnf-stepper { margin-bottom: 22px; }
.hnf-stepper ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    counter-reset: hnf;
}
.hnf-step {
    flex: 1 1 0;
    min-width: 110px;
    padding: 10px 8px;
    background: #f3f7e6;
    border: 1px solid #cfe9a3;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.15s ease;
}
.hnf-step.is-active {
    background: #0a7d2c;
    color: #fff;
    border-color: #0a7d2c;
    font-weight: bold;
}
.hnf-step.is-done {
    background: #cfe9a3;
    color: #0a3a14;
}
.hnf-step-num {
    display: block;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}
.hnf-step-label { display: block; font-size: 12px; }

/* Panels */
.hnf-step-panel { display: none; }
.hnf-step-panel.is-active { display: block; }

.hnf-section-heading {
    color: #0a7d2c;
    font-size: 18px;
    margin: 0 0 14px;
    border-bottom: 2px solid #0a7d2c;
    padding-bottom: 4px;
}

.hnf-fieldset {
    border: 1px solid #cfe9a3;
    padding: 12px 16px 6px;
    margin: 14px 0;
    border-radius: 4px;
    background: #fcfdf7;
}
.hnf-fieldset > legend {
    font-weight: bold;
    color: #0a7d2c;
    padding: 0 6px;
}

.hnf-field { margin-bottom: 14px; }
.hnf-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}
.hnf-field input[type="text"],
.hnf-field input[type="email"],
.hnf-field input[type="tel"],
.hnf-field input[type="date"],
.hnf-field input[type="number"],
.hnf-field select,
.hnf-field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b8c47b;
    border-radius: 3px;
    font: inherit;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}
.hnf-field input[type="file"] {
    padding: 6px 0;
}
.hnf-field textarea { min-height: 130px; resize: vertical; }
.hnf-field input:focus,
.hnf-field select:focus,
.hnf-field textarea:focus {
    outline: 2px solid #0a7d2c;
    outline-offset: -2px;
    border-color: #0a7d2c;
}
.hnf-field.has-error input,
.hnf-field.has-error select,
.hnf-field.has-error textarea {
    border-color: #b00020;
    background: #fff7f7;
}
.hnf-field .hnf-inline-error {
    color: #b00020;
    font-size: 12px;
    margin-top: 4px;
}

.hnf-required { color: #b00020; }
.hnf-hint { color: #666; font-size: 12px; margin: 4px 0 0; }
.hnf-note { background: #fcfdf7; border-left: 4px solid #0a7d2c; padding: 10px 14px; margin: 16px 0; }
.hnf-note-italic { font-style: italic; }

.hnf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
}
@media (max-width: 600px) {
    .hnf-grid-2 { grid-template-columns: 1fr; }
}

.hnf-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 18px;
}
@media (max-width: 600px) { .hnf-checkbox-grid { grid-template-columns: 1fr; } }

.hnf-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: normal;
    margin: 0;
    padding: 4px 0;
}
.hnf-check input { margin-top: 4px; }
.hnf-declaration {
    background: #fcfdf7;
    border: 1px solid #cfe9a3;
    padding: 10px 14px;
    border-radius: 3px;
}

.hnf-error-msg { color: #b00020; font-size: 13px; margin-top: 6px; }

/* Notes list */
.hnf-notes { padding-left: 22px; }
.hnf-notes li { margin-bottom: 6px; }

/* Previous nominations table */
.hnf-table-wrap { overflow-x: auto; }
.hnf-prev-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.hnf-prev-table th,
.hnf-prev-table td { border: 1px solid #cfe9a3; padding: 6px; }
.hnf-prev-table th { background: #f3f7e6; }
.hnf-prev-table input {
    width: 100%; border: 0; padding: 6px; background: transparent; font: inherit;
}
.hnf-btn-remove {
    background: transparent; border: 0; color: #b00020;
    font-size: 18px; cursor: pointer; line-height: 1;
}
.hnf-btn-add-row { margin-top: 4px; }

/* Honeypot - keep it accessible-but-hidden from real users */
.hnf-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}

/* Buttons */
.hnf-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #cfe9a3;
}
.hnf-btn {
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    border-radius: 3px;
    padding: 10px 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.hnf-btn-primary {
    background: #0a7d2c;
    color: #fff;
    border-color: #0a7d2c;
}
.hnf-btn-primary:hover { background: #086321; border-color: #086321; }
.hnf-btn-secondary {
    background: #fff;
    color: #0a7d2c;
    border-color: #0a7d2c;
}
.hnf-btn-secondary:hover { background: #f3f7e6; }
.hnf-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Review */
.hnf-review {
    background: #fcfdf7;
    border: 1px solid #cfe9a3;
    padding: 14px 18px;
    border-radius: 3px;
}
.hnf-review h3 {
    color: #0a7d2c;
    margin: 14px 0 6px;
    font-size: 15px;
}
.hnf-review h3:first-child { margin-top: 0; }
.hnf-review dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 4px 12px; }
.hnf-review dt { font-weight: bold; color: #555; }
.hnf-review dd { margin: 0; }
.hnf-review .hnf-review-block { white-space: pre-wrap; }
@media (max-width: 600px) {
    .hnf-review dl { grid-template-columns: 1fr; }
    .hnf-review dt { margin-top: 4px; }
}

/* Alerts (post-redirect) */
.hnf-alert {
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 18px;
    border: 1px solid;
}
.hnf-alert-success {
    background: #e7f5dd;
    border-color: #9bbb59;
    color: #0a3a14;
}
.hnf-alert-error {
    background: #fdecea;
    border-color: #f5b1aa;
    color: #7a1410;
}
