/* ==========================================================================
   Schützenleben – Vereinsanmeldung
   Design übernommen von der Landingpage (Tokens, Header, Buttons,
   Formular- und Footer-Stile), ergänzt um Login, Preise und Listen.
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #7b580d;
    --brand-dark: #5e4100;
    --brand-light: #a97b1c;
    --brand-gradient: linear-gradient(135deg, #a97b1c 0%, #7b580d 60%, #5a3f09 100%);
    /* Farben wie in der App (lib/shared/ui/theme/app_colors.dart, theme_web.dart) */
    --ink: #1f1b16;
    --muted: #69635b;
    --bg: #fdfbf7;
    --surface: #ffffff;
    --cream: #f5f0e8;
    --fill: #f0eae0;
    --line: #e9e2d7;
    --input-line: #dcd3c4;
    --error: #c62828;
    --ok: #2f8a4c;
    --shadow-sm: 0 1px 2px rgba(28, 24, 19, 0.06), 0 2px 8px rgba(28, 24, 19, 0.05);
    --shadow-md: 0 4px 12px rgba(28, 24, 19, 0.08), 0 12px 32px rgba(28, 24, 19, 0.08);
    --radius: 12px;
    --radius-lg: 18px;
    --header-height: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--brand); }
[hidden] { display: none !important; }

/* Icons: Material Icons als SVG-Sprite in index.html */
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; vertical-align: -0.22em; }
.spinner {
    display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 0.4rem;
    border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    border-bottom-color: var(--line);
    box-shadow: 0 4px 24px rgba(28, 24, 19, 0.06);
}
.header .container {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    height: var(--header-height);
}
.logo {
    display: flex; align-items: center;
    font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--brand); text-decoration: none;
}
.logo-image { width: 38px; height: 38px; margin-right: 0.6rem; }
.header-user { display: flex; align-items: center; gap: 1rem; font-size: 0.92rem; color: var(--muted); min-width: 0; }
.header-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px; border: none;
    font: inherit; font-size: 1rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
/* Einfarbig wie auf hilfe.schuetzenleben.de */
.btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 4px 12px rgba(123, 88, 13, 0.2);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(123, 88, 13, 0.28); }
.btn-secondary {
    background: var(--surface); color: var(--ink);
    border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand-light); color: var(--brand); box-shadow: var(--shadow-md); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.text-btn {
    background: none; border: none; padding: 0;
    font: inherit; font-size: 0.9rem; font-weight: 600;
    color: var(--brand); cursor: pointer;
}
.text-btn:hover { text-decoration: underline; }

/* ---------- Seite ---------- */

.request-page { padding: calc(var(--header-height) + 56px) 0 96px; min-height: 70vh; }

/* Login */
.login-wrap { max-width: 460px; margin: 0 auto; }
.login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
}
.login-card h1 {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 0.6rem;
}
.login-card > p { color: var(--muted); margin-bottom: 1.6rem; }
.login-form { display: grid; gap: 1rem; }
.login-links { display: flex; justify-content: flex-end; margin-top: -0.4rem; }
.login-note {
    margin-top: 1.6rem; padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem; color: var(--muted);
}
.login-note strong { color: var(--ink); }
.store-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }

/* Zweispaltiges Layout nach dem Login */
.request-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
}
.request-intro { position: sticky; top: calc(var(--header-height) + 32px); }
.request-intro h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 1rem;
}
.request-intro > p { color: var(--muted); font-size: 1.05rem; }
.intro-title {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--brand); margin: 2rem 0 0.4rem;
}
.request-ways { list-style: none; }
.request-ways li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-top: 1px solid #ddd3bf; }
.request-ways .icon { width: 18px; margin-top: 0.3rem; color: var(--brand); text-align: center; flex: none; }
.request-ways strong { display: block; font-size: 0.98rem; }
.request-ways span { font-size: 0.92rem; color: var(--muted); }
.request-alt { font-size: 0.9rem; color: var(--muted); margin-top: 1.6rem; }
.request-alt a { font-weight: 600; }

.request-form,
.request-success {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
}

/* ---------- Formular ---------- */

