:root {
    --primary: #0b5d8d;
    --primary-dark: #083a59;
    --accent: #f2b94b;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #16324a;
    --muted: #66758b;
    --border: #d7e2ef;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eff6fc, #ffffff);
    color: var(--text);
}

.topbar {
    background: var(--primary-dark);
    color: white;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a, .topbar button {
    color: white;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin: 24px 0 38px;
}

.hero-card, .card, .panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(16, 40, 72, 0.08);
}

.hero-card {
    padding: 36px;
}

.hero-card h1 {
    font-size: 2.1rem;
    margin-top: 0;
}

.hero-card p {
    color: var(--muted);
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn.secondary {
    background: #e9f2fb;
    color: var(--primary-dark);
}

.btn.warning {
    background: var(--accent);
    color: #3a2a00;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card, .panel {
    padding: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
    font: inherit;
}

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.notice.success { background: #e9f9f0; color: #156a36; }
.notice.error { background: #fff0f0; color: #a53434; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.review-container { max-width: 1450px; }
.review-intro {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}
.review-intro h1 { margin: 0 0 8px; }
.status-chip {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    white-space: nowrap;
}
.status-chip.review { background: #fff5d7; color: #795400; }
.status-chip.confirmed { background: #e6f8ed; color: #156a36; }
.section-title { margin: 28px 0 14px; }

.registration-replica {
    display: grid;
    grid-template-columns: 1.05fr 1fr 0.9fr;
    gap: 0;
    padding: 24px;
    border: 4px double #274b68;
    border-radius: 10px;
    background-color: #dfeff2;
    background-image:
        repeating-linear-gradient(25deg, rgba(33, 93, 108, 0.08) 0, rgba(33, 93, 108, 0.08) 1px, transparent 1px, transparent 8px),
        repeating-linear-gradient(-25deg, rgba(133, 89, 68, 0.06) 0, rgba(133, 89, 68, 0.06) 1px, transparent 1px, transparent 10px);
    box-shadow: 0 16px 34px rgba(20, 50, 70, 0.14);
}
.replica-panel {
    padding: 18px;
    border: 2px solid rgba(39, 75, 104, 0.78);
    background: rgba(255, 255, 255, 0.36);
}
.replica-panel + .replica-panel { border-left: 0; }
.replica-panel h3 {
    margin: 0 0 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.replica-field { margin-bottom: 9px; }
.replica-field span {
    display: block;
    margin-bottom: 3px;
    color: #294d63;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.replica-field input {
    margin: 0;
    padding: 7px 8px;
    border: 0;
    border-bottom: 1px solid #476b7e;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.62);
    color: #101b22;
    font-size: 0.94rem;
    font-weight: 700;
}
.replica-field input:focus {
    outline: 2px solid var(--accent);
    background: white;
}
.plate-field input {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-align: center;
}
.critical-field input { border-bottom-color: #b36b00; }
.validity-field input { background: rgba(233, 249, 240, 0.9); }
.replica-subgroup {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #517687;
}
.replica-subgroup > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
}
.replica-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.form-extras { margin-top: 24px; }
.review-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -8px 25px rgba(16, 40, 72, 0.08);
}

@media (max-width: 780px) {
    .hero, .grid {
        grid-template-columns: 1fr;
    }
    .review-intro { align-items: flex-start; flex-direction: column; }
    .registration-replica { grid-template-columns: 1fr; padding: 12px; }
    .replica-panel + .replica-panel { border-left: 2px solid rgba(39, 75, 104, 0.78); border-top: 0; }
}
