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

:root {
    --blue:        #003087;
    --blue-dark:   #001f5c;
    --blue-light:  #e8eef7;
    --orange:      #F68B1F;
    --orange-dark: #d97a15;
    --red:         #C62828;
    --green:       #2E7D32;
    --text:        #1a1a2e;
    --text-muted:  #6b7280;
    --border:      #d1d9e6;
    --bg:          #f4f6fb;
    --white:       #ffffff;
    --shadow:      0 2px 16px rgba(0,48,135,.09);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── HEADER ───────────────────────────────────────── */
.site-header {
    background: var(--blue);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }

.logo-icon {
    width: 36px; height: 36px;
    background: var(--orange);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px; color: #fff;
}

.logo-name  { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.logo-sub   { color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }

/* ── VIEWS ───────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── MAIN PAGE ───────────────────────────────────── */
.hero {
    background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 90px 24px 100px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(246,139,31,.18);
    border: 1px solid rgba(246,139,31,.4);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px; font-weight: 600; color: var(--orange);
    margin-bottom: 24px;
}

.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }

.hero p {
    font-size: 18px; line-height: 1.65;
    color: rgba(255,255,255,.82);
    max-width: 560px; margin: 0 auto 42px;
}

.btn-report {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--orange);
    color: #fff;
    border: none; border-radius: 10px;
    padding: 17px 42px;
    font-size: 17px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(246,139,31,.45);
    transition: background .18s, transform .15s, box-shadow .18s;
    font-family: inherit;
}

.btn-report:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(246,139,31,.55);
}

.btn-report svg { flex-shrink: 0; }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 880px; margin: 0 auto;
    padding: 48px 24px;
}

.info-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
}

.info-card-icon { margin-bottom: 12px; color: var(--blue); }
.info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.info-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── FORM PAGE ───────────────────────────────────── */
.form-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 28px;
}

.breadcrumb .back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); font-weight: 600;
    background: none; border: none; cursor: pointer;
    font-size: 14px; font-family: inherit;
    padding: 0;
    transition: color .15s;
}

.breadcrumb .back-btn:hover { color: var(--blue-dark); }

.form-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 32px 40px;
    color: #fff;
}

.form-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.form-header p  { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5; }

.form-body { padding: 36px 40px 40px; }

.section-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.section-label:not(:first-child) { margin-top: 32px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }

.field label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
}

.req { color: var(--red); margin-left: 2px; }
.req-star { color: #ffb347; }
.opt { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }

.input-wrap { position: relative; }

.phone-group { display: flex; }

.phone-prefix {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 9px 0 0 9px;
    padding: 0 14px;
    font-size: 15px; font-weight: 600;
    color: var(--text-muted);
    display: flex; align-items: center;
    user-select: none; white-space: nowrap;
}

input[type=text], input[type=email], input[type=tel], textarea, select {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

input[type=tel].with-prefix { border-radius: 0 9px 9px 0; }

input:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,48,135,.12);
}

input.is-error, textarea.is-error {
    border-color: var(--red) !important;
}

input.is-error:focus, textarea.is-error:focus {
    box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

input.is-ok, textarea.is-ok { border-color: var(--green); }

textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.err-msg {
    display: none;
    align-items: center; gap: 5px;
    font-size: 12px; color: var(--red);
    margin-top: 5px;
}

.err-msg.show { display: flex; }
.err-msg svg { flex-shrink: 0; }

.char-counter {
    font-size: 11px; color: var(--text-muted);
    text-align: right; margin-top: 4px;
}

/* ── CONSENT ───────────────────────────────────── */
.consent-box {
    background: var(--blue-light);
    border: 1.5px solid #c7d6f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 28px; margin-bottom: 6px;
    cursor: pointer;
    transition: background .15s;
}

.consent-box:hover { background: #dce8f7; }

.consent-box input[type=checkbox] {
    width: 18px; height: 18px; min-width: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    cursor: pointer;
}

.consent-text {
    font-size: 13px; line-height: 1.6; color: var(--text);
}

.consent-link {
    color: var(--blue); font-weight: 600;
    text-decoration: none;
}

.consent-link:hover { text-decoration: underline; }

.consent-err {
    font-size: 12px; color: var(--red);
    margin-bottom: 20px; display: none;
    align-items: center; gap: 5px;
}

.consent-err.show { display: flex; }

/* ── SUBMIT ───────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--blue);
    color: #fff;
    border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, opacity .18s, transform .12s;
    margin-top: 20px;
}

.btn-submit:not(:disabled):hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: #9baec8;
    cursor: not-allowed;
    opacity: .75;
}

/* ── SUCCESS PAGE ─────────────────────────────── */
.success-wrap {
    max-width: 560px;
    margin: 70px auto;
    padding: 24px;
    text-align: center;
}

.success-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 56px 48px;
}

.check-circle {
    width: 88px; height: 88px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 28px;
    animation: popIn .4s ease-out;
}

@keyframes popIn {
    0%   { transform: scale(.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-card h2 {
    font-size: 26px; font-weight: 800;
    color: var(--green);
    margin-bottom: 14px;
}

.success-card p {
    font-size: 15px; color: var(--text-muted);
    line-height: 1.65; margin-bottom: 36px;
}

.success-ref {
    display: inline-block;
    background: var(--blue-light);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px; color: var(--blue);
    font-weight: 600;
    margin-bottom: 32px;
}

.btn-home {
    background: var(--blue);
    color: #fff;
    border: none; border-radius: 10px;
    padding: 14px 36px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: background .18s;
}

.btn-home:hover { background: var(--blue-dark); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .hero p   { font-size: 15px; }
    .form-header { padding: 24px 22px; }
    .form-body  { padding: 24px 22px 28px; }
    .form-row   { grid-template-columns: 1fr; }
    .success-card { padding: 36px 24px; }
}

@media (max-width: 400px) {
    .site-header { padding: 0 16px; }
    .form-container { padding: 24px 12px 48px; }
}
