/* ═══════════════════════════════════════════════════════════════
   NM-FARM Data Upload Portal — Styles
   Matches nmfarm.nmsu.edu design for seamless integration
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    --crimson: #8C0B42;
    --dark: #6A0832;
    --gold: #C4A55A;
    --gold-light: #D4B96A;
    --bg: #FFFFFF;
    --card: #FFFFFF;
    --text: #333333;
    --muted: #6B7280;
    --border: #E5E7EB;
    --success: #059669;
    --success-dark: #047857;
    --info: #2563EB;
    --error: #DC2626;
    --radius: 10px;
    --shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════════
   NMSU HEADER — matches nmfarm.nmsu.edu
   ══════════════════════════════════════════════════════════════ */

/* Utility bar (APPLY / VISIT / GIVE) — matches nmfarm.nmsu.edu */
.nmsu-utility-bar {
    background: var(--crimson);
    padding: 0 15px;
}
.nmsu-utility-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}
.nmsu-utility-bar a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    padding: 8px 12px;
    transition: color 0.2s;
}
.nmsu-utility-bar a:hover { color: rgba(255,255,255,0.8); }
.nmsu-search-icon {
    display: flex;
    align-items: center;
    padding: 8px 0 8px 12px !important;
}
.nmsu-search-icon svg { fill: #FFFFFF; }

/* Main header banner — matches nmfarm.nmsu.edu */
.nmsu-header {
    background: var(--crimson);
    padding: 8px 15px 32px;
}
.nmsu-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.nmsu-logo-link {
    display: block;
    flex-shrink: 0;
    width: 82px;
    margin-right: 16px;
}
.nmsu-logo {
    width: 82px;
    height: 82px;
}
.nmsu-brand-text {
    padding-top: 12px;
}
.nmsu-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 34.4px;
    color: white;
    margin: 0;
}
.nmsu-title a {
    color: white;
    text-decoration: none;
}
.nmsu-title a:hover { text-decoration: underline; }
.nmsu-title small {
    font-size: 80%;
    font-weight: 400;
}
.nmsu-title small a {
    color: white;
    text-decoration: none;
}
.nmsu-title small a:hover { text-decoration: underline; }

/* Navigation bar — mirrors nmfarm.nmsu.edu (values measured on the live site, 2026-11) */
.nmsu-nav {
    background: #FFFFFF;
    padding: 0 15px;
}
.nmsu-nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #E7EAF3;
    border-bottom: 1px solid #E7EAF3;
}
.nmsu-nav-list > li { position: relative; }
.nmsu-nav-link,
.nmsu-nav-sub-toggle {
    display: flex;
    align-items: center;
    padding: 16px 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700; /* matches live link widths measured side by side at 1280px */
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--crimson);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.nmsu-nav-list > li:first-child > .nmsu-nav-link { padding-left: 0; }
.nmsu-nav-sub-toggle::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23677788' d='M12.72,15.78a.75.75,0,0,1-.53.22h-.38a.77.77,0,0,1-.53-.22L6.15,10.64a.5.5,0,0,1,0-.71l.71-.71a.49.49,0,0,1,.7,0L12,13.67l4.44-4.45a.5.5,0,0,1,.71,0l.7.71a.5.5,0,0,1,0,.71Z'/%3E%3C/svg%3E") no-repeat 100% 50% / 16px 16px;
}
/* Current-section marker: the app page lives inside this dropdown (live site has no active treatment; our call) */
.nmsu-nav-current { box-shadow: inset 0 -3px 0 var(--crimson); }
.nmsu-nav a:focus-visible,
.nmsu-nav button:focus-visible {
    outline: 2px dashed var(--crimson);
    outline-offset: 1px;
}

/* Dropdown panel */
.nmsu-nav-sub {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50; /* above wizard cards, below .modal-overlay (1000) */
    min-width: 230px;
    margin-top: -2px;
    padding: 16px 0;
    background: #FFFFFF;
    border-top: 3px solid var(--crimson);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 12px 15px rgba(140, 152, 164, 0.1);
    animation: nmsu-nav-slide-in 0.3s;
}
.nmsu-nav-sub-toggle[aria-expanded="true"] + .nmsu-nav-sub { display: block; }
.nmsu-nav-sub a {
    display: block;
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1E2022;
    text-decoration: none;
    white-space: nowrap;
}
.nmsu-nav-sub a:hover,
.nmsu-nav-sub a[aria-current="page"] { color: var(--crimson); }
@keyframes nmsu-nav-slide-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* Mobile menu button (hidden on desktop) */
.nmsu-nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    height: 43px;
    margin: 8px 0;
    padding: 0 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--crimson);
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(28, 28, 33, 0.15);
    cursor: pointer;
}
.nmsu-nav-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.nmsu-nav-toggle .nmsu-nav-icon-close,
.nmsu-nav-toggle[aria-expanded="true"] .nmsu-nav-icon-open { display: none; }
.nmsu-nav-toggle[aria-expanded="true"] .nmsu-nav-icon-close { display: block; }

