﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #eef4fb;
    --card: #ffffff;
    --text: #0b1e34;
    --muted: #4f647b;
    --line: #cfdceb;
    --primary: #d91f32;
    --primary-strong: #991b1b;
    --accent: #0e7a72;
    --ink-soft: #20384f;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 2%, rgba(14, 116, 144, 0.18), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(220, 38, 38, 0.16), transparent 30%),
        linear-gradient(rgba(236, 242, 247, 0.8), rgba(236, 242, 247, 0.84)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp') center / cover no-repeat;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-y: auto;
}

.emergency-page {
    padding: 92px 14px 46px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1020px;
}

.emergency-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, transparent 32%),
        linear-gradient(145deg, #da232f 0%, #b11226 62%, #790f19 100%);
    color: #fff;
    border-radius: 22px;
    padding: 24px 20px;
    margin-bottom: 14px;
    box-shadow: 0 16px 34px rgba(121, 15, 25, 0.25);
}

.emergency-header::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: none;
}

.header-kicker {
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.emergency-header h1 {
    margin: 0 0 6px;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.2;
    font-weight: 800;
}

.emergency-header p {
    margin: 0;
    font-size: 15px;
    max-width: 680px;
    opacity: 0.96;
}

.header-points {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-point {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    margin-bottom: 14px;
}

.network-banner {
    margin: 0 0 12px;
    border: 1px solid #f5c2c7;
    background: linear-gradient(180deg, #fff7f8, #fff0f1);
    color: #9f1239;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
}

.tracking-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d6e1ee;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(19, 33, 47, 0.09);
    backdrop-filter: blur(3px);
}

.tracking-card h2 {
    margin: 0 0 5px;
    font-size: 33px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tracking-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.quick-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #d4e0ec;
    border-radius: 999px;
    padding: 0 9px;
    background: #f7fbff;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.mini-flow {
    margin: 10px 0 0;
    padding-left: 17px;
    display: grid;
    gap: 4px;
    color: #3f4e60;
    font-size: 12px;
}

.tracking-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    color: #fff;
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 100ms ease, box-shadow 120ms ease;
}

.track-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(153, 27, 27, 0.28);
}

.track-btn.secondary {
    background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
    color: #111827;
}

.tracking-result {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    font-size: 13px;
}

.user-status-card {
    display: grid;
    gap: 8px;
}

.user-status-form {
    display: grid;
    gap: 8px;
}

.status-meta {
    margin: 0;
    font-size: 13px;
    color: #374151;
}

