:root {
    --bg: #0f1420;
    --bg-card: #182234;
    --bg-input: #1f2b3e;
    --border: #2b3a52;
    --text: #e8edf5;
    --text-dim: #9aa8bd;
    --accent: #2f6df0;
    --accent-hover: #2559cc;
    --radius: 8px;
    --error: #ef4444;
    --success: #22c55e;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.geoform-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; }

.geoform-header h1 { margin: 0 0 6px; font-size: 1.5rem; }
.geoform-header p { margin: 0 0 16px; color: var(--text-dim); font-size: 0.92rem; }

.map-hint {
    font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px;
}
#geoMap {
    height: 300px; border-radius: var(--radius);
    border: 1px solid var(--border); margin-bottom: 18px;
}

.geoform-body { display: flex; flex-direction: column; gap: 14px; }
.geoform-body label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 0.85rem; color: var(--text-dim);
}
.geoform-body label.req::after { content: " *"; color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

input[type="text"], select, textarea {
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }

.photos-block { display: flex; flex-direction: column; gap: 8px; }
.photos-label { font-size: 0.85rem; color: var(--text-dim); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumb { position: relative; width: 72px; height: 72px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.photo-thumb button {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
    border-radius: 50%; border: none; background: var(--error); color: #fff;
    cursor: pointer; font-size: 0.7rem; line-height: 1;
}
.btn-upload {
    display: inline-flex; align-items: center; align-self: flex-start;
    padding: 8px 14px; background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; color: var(--text); font-size: 0.88rem;
}
.btn-upload:hover { background: #26344a; }
.hint { font-size: 0.78rem; color: var(--text-dim); }

.btn-primary {
    background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
    padding: 13px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 4px;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
    background: var(--bg-input); color: var(--text); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 11px 18px; font-weight: 600; cursor: pointer;
}

.form-error { color: var(--error); font-size: 0.88rem; margin: 4px 0 0; min-height: 1.1em; }
.dup-warning {
    background: rgba(239, 176, 68, 0.12); border: 1px solid rgba(239, 176, 68, 0.4);
    border-radius: var(--radius); padding: 10px 14px; font-size: 0.88rem;
}
.dup-warning ul { margin: 6px 0; padding-left: 20px; }

.success-screen { text-align: center; padding: 40px 20px; }
.success-check {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--success); color: #fff; font-size: 2rem; line-height: 64px;
}
.success-screen h2 { margin: 0 0 8px; }
.success-screen p { color: var(--text-dim); margin: 0 0 20px; }

.hidden { display: none !important; }
