:root {
    --j-blue: #17498c;
    --j-blue-d: #0f3468;
    --j-green: #8bc53f;
    --j-ink: #1c2430;
    --j-muted: #5a6a7d;
    --j-line: #e2e8f0;
    --j-soft: #f5f8fb;
    --j-white: #ffffff;
    --j-font: "Segoe UI", system-ui, -apple-system, Roboto, "Liberation Sans", Helvetica, Arial, sans-serif;
    /* legacy aliases kept so existing markup still resolves */
    --navy: #17498c;
    --navy-dark: #0f3468;
    --green: #8bc53f;
    --ink: #1c2430;
    --bg: #eef2f7;
    --card-border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--j-font);
    background: var(--bg);
    color: var(--j-ink);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Header ---- */
.header {
    background: var(--j-blue-d);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}
.header .logo-chip {
    background: #fff;
    border-radius: 12px;
    padding: 9px 20px;
    display: inline-flex;
    box-shadow: 0 2px 8px rgba(10, 25, 50, .25);
}
.header .logo-chip img { height: 66px; width: auto; display: block; }
.header .brand-txt {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .3px;
    color: #dbe6f5;
}
@media (max-width: 520px) { .header .brand-txt { display: none; } }

/* ---- Layout ---- */
.wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    flex: 1;
}

.card {
    background: #fff;
    border: 1px solid var(--j-line);
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15, 52, 104, .06);
}

h1 { font-size: 23px; margin: 0 0 6px; color: var(--j-blue-d); font-weight: 800; }
h2 { font-size: 18px; margin: 0 0 14px; color: var(--j-blue-d); font-weight: 700; }
p.lead { color: var(--j-muted); margin-top: 0; }
a { color: var(--j-blue); }

/* ---- Form controls (brand focus ring on every field) ---- */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; color: var(--j-ink); }
label .hint { font-weight: 400; color: var(--j-muted); font-size: 12px; display: block; }

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=file], select, textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--j-line);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: var(--j-ink);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--j-blue);
    box-shadow: 0 0 0 3px rgba(23, 73, 140, .12);
}
select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317498c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
}
textarea { resize: vertical; min-height: 90px; }

/* ---- Buttons: blue primary, green accent CTA, Facebook blue for FB ---- */
.btn {
    display: inline-block;
    background: var(--j-blue);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}
.btn:hover { background: var(--j-blue-d); }
.btn.secondary { background: #eef1f6; color: var(--j-blue-d); border: 1px solid var(--j-line); }
.btn.secondary:hover { background: #e4e9f1; }
.btn.go { background: var(--j-green); color: var(--j-blue-d); }
.btn.go:hover { background: #7cb733; }
.btn.fb { background: #1877f2; }
.btn.fb:hover { background: #1461cf; }

/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
    padding: 11px 0 11px 30px;
    position: relative;
    border-bottom: 1px solid #eef1f5;
    color: var(--j-ink);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 13px;
    width: 18px; height: 18px;
    border: 2px solid var(--j-green);
    border-radius: 4px;
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.badge.pending { background: #fdf1d6; color: #92650c; }
.badge.progress { background: #e7eefb; color: var(--j-blue); }
.badge.done { background: #e7f6ec; color: #137a45; }
.badge.rejected { background: #fbdede; color: #a12626; }

/* ---- Step bar ---- */
.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps div { flex: 1; height: 6px; border-radius: 3px; background: #dde3ea; }
.steps div.active, .steps div.done { background: var(--j-green); }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert.error { background: #fbdede; color: #a12626; }
.alert.success { background: #e7f6ec; color: #137a45; }
.alert.info { background: #e7eefb; color: var(--j-blue); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef1f5; }
th { color: var(--j-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; }

.creds { font-family: "SFMono-Regular", Consolas, monospace; background: var(--j-soft); padding: 10px 12px; border-radius: 8px; word-break: break-all; font-size: 13px; }
.footer-note { color: var(--j-muted); font-size: 13px; text-align: center; margin-top: 24px; }

/* ---- Brand footer band ---- */
.site-footer { margin-top: auto; }
.site-footer .foot-band {
    border-top: 3px solid var(--j-green);
    background: var(--j-blue-d);
    color: #cdd9ea;
}
.site-footer .foot-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}
.site-footer .foot-brand a { color: #fff; font-weight: 800; text-decoration: none; display: block; font-size: 15px; }
.site-footer .foot-brand span { color: #aebfd6; }
.site-footer .foot-contacts { text-align: right; line-height: 1.7; }
@media (max-width: 520px) {
    .site-footer .foot-inner { flex-direction: column; align-items: flex-start; }
    .site-footer .foot-contacts { text-align: left; }
}