.form-block {
    border: none;
    padding: 0 0 1.8rem; margin: 0 0 1.8rem;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.form-block legend { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 0.88rem; font-weight: 600; }
.field input,
.list-row input {
    width: 100%;
    font: inherit; font-size: 0.98rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--input-line);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.list-row input:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(169, 123, 28, 0.15);
}
.was-validated input:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.form-hint { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.form-hint .icon { color: var(--brand); margin-right: 0.3rem; }

/* Dynamische Listen */
.list { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.list-row { display: flex; gap: 0.5rem; }
.icon-btn {
    flex: none; width: 46px;
    border: 1px solid var(--input-line); border-radius: 10px;
    background: var(--surface); color: var(--muted);
    cursor: pointer; font-size: 0.95rem;
}
.icon-btn:hover { color: var(--error); border-color: var(--error); }
.icon-btn:disabled { visibility: hidden; }

/* Logo-Upload */
.upload {
    position: relative;
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1.5px dashed #d8cdb6; border-radius: 12px;
    cursor: pointer; color: var(--muted); font-size: 0.9rem;
}
.upload:hover, .upload.drag { border-color: var(--brand-light); background: #fbf7ee; }
.was-validated .upload.invalid {
    border: 1.5px solid var(--error);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .icon { width: 1.6rem; height: 1.6rem; color: var(--brand); }
.upload strong { color: var(--ink); margin-right: 0.3rem; }
.logo-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.logo-tile {
    aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line);
    display: grid; place-items: center; padding: 1rem;
}
.logo-tile.light { background: #fff; }
.logo-tile.dark { background: #211b12; }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-info { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); }
.logo-info.error { color: var(--error); font-weight: 600; }

/* Vereinsfarbe */
.color-row { display: flex; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.color-row input[type=color] {
    width: 56px; height: 46px; padding: 3px;
    border: 1px solid var(--input-line); border-radius: 10px;
    background: var(--bg); cursor: pointer;
}
.color-hex { width: 140px; }
.color-sample {
    display: inline-flex; margin-top: 1rem;
    padding: 0.55rem 1.1rem; border-radius: 999px;
    color: #fff; font-weight: 600; font-size: 0.9rem;
}

/* Preise */
.price-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 0.95rem; }
.price-table th, .price-table td { padding: 0.7rem 0.5rem; text-align: right; border-bottom: 1px solid var(--line); }
.price-table td { white-space: nowrap; }
.price-table th:first-child, .price-table td:first-child { text-align: left; padding-left: 0; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0; }
.price-table th { font-size: 0.78rem; font-weight: 600; color: var(--muted); vertical-align: bottom; line-height: 1.3; }
.price-table th small { display: block; font-weight: 400; }
.price-table tbody td:first-child { font-weight: 600; }
.price-table .free { text-align: center; color: var(--ok); font-weight: 700; }
.price-table .per-member { color: var(--brand); font-weight: 700; }
.info-box {
    background: var(--cream); border-radius: 14px;
    padding: 1.1rem 1.2rem; margin-top: 1rem; font-size: 0.92rem;
}
.info-box h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.info-box p + p, .info-box ul + p { margin-top: 0.6rem; }
.info-box ul { margin: 0.3rem 0 0 1.2rem; }

/* Zustimmungen */
.consent {
    display: flex; gap: 0.7rem; align-items: flex-start;
    font-size: 0.92rem; color: var(--ink);
    cursor: pointer; margin-top: 0.9rem;
}
.consent input { margin-top: 0.25rem; accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.was-validated .consent input:invalid { outline: 2px solid var(--error); outline-offset: 2px; }

.form-error {
    margin-top: 1.2rem; padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #fbeceb; color: #962d22; font-size: 0.92rem;
}
.form-success {
    margin-top: 1.2rem; padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #eaf5ee; color: #1f6b38; font-size: 0.92rem;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.form-actions .form-hint { margin: 0; flex: 1; min-width: 200px; }

.request-success { text-align: center; padding: 3.5rem 2rem; }
.request-success > .icon { width: 3rem; height: 3rem; color: var(--ok); margin-bottom: 1rem; }
.request-success h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.request-success p { color: var(--muted); max-width: 28rem; margin: 0 auto 1.2rem; }
.request-success .btn { margin-top: 0.6rem; }

.loading { text-align: center; color: var(--muted); padding: 4rem 0; }

/* ---------- Schritte, Auswahl, Fenster (Version 3) ---------- */

.container.narrow { max-width: 760px; }
.page-title {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
    margin-bottom: 0.5rem;
}
.page-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.6rem; }

.banner {
    display: flex; gap: 0.9rem; align-items: flex-start;
    background: var(--cream); color: var(--ink);
    border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.6rem;
}
.banner .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; color: var(--brand); }
.banner strong { display: block; color: var(--ink); }
.banner span { font-size: 0.95rem; }

.stepper { list-style: none; display: flex; gap: 0.5rem; margin-bottom: 1.2rem; counter-reset: none; }
.stepper li {
    flex: 1; display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.8rem; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 0.9rem; color: var(--muted); min-width: 0;
}
.step-num {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cream); font-weight: 700; font-size: 0.85rem;
}
.step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.active { border-color: var(--brand-light); color: var(--ink); font-weight: 600; }
.stepper li.active .step-num { background: var(--brand); color: #fff; }
.stepper li.done .step-num { background: var(--ok); color: #fff; }

.form-block.last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-block legend .optional {
    font-size: 0.75rem; font-weight: 600; color: var(--muted);
    background: var(--cream); border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: 0.4rem;
    vertical-align: middle;
}
.hint-after { margin: 0.8rem 0 0; }
.text-btn.inline { font-size: inherit; font-weight: inherit; text-decoration: underline; }

.summary-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 0.75rem 0.9rem; font-size: 0.95rem; margin: 0.4rem 0 0.8rem;
}
.summary-row .icon { color: var(--brand); margin-right: 0.3rem; }
.summary-row > span { min-width: 0; overflow-wrap: anywhere; }

.invoice-preview {
    font-style: normal; line-height: 1.5; overflow-wrap: anywhere;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 10px; padding: 0.75rem 0.9rem; margin: 0.4rem 0 0.5rem;
}

.choice-list { display: grid; gap: 0.8rem; margin-bottom: 0.8rem; }
.choice {
    width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 1.1rem 1.2rem; font: inherit; color: var(--ink); box-shadow: var(--shadow-sm);
}
button.choice { cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
button.choice:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.choice > .icon:first-child { width: 1.6rem; height: 1.6rem; color: var(--brand); }
.choice > span { flex: 1; min-width: 0; }
.choice strong { display: block; }
.choice small { color: var(--muted); font-size: 0.88rem; }
.choice > .icon:last-child { color: var(--muted); }
.choice-todo { border-color: var(--brand-light); }
.choice-done { box-shadow: none; background: transparent; }
.choice-done > .icon:first-child { color: var(--ok); }

.interval-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.6rem 0 1rem; }
.interval-card {
    display: flex; gap: 0.7rem; align-items: flex-start;
    border: 1.5px solid var(--input-line); border-radius: 14px;
    padding: 0.9rem 1rem; cursor: pointer; background: var(--bg);
}
.interval-card input { margin-top: 0.3rem; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.interval-card strong { display: block; }
.interval-card small { color: var(--muted); font-size: 0.85rem; }
.interval-card:has(input:checked) { border-color: var(--brand); background: #fbf7ee; }
.was-validated .interval-card:has(input:invalid) { border-color: var(--error); }

.price-table[data-selected=monthly] [data-col=monthly],
.price-table[data-selected=yearly] [data-col=yearly] { background: #fbf7ee; color: var(--brand-dark); font-weight: 700; }
.price-table .muted-row td { color: var(--muted); font-weight: 400; }
.price-table td + td { text-align: right; }

.mandate-text {
    white-space: pre-line;
    font-size: 0.85rem; color: var(--muted);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 0.8rem 0.9rem; margin-top: 1rem;
}

.terms-list { list-style: none; margin: 0.4rem 0 1.2rem; }
.terms-list li { display: flex; gap: 0.9rem; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.terms-list li:first-child { border-top: none; }
.terms-list .icon { color: var(--brand); margin-top: 0.15rem; }

.request-form .form-actions { justify-content: flex-end; }
.request-form .form-actions #back-btn { margin-right: auto; }

.next-steps { list-style: none; text-align: left; max-width: 30rem; margin: 0 auto 1.4rem; }
.next-steps li { display: flex; gap: 0.8rem; padding: 0.6rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.next-steps .icon { color: var(--brand); margin-top: 0.15rem; }

dialog.modal {
    margin: auto; border: none; border-radius: var(--radius-lg);
    padding: 1.8rem; max-width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 48px); overflow: auto;
    color: var(--ink); box-shadow: var(--shadow-md); font-size: 0.95rem;
}
dialog.modal::backdrop { background: rgba(28, 24, 19, 0.45); }
dialog.modal h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
dialog.modal p, dialog.modal ul { margin-bottom: 0.8rem; }
dialog.modal ul { padding-left: 1.2rem; }
dialog.modal form { margin-top: 1rem; }
dialog.modal-wide { max-width: min(760px, calc(100vw - 32px)); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-top: 1rem; }
.modal-actions form, dialog.modal .modal-actions form { margin: 0; }

.contract h2 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.contract .contract-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.contract h3 { font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.contract p { margin-bottom: 0.5rem; }
.contract table { border-collapse: collapse; margin: 0.4rem 0 0.8rem; font-size: 0.9rem; }
.contract th, .contract td { border-bottom: 1px solid var(--line); padding: 0.35rem 1.2rem 0.35rem 0; text-align: left; }
.contract ul { overflow-wrap: anywhere; }
.order-rows { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.3rem 1rem; margin-bottom: 0.5rem; }
.order-rows dt { color: var(--muted); }
.order-rows dd { overflow-wrap: anywhere; }
@media (max-width: 560px) { .order-rows { grid-template-columns: 1fr; } .order-rows dd { margin-bottom: 0.4rem; } }

@media (max-width: 768px) {
    .interval-cards { grid-template-columns: 1fr; }
    .stepper li { padding: 0.5rem; justify-content: center; }
    .stepper li:not(.active) .step-label { display: none; }
    dialog.modal { padding: 1.3rem; }
}

/* Druckfassung des Vertrags: eigener Container direkt im body (nicht im Fenster),
   damit beim Drucken nichts abgeschnitten wird. Kopf/Fuß wiederholen sich über thead/tfoot. */
#print-doc { display: none; }

@page {
    size: A4;
    margin: 14mm 18mm 12mm;
    @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 7.5pt Inter, sans-serif; color: #6b6257; }
}

@media print {
    html, body { background: #fff !important; }
    body.printing-contract > *:not(#print-doc) { display: none !important; }
    body.printing-contract #print-doc { display: block; }

    #print-doc { font-size: 10pt; line-height: 1.5; color: #1c1813; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .pd-frame { width: 100%; border-collapse: collapse; }
    .pd-frame > thead > tr > td, .pd-frame > tfoot > tr > td, .pd-frame > tbody > tr > td { padding: 0; border: none; }

    .pd-head {
        display: flex; justify-content: space-between; align-items: center; gap: 1rem;
        padding-bottom: 3mm; margin-bottom: 7mm; border-bottom: 1.5pt solid #7b580d;
        font-size: 8.5pt; color: #6b6257;
    }
    .pd-brand { display: flex; align-items: center; gap: 2.5mm; font-size: 12pt; font-weight: 800; color: #7b580d; }
    .pd-brand img { width: 9mm; height: auto; }
    .pd-head-right { text-align: right; }

    .pd-foot {
        display: flex; justify-content: space-between; gap: 1rem;
        margin-top: 7mm; padding-top: 2.5mm; border-top: 0.5pt solid #d8cfbd;
        font-size: 7.5pt; color: #6b6257;
    }
    .pd-foot span:last-child { white-space: nowrap; }

    .pd-title { margin-bottom: 7mm; }
    .pd-title h1 { font-size: 20pt; line-height: 1.2; color: #5a3f09; margin-bottom: 2mm; }
    .pd-title p { margin: 0; }
    .pd-title .pd-meta { color: #6b6257; font-size: 9pt; margin-top: 1mm; }

    .pd-body section { break-inside: avoid-page; }
    .pd-body h3 { font-size: 11pt; color: #5a3f09; margin: 5mm 0 1.5mm; break-after: avoid; }
    .pd-body p { margin-bottom: 2mm; orphans: 3; widows: 3; }
    .pd-body ul { padding-left: 5mm; margin-bottom: 2mm; overflow-wrap: anywhere; }
    .pd-body table { border-collapse: collapse; margin: 1.5mm 0 3mm; font-size: 9.5pt; break-inside: avoid; }
    .pd-body th, .pd-body td { border-bottom: 0.5pt solid #d8cfbd; padding: 1.2mm 8mm 1.2mm 0; text-align: left; }
    .pd-body th { color: #5a3f09; }
    .pd-body .order-rows { grid-template-columns: 38mm 1fr; gap: 1mm 4mm; }
    .pd-body .order-rows dt { color: #6b6257; }
}

/* ---------- Footer ---------- */

.footer { background: #211b12; color: rgba(255, 255, 255, 0.75); padding: 48px 0 24px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer-section p { font-size: 0.95rem; max-width: 22rem; }
.footer-section h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-section ul li a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-section ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem; text-align: center;
    font-size: 0.88rem; color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .request-layout { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .request-intro { position: static; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .request-page { padding: calc(var(--header-height) + 28px) 0 64px; }
    .request-form, .request-success, .login-card { padding: 1.6rem 1.3rem; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .header-user span { display: none; }
    .logo { font-size: 1.15rem; }
    .price-table { font-size: 0.88rem; }
    .price-table th, .price-table td { padding: 0.6rem 0.3rem; }
}