/* Desktop: open on mouse hover as the live site does (the button click also works) */
@media (min-width: 992px) and (hover: hover) {
    .nmsu-nav-has-sub:hover > .nmsu-nav-sub { display: block; }
}

/* Below 992px the live nav collapses (navbar-expand-lg) */
@media (max-width: 991.98px) {
    .nmsu-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
    .nmsu-nav-toggle { display: inline-flex; }
    .nmsu-nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }
    .nmsu-nav-toggle[aria-expanded="true"] + .nmsu-nav-list { display: flex; }
    .nmsu-nav-link,
    .nmsu-nav-sub-toggle { padding: 8px 0; }
    .nmsu-nav-sub {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 8px 0;
        border-top: 0;
        border-left: 3px solid #E7EAF3;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nmsu-nav-sub { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   NMSU FOOTER — matches nmfarm.nmsu.edu
   ══════════════════════════════════════════════════════════════ */
.nmsu-footer {
    margin-top: 48px;
    border-top: 1px solid #E5E7EB;
    padding: 48px 32px 0;
    background: #FFFFFF;
}
.nmsu-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}
.nmsu-footer-brand { flex: 1; min-width: 280px; }
.nmsu-footer-logo { max-width: 300px; height: auto; margin-bottom: 16px; }
.nmsu-footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--crimson);
    line-height: 1.4;
}
.nmsu-footer-links { min-width: 200px; }
.nmsu-footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.nmsu-footer-links a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}
.nmsu-footer-links a:hover { color: var(--crimson); }
.nmsu-footer-copyright {
    max-width: 1140px;
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   APP CONTENT
   ══════════════════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 24px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid #F0F0F0;
}

/* ── View Panels ────────────────────────────────────────────── */
.view-panel { display: none; }
.view-panel.visible { display: block; }

/* ── Step Panels ────────────────────────────────────────────── */
.step-panel { display: none; }
.step-panel.visible { display: block; }
.step-panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
    background: white;
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    overflow-x: auto;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}
.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #E5E7EB;
    color: #9CA3AF;
    transition: all 0.3s;
}
.step-indicator.active .step-circle { background: var(--crimson); color: white; }
.step-indicator.done .step-circle { background: var(--success); color: white; }
.step-label {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
}
.step-indicator.active .step-label { color: var(--crimson); font-weight: 600; }
.step-indicator.done .step-label { color: var(--success); }
.step-connector {
    width: 20px;
    height: 2px;
    background: #E5E7EB;
    margin: 0 2px;
    align-self: center;
    margin-bottom: 18px;
}
.step-connector.done { background: var(--success); }

/* ── Form Layout ────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s;
    background: white;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--crimson);
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 11, 66, 0.1);
}
.required { color: var(--crimson); }
.optional { color: var(--muted); font-weight: 400; font-size: 12px; }

/* ── Form Sections ──────────────────────────────────────────── */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.sub-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}
.badge {
    background: var(--gold);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ── Operation Type Cards ───────────────────────────────────── */
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.op-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 200px;
}
.op-card:hover { border-color: var(--gold); background: #FFFDF7; }
.op-card.selected { border-color: var(--crimson); background: #FDF2F4; }
.op-icon { font-size: 28px; margin-bottom: 8px; }
.op-label { font-size: 14px; font-weight: 700; color: var(--text); }
.op-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.op-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    color: var(--crimson);
    opacity: 0;
    transition: opacity 0.2s;
}
.op-card.selected .op-check { opacity: 1; }

/* ── Role Cards (Submitter Type Step) ──────────────────────── */
.role-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 200px;
}
.role-card:hover { border-color: var(--gold); background: #FFFDF7; }
.role-card.selected { border-color: var(--crimson); background: #FDF2F4; }
.role-card .op-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 16px;
    color: var(--crimson);
    opacity: 0;
    transition: opacity 0.2s;
}
.role-card.selected .op-check { opacity: 1; }

/* ── Checkboxes ─────────────────────────────────────────────── */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
    user-select: none;
}
.check-item:hover { background: #F9FAFB; }
.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 11px;
    color: transparent;
}
.checkbox::after { content: '✓'; }
.check-item.checked .checkbox {
    background: var(--crimson);
    border-color: var(--crimson);
    color: white;
}

/* ── Radio Pills ────────────────────────────────────────────── */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.radio-pill:hover { border-color: var(--gold); }
.radio-pill.selected {
    background: var(--crimson);
    border-color: var(--crimson);
    color: white;
}