.status-flash {
    margin: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.status-flash.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.status-flash.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.tracking-meta {
    display: grid;
    gap: 4px;
}

.field-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.tracking-timeline {
    margin-top: 12px;
    border-top: 1px solid #eef2f7;
    padding-top: 10px;
}

.tracking-timeline h4 {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
}

.tracking-timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tracking-timeline li {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 10px;
    align-items: start;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.timeline-title {
    font-weight: 700;
    color: #111827;
    font-size: 13px;
}

.timeline-meta {
    color: #6b7280;
    font-size: 12px;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.status-pill.received { background: #dbeafe; color: #1e40af; }
.status-pill.validating { background: #fef3c7; color: #92400e; }
.status-pill.assigned { background: #e0e7ff; color: #3730a3; }
.status-pill.progress { background: #dcfce7; color: #166534; }
.status-pill.resolved { background: #f3f4f6; color: #111827; }

.tracking-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px;
}

.report-tracking-page {
    min-height: calc(100vh - 72px);
    padding: 92px 14px 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tracking-container {
    width: 100%;
    max-width: 760px;
}

.tracking-hero {
    margin-bottom: 12px;
}

.tracking-card-dedicated {
    padding: 14px;
}

.tracking-actions-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.tracking-link-btn {
    text-decoration: none;
    width: fit-content;
}

.disaster-workspace {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

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

.disaster-header h3 {
    margin: 0;
    font-size: 20px;
}

.disaster-network-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
}

.disaster-network-state.online {
    background: #dcfce7;
    color: #166534;
}

.disaster-network-state.offline {
    background: #fee2e2;
    color: #991b1b;
}

.disaster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.disaster-panel {
    border: 1px solid #dbe7f2;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    min-height: 120px;
}

#disasterSelfRescueWrap.disaster-panel {
    grid-column: 1 / -1;
}

#disasterSelfRescueWrap .disaster-guidance-list {
    max-height: 220px;
    overflow: auto;
}

.disaster-panel h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.disaster-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.disaster-note {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 4px;
}

.disaster-note small {
    color: #6b7280;
}

.disaster-note.severity-critical {
    border-color: #fecaca;
    background: #fef2f2;
}

.disaster-note.severity-in_progress {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.disaster-note.severity-resolved {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.disaster-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.disaster-timeline-list li {
    display: grid;
    gap: 2px;
    border-left: 3px solid #93c5fd;
    padding-left: 8px;
}

.disaster-timeline-list small {
    color: #6b7280;
}

.responder-presence {
    display: grid;
    gap: 3px;
    margin-bottom: 8px;
}

.disaster-map {
    width: 100%;
    min-height: 260px;
    border-radius: 10px;
    border: 1px solid #dbe7f2;
}

.center-rank-list {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow: auto;
}

.center-card {
    border: 1px solid #dbe7f2;
    border-radius: 10px;
    padding: 8px;
}

.center-card.safe {
    border-color: #34d399;
    background: #ecfdf5;
}

.center-card.active {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.center-card.full {
    border-color: #fecaca;
    background: #fef2f2;
}

.center-card h5 {
    margin: 0 0 4px;
    font-size: 13px;
}

.center-card p,
.center-card .meta {
    margin: 0;
    font-size: 12px;
    color: #374151;
}

.center-card .nearest {
    display: inline-block;
    margin-left: 5px;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
}

.chat-list {
    border: 1px solid #dbe7f2;
    border-radius: 10px;
    min-height: 180px;
    max-height: 240px;
    padding: 8px;
    overflow: auto;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.chat-msg {
    display: grid;
    gap: 4px;
    padding: 7px;
    border-radius: 10px;
    max-width: 92%;
}

.chat-msg header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
}

.chat-msg small {
    color: #6b7280;
}

.chat-msg p {
    margin: 0;
    font-size: 13px;
}

.chat-msg.mine {
    justify-self: end;
    background: #dbeafe;
}

.chat-msg.theirs {
    justify-self: start;
    background: #ecfeff;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.chat-form input {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0 10px;
}

.disaster-guidance-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

a.track-btn,
a.track-btn:visited,
a.track-btn:hover,
a.track-btn:focus {
    color: #fff;
    text-decoration: none;
}

.emergency-form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d4e0ed;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 34px rgba(19, 33, 47, 0.12);
}

.form-shell-head {
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.form-shell-head h2 {
    margin: 0 0 4px;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.form-shell-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.form-meta-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.form-meta {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid #d8e4f0;
    background: #f4f9ff;
    color: #31455a;
    font-size: 11px;
    font-weight: 700;
    min-height: 24px;
    padding: 0 8px;
}

.emergency-form {
    display: grid;
    gap: 14px;
}

.form-section {
    background: linear-gradient(180deg, #ffffff, #fafdff);
    border: 1px solid #d4dfeb;
    border-top: 3px solid var(--primary);
    border-left: 1px solid #d4dfeb;
    border-radius: 18px;
    padding: 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.form-section:hover,
.form-section:focus-within {
    border-color: #b9c8da;
    box-shadow: 0 8px 18px rgba(19, 33, 47, 0.08);
    transform: translateY(-1px);
}

.section-location { border-left-color: #f59e0b; }
.section-contact { border-left-color: #3b82f6; }
.section-details { border-left-color: #10b981; }

.section-title {
    margin: 0 0 10px;
    font-size: 27px;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.section-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eef5;
}

.section-sub {
    margin: -5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.color-legend {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    background: #f8fafc;
    margin-bottom: 8px;
}

.legend-title {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .08em;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.legend-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 4px;
    transition: border-color 120ms ease, transform 120ms ease;
}

.legend-item:hover {
    border-color: #bdcad8;
    transform: translateY(-1px);
}

.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.color-indicator.green { background: #10b981; }
.color-indicator.orange { background: #f59e0b; }
.color-indicator.red { background: #ef4444; }

.color-label {
    font-size: 10px;
    font-weight: 700;
}

.form-row,
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.form-group {
    display: grid;
    gap: 4px;
}

.form-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c7d2df;
    border-radius: 13px;
    padding: 9px 12px;
    font-size: 13px;
    background: #ffffff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%),
        linear-gradient(to right, #d9e2ec, #d9e2ec);
    background-position:
        calc(100% - 18px) calc(50% + 1px),
        calc(100% - 13px) calc(50% + 1px),
        calc(100% - 38px) 50%;
    background-size:
        5px 5px,
        5px 5px,
        1px 22px;
    background-repeat: no-repeat;
    padding-right: 44px;
    cursor: pointer;
}

select:disabled {
    color: #94a3b8;
    background-color: #f8fafc;
    cursor: not-allowed;
}

select option[value=""] {
    color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1f6ea8;
    box-shadow: 0 0 0 3px rgba(31, 110, 168, 0.15);
}

textarea {
    min-height: 82px;
    resize: vertical;
}

.form-help {
    font-size: 12px;
    color: var(--muted);
}

.field-error {
    font-size: 11px;
    color: #b91c1c;
    margin-top: -2px;
}

.input-error {
    border-color: #ef4444;
}

.form-status {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    display: none;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-status.pending {
    display: block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.form-status.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.draft-indicator {
    font-size: 12px;
    color: #475569;
    min-height: 18px;
    font-weight: 600;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.checkbox-label {
    display: flex;
    gap: 9px;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #26384c;
    border: 1px solid #d5e0ec;
    border-radius: 13px;
    padding: 10px 11px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    transition: border-color 120ms ease, background-color 120ms ease;
}

.checkbox-label:hover {
    border-color: #bfd0e0;
    background: #f8fbff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #b91c1c;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #f5a2a2;
    background: linear-gradient(180deg, #fff8f8, #ffeef0);
}

.need-help-toggle {
    border-color: #f8b4b4;
    background: linear-gradient(180deg, #ffffff, #fff8f8);
    color: #7f1d1d;
}

.need-help-toggle input[type="checkbox"] {
    accent-color: #b91c1c;
}

.need-help-toggle:has(input[type="checkbox"]:checked) {
    border-color: #ef4444;
    background: linear-gradient(180deg, #fff6f6, #ffeef0);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.form-group .form-help {
    margin-top: 6px;
}

.affected-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.affected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f8fafc;
    padding: 8px 10px;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.affected-item:focus-within {
    border-color: #b6c9de;
    background: #f4f9ff;
}

.affected-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.affected-item input[type="number"] {
    width: 82px;
    min-height: 34px;
    text-align: center;
    font-weight: 600;
    padding: 6px 8px;
}

.file-input { display: none; }

.file-upload-wrapper {
    border: 1px dashed #9ca3af;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    background: #fbfcff;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.file-upload-wrapper:hover {
    border-color: #6b7f97;
    background: #f4f8fe;
}

.upload-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
    margin-bottom: 4px;
}

.image-preview {
    margin-top: 10px;
    position: relative;
    width: min(100%, 320px);
    min-height: 180px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    place-items: center;
    padding: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f8fafc;
}

.image-preview.is-hidden {
    display: none;
}

.image-preview img {
    width: auto;
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    border: 0;
    border-radius: 999px;
    width: 28px;
    height: 28px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

.btn-emergency {
    border: 0;
    background: linear-gradient(180deg, #dc2626, #991b1b);
    color: #fff;
    border-radius: 16px;
    min-height: 50px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(153, 27, 27, 0.24);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-emergency:focus-visible,
.btn-outline:focus-visible,
.track-btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

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

.btn-emergency:hover { background: var(--primary-strong); }

.btn-emergency:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(153, 27, 27, 0.28);
}

.location-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-outline {
    border: 1px solid #d1d5db;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    color: #111827;
    border-radius: 12px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.btn-outline:hover {
    border-color: #9ca3af;
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.08);
}

.btn-outline:active {
    transform: translateY(1px);
}

.btn-outline:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#locationCoordinates {
    max-width: 260px;
    background: #f4f7fb;
    color: #4b5563;
    font-weight: 600;
}

.location-field .form-help {
    margin-top: 2px;
}

#locationStatus.success {
    color: #166534;
}

#locationStatus.error {
    color: #b91c1c;
}

.emergency-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #f7c9c9;
    background: linear-gradient(180deg, #fff4f4, #ffefef);
    border-radius: 16px;
    padding: 10px;
    font-size: 11px;
    color: #7f1d1d;
}

.note-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fee2e2;
    font-weight: 700;
}

@media (max-width: 760px) {
    .emergency-page { padding-top: 80px; }
    .utility-grid { grid-template-columns: 1fr; }
    .emergency-header h1 { font-size: 30px; }
    .emergency-header p { font-size: 14px; }
    .section-title { font-size: 23px; }
    .tracking-controls { grid-template-columns: 1fr; }
    .report-tracking-page { padding-top: 78px; }
    .form-row,
    .form-grid-2,
    .legend-items,
    .checkbox-group,
    .affected-grid {
        grid-template-columns: 1fr;
    }

    .affected-item input[type="number"] {
        width: 96px;
    }

    .location-tools {
        align-items: stretch;
    }

    .btn-outline,
    #locationCoordinates {
        width: 100%;
        max-width: none;
    }

    .quick-badges,
    .form-meta-row {
        gap: 5px;
    }

    .disaster-grid {
        grid-template-columns: 1fr;
    }

    #disasterSelfRescueWrap.disaster-panel {
        grid-column: auto;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .emergency-header,
    .tracking-card,
    .emergency-form-container,
    .form-section {
        animation: fadeInUp 260ms ease-out both;
    }

    .tracking-card:nth-child(2) {
        animation-delay: 45ms;
    }

    .form-section:nth-child(2) {
        animation-delay: 60ms;
    }


/* ============================================
   REPORTER V2 - CLEAR VISUAL REFRESH
   (Design only; layout unchanged)
   ============================================ */
.reporter-report-v2 {
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.18), transparent 36%),
        radial-gradient(circle at 95% 0%, rgba(239, 68, 68, 0.16), transparent 34%),
        linear-gradient(rgba(239, 245, 252, 0.84), rgba(239, 245, 252, 0.88)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp') center / cover no-repeat;
}

.reporter-report-v2 .emergency-header {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 34%),
        linear-gradient(145deg, #cf2138 0%, #aa1831 52%, #6f1020 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 40px rgba(111, 16, 32, 0.34);
}

.reporter-report-v2 .header-kicker {
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.reporter-report-v2 .tracking-card,
.reporter-report-v2 .emergency-form-container {
    background:
        radial-gradient(circle at 0% 0%, rgba(186, 230, 253, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.95));
    border-color: #bfd0e2;
    box-shadow: 0 16px 34px rgba(20, 35, 58, 0.16);
}

.reporter-report-v2 .tracking-card h2,
.reporter-report-v2 .form-shell-head h2,
.reporter-report-v2 .section-title {
    color: #102743;
}

.reporter-report-v2 .quick-badge,
.reporter-report-v2 .form-meta {
    background: #eef6ff;
    border-color: #cfe1f7;
    color: #244364;
}

.reporter-report-v2 .form-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    border-color: #c4d5e8;
    border-top-width: 4px;
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(19, 33, 47, 0.1);
}

.reporter-report-v2 .form-section::before {
    content: '';
    position: absolute;
    right: -48px;
    top: -48px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.07);
    pointer-events: none;
}

.reporter-report-v2 .form-section.section-incident {
    border-top-color: #dc2626;
}

.reporter-report-v2 .form-section.section-location {
    border-top-color: #2563eb;
}

.reporter-report-v2 .form-section.section-contact {
    border-top-color: #0ea5e9;
}

.reporter-report-v2 .form-section.section-details {
    border-top-color: #0f766e;
}

.reporter-report-v2 .form-section.section-incident::before {
    background: rgba(220, 38, 38, 0.08);
}

.reporter-report-v2 .form-section.section-location::before {
    background: rgba(37, 99, 235, 0.08);
}

.reporter-report-v2 .form-section.section-contact::before {
    background: rgba(14, 165, 233, 0.08);
}

.reporter-report-v2 .form-section.section-details::before {
    background: rgba(15, 118, 110, 0.09);
}

.reporter-report-v2 .section-head {
    border-bottom-color: #d9e5f1;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.reporter-report-v2 .section-title {
    font-size: clamp(28px, 2.5vw, 34px);
    line-height: 1.08;
}

.reporter-report-v2 .section-sub {
    color: #4b6078;
    font-size: 12px;
    font-weight: 600;
}

.reporter-report-v2 input:not([type="checkbox"]):not([type="radio"]),
.reporter-report-v2 select,
.reporter-report-v2 textarea {
    border-color: #b9ccdf;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border-radius: 14px;
    min-height: 46px;
    font-size: 14px;
    color: #132a45;
}

.reporter-report-v2 input:focus,
.reporter-report-v2 select:focus,
.reporter-report-v2 textarea:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.reporter-report-v2 .checkbox-label {
    min-height: 52px;
    background: linear-gradient(180deg, #ffffff, #f5faff);
    border-color: #c4d6e8;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(20, 35, 58, 0.05);
}

.reporter-report-v2 .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #7aa5cf;
    background: linear-gradient(180deg, #eff6ff, #e8f2ff);
    box-shadow: 0 6px 14px rgba(35, 93, 160, 0.12);
}

.reporter-report-v2 .need-help-toggle {
    border-color: #f1b7bd;
    background: linear-gradient(180deg, #fffafb, #fff2f4);
}

.reporter-report-v2 .need-help-toggle:has(input[type="checkbox"]:checked) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.reporter-report-v2 .affected-item {
    border-color: #c2d4e6;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f2f8ff);
    box-shadow: 0 5px 12px rgba(20, 35, 58, 0.06);
}

.reporter-report-v2 .btn-outline {
    border-color: #c2d3e5;
    background: linear-gradient(180deg, #ffffff, #eaf1fa);
    color: #1e3a5f;
    min-height: 42px;
    border-radius: 12px;
}

.reporter-report-v2 .btn-emergency {
    background: linear-gradient(180deg, #e11d48, #be123c);
    min-height: 54px;
    border-radius: 18px;
    font-size: 17px;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(190, 18, 60, 0.3);
}

.reporter-report-v2 .btn-emergency:hover {
    background: linear-gradient(180deg, #be123c, #9f1239);
    box-shadow: 0 14px 26px rgba(159, 18, 57, 0.34);
}

.reporter-report-v2 .network-banner {
    border-color: #f2b8c1;
    background: linear-gradient(180deg, #fff8f9, #fff1f3);
    border-radius: 14px;
}

.reporter-report-v2 .form-status.pending {
    background: #eef5ff;
    border-color: #c5d8fb;
    color: #1e40af;
}

.reporter-report-v2 .form-status.success {
    background: #ecfdf3;
    border-color: #b7efd1;
    color: #166534;
}

/* ============================================
   REPORTER V3 - PREMIUM PROFESSIONAL
   (Design only, no layout changes)
   ============================================ */
.reporter-report-v3 {
    --v3-ink: #11263f;
    --v3-muted: #51657d;
    --v3-line: #c8d5e3;
    --v3-accent: #c91f3a;
    --v3-accent-dark: #991b2f;
    --v3-soft: #f2f7fd;
    --v3-focus: #1d4ed8;
}

.reporter-report-v3 .emergency-header {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 40px rgba(110, 18, 34, 0.28);
}

.reporter-report-v3 .header-kicker,
.reporter-report-v3 .header-point {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.reporter-report-v3 .tracking-card,
.reporter-report-v3 .emergency-form-container {
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 255, 0.95));
    border: 1px solid var(--v3-line);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(16, 35, 58, 0.14);
}

.reporter-report-v3 .form-shell-head {
    border-bottom-color: #d8e2ee;
}

.reporter-report-v3 .form-shell-head h2,
.reporter-report-v3 .section-title,
.reporter-report-v3 .tracking-card h2 {
    color: var(--v3-ink);
}

.reporter-report-v3 .form-shell-head h2 {
    font-size: clamp(31px, 2.5vw, 38px);
    line-height: 1.05;
}

.reporter-report-v3 .form-shell-head p,
.reporter-report-v3 .section-sub,
.reporter-report-v3 .tracking-sub {
    color: var(--v3-muted);
}

.reporter-report-v3 .form-meta,
.reporter-report-v3 .quick-badge {
    border-color: #d0deee;
    background: linear-gradient(180deg, #f8fbff, #edf4fb);
    color: #2b4663;
}

.reporter-report-v3 .form-section {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-color: #cad8e8;
    border-top-width: 4px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(17, 38, 62, 0.09);
}

.reporter-report-v3 .section-title {
    font-size: clamp(27px, 2.1vw, 33px);
    letter-spacing: -0.02em;
}

.reporter-report-v3 .section-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom-color: #dbe6f2;
}

.reporter-report-v3 .form-group label {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #23415f;
}

.reporter-report-v3 input:not([type="checkbox"]):not([type="radio"]),
.reporter-report-v3 select,
.reporter-report-v3 textarea {
    min-height: 46px;
    border: 1px solid #bdd0e3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, var(--v3-soft));
    color: #163352;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reporter-report-v3 textarea {
    min-height: 100px;
}

.reporter-report-v3 input:focus,
.reporter-report-v3 select:focus,
.reporter-report-v3 textarea:focus {
    border-color: var(--v3-focus);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.reporter-report-v3 .color-legend {
    border-color: #cddbeb;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff, #f2f7ff);
}

.reporter-report-v3 .legend-item {
    border-color: #d3dfed;
    border-radius: 10px;
}

.reporter-report-v3 .checkbox-label {
    min-height: 50px;
    border-radius: 14px;
    border-color: #c2d4e7;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.reporter-report-v3 .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #8aaed3;
    background: linear-gradient(180deg, #f0f6ff, #e9f1ff);
    box-shadow: 0 6px 14px rgba(35, 79, 140, 0.12);
}

.reporter-report-v3 .need-help-toggle {
    border-color: #efc0c7;
    background: linear-gradient(180deg, #fff9fa, #fff2f4);
}

.reporter-report-v3 .need-help-toggle:has(input[type="checkbox"]:checked) {
    border-color: var(--v3-accent);
    box-shadow: 0 0 0 3px rgba(201, 31, 58, 0.16);
}

.reporter-report-v3 .affected-item {
    border-color: #c6d7e9;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

.reporter-report-v3 .affected-name {
    color: #1e3f63;
    font-weight: 700;
}

.reporter-report-v3 .track-btn,
.reporter-report-v3 .btn-outline {
    min-height: 44px;
    border-radius: 12px;
}

.reporter-report-v3 .btn-outline {
    border-color: #c5d3e4;
    background: linear-gradient(180deg, #ffffff, #edf3fb);
    color: #1f3f63;
}

.reporter-report-v3 .btn-emergency {
    min-height: 54px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--v3-accent), var(--v3-accent-dark));
    box-shadow: 0 14px 28px rgba(153, 27, 47, 0.3);
}

.reporter-report-v3 .btn-emergency:hover {
    background: linear-gradient(180deg, #af1932, #871628);
}

.reporter-report-v3 .network-banner,
.reporter-report-v3 .form-status,
.reporter-report-v3 .emergency-note {
    border-radius: 12px;
}

.reporter-report-v3 .draft-indicator {
    font-size: 12px;
    color: #3f5977;
    font-weight: 700;
}

@media (max-width: 760px) {
    .reporter-report-v3 .emergency-form-container {
        border-radius: 18px;
        padding: 14px;
    }

    .reporter-report-v3 .form-section {
        border-radius: 16px;
        padding: 12px;
    }

    .reporter-report-v3 .section-title {
        font-size: 24px;
    }

    .reporter-report-v3 input:not([type="checkbox"]):not([type="radio"]),
    .reporter-report-v3 select,
    .reporter-report-v3 textarea {
        min-height: 44px;
    }

    .reporter-report-v3 .btn-emergency {
        min-height: 50px;
    }
}

/* ============================================
   REPORTER V4 - PREMIUM CONSOLE AESTHETIC
   (Design only, same layout, lightweight)
   ============================================ */
.reporter-report-v4 {
    --v4-ink: #0e243f;
    --v4-muted: #4d627a;
    --v4-line: #c3d4e6;
    --v4-surface: #f5f9ff;
    --v4-accent: #d0183a;
    --v4-accent-dark: #95162d;
    --v4-focus: #1d4ed8;
    background:
        radial-gradient(circle at 0% 0%, rgba(8, 145, 178, 0.14), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(208, 24, 58, 0.12), transparent 32%),
        linear-gradient(rgba(243, 248, 255, 0.9), rgba(243, 248, 255, 0.92)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp') center / cover no-repeat;
}

.reporter-report-v4 .emergency-page {
    padding-top: 98px;
}

.reporter-report-v4 .container {
    max-width: 1100px;
}

.reporter-report-v4 .emergency-header {
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 22px 46px rgba(117, 17, 37, 0.3);
}

.reporter-report-v4 .emergency-header h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.reporter-report-v4 .emergency-header p {
    font-size: 15px;
    max-width: 760px;
}

.reporter-report-v4 .header-kicker,
.reporter-report-v4 .header-point {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.2);
}

.reporter-report-v4 .utility-grid {
    margin-bottom: 16px;
    gap: 16px;
}

.reporter-report-v4 .tracking-card,
.reporter-report-v4 .emergency-form-container {
    border-radius: 22px;
    border: 1px solid var(--v4-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.96));
    box-shadow: 0 16px 34px rgba(14, 36, 63, 0.14);
}

.reporter-report-v4 .tracking-card h2,
.reporter-report-v4 .form-shell-head h2,
.reporter-report-v4 .section-title {
    color: var(--v4-ink);
}

.reporter-report-v4 .tracking-card h2 {
    font-size: clamp(28px, 2.3vw, 36px);
}

.reporter-report-v4 .tracking-sub,
.reporter-report-v4 .form-shell-head p,
.reporter-report-v4 .section-sub {
    color: var(--v4-muted);
}

.reporter-report-v4 .form-shell-head {
    border-bottom: 1px solid #d7e2ef;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.reporter-report-v4 .form-shell-head h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(34px, 2.8vw, 44px);
    line-height: 1.02;
}

.reporter-report-v4 .form-meta,
.reporter-report-v4 .quick-badge {
    border-radius: 999px;
    min-height: 27px;
    padding: 0 11px;
    border-color: #cedff0;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    color: #2a4562;
    font-size: 11px;
    font-weight: 700;
}

.reporter-report-v4 .form-section {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border-color: #c9d8e8;
    border-top-width: 5px;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(17, 38, 62, 0.1);
    background: linear-gradient(180deg, #ffffff, var(--v4-surface));
}

.reporter-report-v4 .form-section::after {
    content: '';
    position: absolute;
    right: -42px;
    top: -42px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    pointer-events: none;
}

.reporter-report-v4 .section-incident::after {
    background: rgba(208, 24, 58, 0.09);
}

.reporter-report-v4 .section-location::after {
    background: rgba(29, 78, 216, 0.09);
}

.reporter-report-v4 .section-contact::after {
    background: rgba(14, 165, 233, 0.1);
}

.reporter-report-v4 .section-details::after {
    background: rgba(15, 118, 110, 0.1);
}

.reporter-report-v4 .section-head {
    border-bottom-color: #dbe6f2;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.reporter-report-v4 .section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(30px, 2.4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.reporter-report-v4 .form-group label {
    color: #1f3e5f;
    font-size: 10px;
    letter-spacing: 0.09em;
}

.reporter-report-v4 input:not([type="checkbox"]):not([type="radio"]),
.reporter-report-v4 select,
.reporter-report-v4 textarea {
    min-height: 48px;
    border: 1px solid #bfcfe1;
    border-radius: 15px;
    padding: 11px 14px;
    font-size: 14px;
    color: #123252;
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reporter-report-v4 textarea {
    min-height: 108px;
}

.reporter-report-v4 input:focus,
.reporter-report-v4 select:focus,
.reporter-report-v4 textarea:focus {
    border-color: var(--v4-focus);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.reporter-report-v4 .color-legend {
    border-radius: 14px;
    border-color: #ccdced;
    background: linear-gradient(180deg, #fbfdff, #f2f7ff);
}

.reporter-report-v4 .legend-item {
    border-radius: 10px;
    border-color: #d3dfed;
}

.reporter-report-v4 .checkbox-label {
    min-height: 54px;
    border-radius: 15px;
    border-color: #c3d4e6;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
    box-shadow: 0 6px 14px rgba(16, 36, 61, 0.06);
}

.reporter-report-v4 .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #88aed4;
    background: linear-gradient(180deg, #eef6ff, #e8f1ff);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.12);
}

.reporter-report-v4 .need-help-toggle {
    border-color: #efbec6;
    background: linear-gradient(180deg, #fff9fa, #fff2f4);
}

.reporter-report-v4 .need-help-toggle:has(input[type="checkbox"]:checked) {
    border-color: var(--v4-accent);
    box-shadow: 0 0 0 3px rgba(208, 24, 58, 0.16);
}

.reporter-report-v4 .affected-item {
    min-height: 54px;
    border-radius: 14px;
    border-color: #c7d7e8;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

.reporter-report-v4 .affected-name {
    color: #1e3f63;
    font-weight: 700;
}

.reporter-report-v4 .track-btn,
.reporter-report-v4 .btn-outline {
    min-height: 44px;
    border-radius: 13px;
}

.reporter-report-v4 .btn-outline {
    border-color: #c6d4e5;
    background: linear-gradient(180deg, #ffffff, #edf3fb);
    color: #1f3f63;
}

.reporter-report-v4 .btn-emergency {
    min-height: 56px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, var(--v4-accent), var(--v4-accent-dark));
    box-shadow: 0 16px 30px rgba(149, 22, 45, 0.3);
}

.reporter-report-v4 .btn-emergency:hover {
    background: linear-gradient(180deg, #b71834, #841628);
}

.reporter-report-v4 .form-status,
.reporter-report-v4 .network-banner,
.reporter-report-v4 .emergency-note {
    border-radius: 13px;
}

.reporter-report-v4 .draft-indicator {
    color: #3f5977;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .reporter-report-v4 .emergency-page {
        padding-top: 86px;
    }

    .reporter-report-v4 .emergency-header {
        border-radius: 20px;
        padding: 20px 16px;
    }

    .reporter-report-v4 .emergency-header h1 {
        font-size: 34px;
    }

    .reporter-report-v4 .tracking-card,
    .reporter-report-v4 .emergency-form-container {
        border-radius: 18px;
    }

    .reporter-report-v4 .form-section {
        border-radius: 16px;
        padding: 12px;
    }

    .reporter-report-v4 .section-title {
        font-size: 24px;
    }

    .reporter-report-v4 input:not([type="checkbox"]):not([type="radio"]),
    .reporter-report-v4 select,
    .reporter-report-v4 textarea {
        min-height: 44px;
    }

    .reporter-report-v4 .checkbox-label,
    .reporter-report-v4 .affected-item {
        min-height: 50px;
    }

    .reporter-report-v4 .btn-emergency {
        min-height: 52px;
        font-size: 16px;
    }
}

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

/* ============================================
   REPORTER V5 - FULL VISUAL MAKEOVER
   (Design only, same layout/flow)
   ============================================ */
.reporter-report-v5 {
    --v5-ink: #12253e;
    --v5-muted: #4e627c;
    --v5-line: #c7d5e6;
    --v5-surface: #f4f8fd;
    --v5-accent: #cf1f3d;
    --v5-accent-dark: #8f1631;
    --v5-info: #1d4ed8;
    background:
        radial-gradient(circle at 0% 0%, rgba(29, 78, 216, 0.2), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(207, 31, 61, 0.16), transparent 36%),
        linear-gradient(rgba(243, 248, 255, 0.9), rgba(243, 248, 255, 0.94)),
        url('../images/663910607_977507174700059_2109660712684329952_n.webp') center / cover no-repeat;
    color: var(--v5-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reporter-report-v5 .container {
    max-width: 1120px;
}

.reporter-report-v5 .emergency-page {
    padding-top: 98px;
}

.reporter-report-v5 .emergency-header {
    position: relative;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        radial-gradient(circle at 15% -20%, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(145deg, #cf1f3d 0%, #af1732 56%, #821527 100%);
    box-shadow: 0 20px 40px rgba(120, 17, 36, 0.28);
}

.reporter-report-v5 .emergency-header::before {
    display: none;
}

.reporter-report-v5 .header-kicker {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 800;
}

.reporter-report-v5 .emergency-header h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.reporter-report-v5 .emergency-header p {
    max-width: 56ch;
    font-size: 14px;
    line-height: 1.45;
}

.reporter-report-v5 .header-point {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.18);
    font-size: 10px;
    font-weight: 700;
}

.reporter-report-v5 .network-banner {
    margin-bottom: 14px;
    border-radius: 13px;
    border-color: #f1b8c2;
    background: linear-gradient(180deg, #fff8fa, #fff1f4);
    color: #9c1733;
}

.reporter-report-v5 .utility-grid {
    gap: 16px;
    margin-bottom: 16px;
}

.reporter-report-v5 .tracking-card,
.reporter-report-v5 .emergency-form-container {
    border: 1px solid var(--v5-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
    box-shadow: 0 16px 34px rgba(16, 35, 58, 0.14);
}

.reporter-report-v5 .tracking-card h2 {
    font-size: clamp(29px, 2.3vw, 38px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--v5-ink);
}

.reporter-report-v5 .tracking-sub,
.reporter-report-v5 .status-meta,
.reporter-report-v5 .form-shell-head p,
.reporter-report-v5 .section-sub,
.reporter-report-v5 .form-help {
    color: var(--v5-muted);
}

.reporter-report-v5 .track-btn,
.reporter-report-v5 .btn-outline {
    min-height: 44px;
    border-radius: 13px;
}

.reporter-report-v5 .quick-badge,
.reporter-report-v5 .form-meta {
    border-color: #d0deee;
    background: linear-gradient(180deg, #f9fbff, #edf3fb);
    color: #2c4a67;
    font-size: 11px;
    font-weight: 700;
}

.reporter-report-v5 .emergency-form-container {
    border-radius: 24px;
    padding: 22px;
}

.reporter-report-v5 .form-shell-head {
    border-bottom: 1px solid #d9e3ef;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.reporter-report-v5 .form-shell-head h2 {
    font-size: clamp(35px, 2.8vw, 45px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--v5-ink);
}

.reporter-report-v5 .emergency-form {
    gap: 16px;
}

.reporter-report-v5 .form-section {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border-color: #c9d9e9;
    border-top-width: 5px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, var(--v5-surface));
    box-shadow: 0 12px 26px rgba(17, 38, 62, 0.1);
}

.reporter-report-v5 .form-section::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(29, 78, 216, 0.08);
}

.reporter-report-v5 .section-incident::before {
    background: rgba(207, 31, 61, 0.1);
}

.reporter-report-v5 .section-location::before {
    background: rgba(29, 78, 216, 0.1);
}

.reporter-report-v5 .section-contact::before {
    background: rgba(14, 165, 233, 0.1);
}

.reporter-report-v5 .section-details::before {
    background: rgba(15, 118, 110, 0.1);
}

.reporter-report-v5 .section-head {
    border-bottom-color: #dce7f2;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.reporter-report-v5 .section-title {
    color: var(--v5-ink);
    font-size: clamp(30px, 2.4vw, 40px);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.reporter-report-v5 .form-group label {
    color: #214160;
    font-size: 10px;
    letter-spacing: 0.09em;
    font-weight: 800;
}

.reporter-report-v5 input:not([type="checkbox"]):not([type="radio"]),
.reporter-report-v5 select,
.reporter-report-v5 textarea {
    min-height: 49px;
    border: 1px solid #bfd1e3;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #153556;
    font-size: 14px;
    padding: 12px 14px;
}

.reporter-report-v5 textarea {
    min-height: 108px;
}

.reporter-report-v5 input:focus,
.reporter-report-v5 select:focus,
.reporter-report-v5 textarea:focus {
    border-color: var(--v5-focus);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.reporter-report-v5 .color-legend {
    border-radius: 14px;
    border-color: #cfdeed;
    background: linear-gradient(180deg, #fbfdff, #f2f7ff);
}

.reporter-report-v5 .legend-item {
    min-height: 64px;
    border-radius: 11px;
    border-color: #d3e0ee;
}

.reporter-report-v5 .checkbox-label {
    min-height: 56px;
    border-radius: 15px;
    border-color: #c4d6e9;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
    box-shadow: 0 6px 14px rgba(16, 36, 61, 0.07);
}

.reporter-report-v5 .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #87afd7;
    background: linear-gradient(180deg, #edf6ff, #e8f1ff);
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.12);
}

.reporter-report-v5 .need-help-toggle {
    border-color: #efc2cb;
    background: linear-gradient(180deg, #fff9fa, #fff1f4);
}

.reporter-report-v5 .need-help-toggle:has(input[type="checkbox"]:checked) {
    border-color: var(--v5-accent);
    box-shadow: 0 0 0 3px rgba(207, 31, 61, 0.16);
}

.reporter-report-v5 .affected-item {
    min-height: 56px;
    border-radius: 14px;
    border-color: #c8d8e9;
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

.reporter-report-v5 .affected-name {
    color: #1f4064;
    font-weight: 700;
}

.reporter-report-v5 .btn-outline {
    border-color: #c7d5e5;
    background: linear-gradient(180deg, #ffffff, #edf3fb);
    color: #1f3f63;
}

.reporter-report-v5 .btn-emergency {
    min-height: 58px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, var(--v5-accent), var(--v5-accent-dark));
    box-shadow: 0 16px 32px rgba(143, 22, 49, 0.31);
}

.reporter-report-v5 .btn-emergency:hover {
    background: linear-gradient(180deg, #b31836, #821528);
}

.reporter-report-v5 .form-status,
.reporter-report-v5 .network-banner,
.reporter-report-v5 .emergency-note {
    border-radius: 13px;
}

.reporter-report-v5 .draft-indicator {
    color: #405a77;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .reporter-report-v5 .emergency-page {
        padding-top: 86px;
    }

    .reporter-report-v5 .emergency-header {
        border-radius: 20px;
        padding: 20px 16px;
    }

    .reporter-report-v5 .emergency-header h1 {
        font-size: 34px;
    }

    .reporter-report-v5 .tracking-card,
    .reporter-report-v5 .emergency-form-container {
        border-radius: 18px;
    }

    .reporter-report-v5 .emergency-form-container {
        padding: 14px;
    }

    .reporter-report-v5 .form-section {
        border-radius: 16px;
        padding: 12px;
    }

    .reporter-report-v5 .section-title {
        font-size: 24px;
    }

    .reporter-report-v5 input:not([type="checkbox"]):not([type="radio"]),
    .reporter-report-v5 select,
    .reporter-report-v5 textarea {
        min-height: 44px;
    }

    .reporter-report-v5 .checkbox-label,
    .reporter-report-v5 .affected-item {
        min-height: 50px;
    }

    .reporter-report-v5 .btn-emergency {
        min-height: 52px;
        font-size: 16px;
    }
}

/* Reporter tracking V5 page refinements */
.reporter-tracking-v5 .report-tracking-page {
    padding-top: 94px;
}

.reporter-tracking-v5 .tracking-container {
    max-width: 1120px;
}

.reporter-tracking-v5 .tracking-hero {
    border-radius: 22px;
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        radial-gradient(circle at 15% -20%, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(145deg, #cf1f3d 0%, #af1732 56%, #821527 100%);
    box-shadow: 0 20px 40px rgba(120, 17, 36, 0.28);
}

.reporter-tracking-v5 .tracking-hero h1 {
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.reporter-tracking-v5 .tracking-hero p {
    font-size: 14px;
    max-width: 56ch;
}

.reporter-tracking-v5 .tracking-hero-chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reporter-tracking-v5 .tracking-hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.reporter-tracking-v5 .tracking-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    align-items: start;
}

.reporter-tracking-v5 .tracking-card-dedicated {
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(19, 33, 47, 0.12);
}

.reporter-tracking-v5 .tracking-card-dedicated h2 {
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.01em;
    text-wrap: balance;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
    padding-bottom: 3px;
    text-rendering: optimizeLegibility;
}

.reporter-tracking-v5 .tracking-sub {
    font-size: 14px;
    margin-bottom: 12px;
    max-width: 72ch;
}

.reporter-tracking-v5 #trackingIdInput {
    min-height: 50px;
    border-radius: 13px;
}

.reporter-tracking-v5 .tracking-controls {
    gap: 10px;
}

.reporter-tracking-v5 .track-btn {
    min-height: 50px;
    border-radius: 13px;
}

.reporter-tracking-v5 .tracking-result {
    border-radius: 12px;
    border-color: #c9d9ea;
    background: linear-gradient(180deg, #fcfdff, #f3f8ff);
}

.reporter-tracking-v5 .tracking-side-panel {
    border-radius: 22px;
    border-color: #d1deeb;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
}

.reporter-tracking-v5 .tracking-side-panel h3 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #172b4d;
}

.reporter-tracking-v5 .tracking-side-panel .tracking-mini-list + h3 {
    margin-top: 14px;
}

.reporter-tracking-v5 .tracking-support-grid {
    display: none;
}

.reporter-tracking-v5 .tracking-support-card {
    border-radius: 18px;
    border-color: #d1deeb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}

.reporter-tracking-v5 .tracking-support-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #172b4d;
}

.reporter-tracking-v5 .tracking-mini-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .reporter-tracking-v5 .report-tracking-page {
        padding-top: 82px;
    }

    .reporter-tracking-v5 .tracking-container {
        max-width: 1120px;
    }

    .reporter-tracking-v5 .tracking-hero {
        border-radius: 18px;
        padding: 18px;
    }

    .reporter-tracking-v5 .tracking-hero h1 {
        font-size: 31px;
    }

    .reporter-tracking-v5 .tracking-hero p {
        font-size: 14px;
    }

    .reporter-tracking-v5 .tracking-main-grid {
        grid-template-columns: 1fr;
    }

    .reporter-tracking-v5 .tracking-card-dedicated {
        border-radius: 16px;
        padding: 14px;
    }

    .reporter-tracking-v5 .tracking-card-dedicated h2 {
        font-size: clamp(24px, 7.2vw, 31px);
        line-height: 1.18;
    }
}

/* V5 refinement pass */
.reporter-report-v5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reporter-report-v5 .emergency-header h1,
.reporter-report-v5 .form-shell-head h2,
.reporter-report-v5 .section-title,
.reporter-report-v5 .tracking-card h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.reporter-report-v5 .form-shell-head h2 {
    max-width: 16ch;
}

.reporter-report-v5 .emergency-form {
    counter-reset: section-step;
}

.reporter-report-v5 .form-section {
    counter-increment: section-step;
}

.reporter-report-v5 .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reporter-report-v5 .section-title::before {
    content: 'Step ' counter(section-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #1e3a8a, #1d4ed8);
    box-shadow: 0 6px 14px rgba(29, 78, 216, 0.24);
}

.reporter-report-v5 .section-incident .section-title::before {
    background: linear-gradient(180deg, #b91c1c, #dc2626);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.24);
}

.reporter-report-v5 .section-location .section-title::before {
    background: linear-gradient(180deg, #1e3a8a, #2563eb);
}

.reporter-report-v5 .section-contact .section-title::before {
    background: linear-gradient(180deg, #0369a1, #0ea5e9);
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.24);
}

.reporter-report-v5 .section-details .section-title::before {
    background: linear-gradient(180deg, #0f766e, #14b8a6);
    box-shadow: 0 6px 14px rgba(20, 184, 166, 0.24);
}

.reporter-report-v5 .form-group label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.reporter-report-v5 .checkbox-label {
    position: relative;
    overflow: hidden;
}

.reporter-report-v5 .checkbox-label::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
}

.reporter-report-v5 .checkbox-label:has(input[type='checkbox']:checked)::after {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.reporter-report-v5 .need-help-toggle:has(input[type='checkbox']:checked)::after {
    background: linear-gradient(180deg, #dc2626, #b91c1c);
}

.reporter-report-v5 .btn-emergency {
    position: relative;
    overflow: hidden;
}

.reporter-report-v5 .btn-emergency::before {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.24) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 260ms ease;
}

.reporter-report-v5 .btn-emergency:hover::before {
    left: 120%;
}

@media (max-width: 760px) {
    .reporter-report-v5 .section-title::before {
        min-height: 24px;
        padding: 0 8px;
        font-size: 9px;
    }
}
