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

:root {
    --bg: #0f0e0c;
    --card: #211f1b;
    --border: #2e2b26;
    --accent: #c9a84c;
    --accent-dim: #8a6f30;
    --text: #f0ebe0;
    --text-muted: #7a7368;
    --text-soft: #b0a898;
    --input-bg: #1a1815;
    --input-border: #3a3630;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* ── NAVBAR ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 14, 12, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
}

/* ── PAGE ── */
.page {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2.5rem 5rem;
}

.page-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.page h1 span { color: var(--accent); }

/* ── FORM ── */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input[type="text"],
input[type="date"],
select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-dim);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

input::placeholder { color: var(--text-muted); }

select option {
    background: #1a1815;
    color: var(--text);
}

/* ── FIELDSET ── */
fieldset {
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: var(--input-bg);
}

legend {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.4rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item label {
    font-size: 0.875rem;
    color: var(--text-soft);
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    font-weight: 400;
}

/* ── BUTTON ── */
.btn-submit {
    background: var(--accent);
    color: #0f0e0c;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.03em;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

@media (max-width: 640px) {
    nav { padding: 0 1.25rem; }
    .page { padding: 2rem 1.25rem 4rem; }
    .form-card { padding: 1.5rem; } 
}