/* ── Upload Zone ────────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--crimson);
    background: #FDF2F4;
}
.upload-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.upload-text { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--muted); }

/* ── File List ──────────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 13px;
}
.file-item .file-icon { font-size: 18px; }
.file-item .file-name { flex: 1; font-weight: 500; }
.file-item .file-size { color: var(--muted); font-size: 12px; }
.file-item .file-remove {
    color: var(--error);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.file-item .file-remove:hover { background: #FEE2E2; }

/* ── Review Summary ─────────────────────────────────────────── */
.review-summary {
    background: #F9FAFB;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.review-section { margin-bottom: 16px; }
.review-section:last-child { margin-bottom: 0; }
.review-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.review-field { display: flex; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.review-field .label { color: var(--muted); min-width: 120px; }
.review-field .value { font-weight: 500; }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.review-tag {
    background: #E5E7EB;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Secure Notice ──────────────────────────────────────────── */
.secure-notice {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1E40AF;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* ── Submit Status ──────────────────────────────────────────── */
.submit-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.submit-status.loading { background: #FEF3C7; color: #92400E; }
.submit-status.error { background: #FEE2E2; color: #991B1B; }
.submit-status.success { background: #D1FAE5; color: #065F46; }

/* ── Confirmation ───────────────────────────────────────────── */
.confirm-card { text-align: center; padding: 48px 32px; }
.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.ref-box {
    background: #F9FAFB;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px auto;
    max-width: 360px;
}
.ref-label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.ref-number { display: block; font-size: 22px; font-weight: 700; color: var(--crimson); margin-top: 4px; font-family: monospace; }
.confirm-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--crimson); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--dark); }
.btn-secondary {
    background: white;
    color: var(--crimson);
    border: 2px solid var(--crimson);
}
.btn-secondary:hover { background: #FDF2F4; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: var(--success-dark); }
.btn-row { display: flex; justify-content: space-between; margin-top: 24px; }

/* ── Tooltips ──────────────────────────────────────────────── */
.tooltip-trigger {
    position: relative;
    border-bottom: 1px dotted var(--crimson);
    cursor: help;
    font-weight: 600;
    color: var(--crimson);
}
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    transition: opacity 0.2s;
    pointer-events: none;
}
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}
.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.modal-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.modal-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.modal-option {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.modal-option:hover { border-color: var(--gold); background: #FFFDF7; }
.modal-option.selected { border-color: var(--crimson); background: #FDF2F4; color: var(--crimson); font-weight: 600; }

/* ── CAPTCHA Section ──────────────────────────────────────── */
.captcha-section {
    margin: 20px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Guidance Messages ─────────────────────────────────────── */
.guidance-message {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #92400E;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nmsu-header { padding: 8px 15px 20px; }
    .nmsu-logo-link { width: 60px; margin-right: 12px; }
    .nmsu-logo { width: 60px; height: 60px; }
    .nmsu-title { font-size: 22px; line-height: 28px; }
    .nmsu-title small { font-size: 80%; }
    .nmsu-footer-inner { flex-direction: column; gap: 32px; }
}
@media (max-width: 640px) {
    .container { padding: 12px; }
    .card { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .op-grid { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .radio-group { flex-direction: column; }
    .radio-pill { text-align: center; }
    .btn-row { flex-direction: column-reverse; gap: 8px; }
    .btn-row .btn { width: 100%; }
    .progress-bar { padding: 12px; gap: 0; }
    .step-label { font-size: 8px; }
    .step-connector { width: 12px; }
    .nmsu-utility-bar { display: none; }
}

/* ── Consent Step ──────────────────────────────────────────────── */
.consent-document {
    background: #FAFAF8;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 28px 32px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.consent-document::-webkit-scrollbar { width: 6px; }
.consent-document::-webkit-scrollbar-thumb { background: #C4A55A80; border-radius: 3px; }

.consent-document h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--crimson);
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.consent-document h3:first-child { margin-top: 0; }
.consent-document p { margin-bottom: 12px; }
.consent-document .doc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}
.consent-document .researchers { font-style: italic; margin: 4px 0 12px; }
.consent-document .section-label { font-weight: 600; color: var(--text); }
.consent-document .irb-footer {
    text-align: center;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #F5EDD6;
    border-radius: 6px;
}

.signature-area {
    background: white;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.signature-area h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.sig-field { display: flex; flex-direction: column; }
.sig-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 6px;
}
.sig-input {
    border: none;
    border-bottom: 2px solid var(--text);
    padding: 8px 4px;
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 22px;
    color: #1a365d;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}
.sig-input:focus { border-bottom-color: var(--crimson); }
.sig-input::placeholder {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #CBD5E1;
}
.sig-prefilled {
    border: none;
    border-bottom: 2px solid #D1D5DB;
    padding: 8px 4px;
    font-size: 15px;
    color: #374151;
    background: #F9FAFB;
}
.sig-prefilled-note {
    font-size: 11px;
    color: #9CA3AF;
    font-style: italic;
    margin-top: 4px;
}
