/* Vehicle Census 2026 – citizen portal (search, OTP, tracing request, acknowledgements) */

/* Open Sans (SIL OFL), served from the application itself – no external font requests. */
@font-face { font-family: 'VC Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/vehicle-census/open-sans-latin-400-normal.woff2') format('woff2'), url('../fonts/vehicle-census/open-sans-latin-400-normal.woff') format('woff'); }
@font-face { font-family: 'VC Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/vehicle-census/open-sans-latin-700-normal.woff2') format('woff2'), url('../fonts/vehicle-census/open-sans-latin-700-normal.woff') format('woff'); }

/* ---------- Page frame ---------- */
.vcs-page, .vcs-page button, .vcs-page input, .vcs-page select, .vcs-page textarea { font-family: 'VC Open Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.vehicle-census-page.vcs-page { min-height: calc(100vh - 10rem); padding: clamp(1rem, 3vh, 2.25rem) 1rem 2.5rem; background: #f4f6f9; }
.vcs-page .vehicle-census-shell { width: min(100%, 58rem); margin: 0 auto; }

/* ---------- Header ---------- */
.vcs-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-radius: .6rem .6rem 0 0; background: #103968; color: #fff; }
.vcs-hero-text { flex: 1 1 auto; min-width: 0; margin: .15rem 1.5rem .15rem 0; }
.vcs-hero h1 { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }

.vcs-progress { display: flex; flex-wrap: wrap; margin: .35rem 0; padding: 0; list-style: none; }
.vcs-progress li { display: flex; align-items: center; color: rgba(255, 255, 255, .6); font-size: .72rem; font-weight: 500; white-space: nowrap; }
.vcs-progress li + li::before { content: ""; width: 1.1rem; height: 1px; margin: 0 .5rem; background: rgba(255, 255, 255, .3); }
.vcs-progress span { display: flex; align-items: center; }
.vcs-progress b { display: inline-flex; width: 1.25rem; height: 1.25rem; margin-right: .4rem; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; font-size: .66rem; font-weight: 600; }
.vcs-progress li.is-active { color: #fff; font-weight: 600; }
.vcs-progress li.is-active b { border-color: #fff; background: #fff; color: #103968; }
.vcs-progress li.is-done { color: rgba(255, 255, 255, .85); }
.vcs-progress li.is-done b { border-color: #8fc3ee; background: #8fc3ee; color: #103968; }

/* ---------- Card body ---------- */
.vcs-body { border: 1px solid #dfe5ee; border-top: 0; border-radius: 0 0 .6rem .6rem; background: #fff; box-shadow: 0 1px 3px rgba(16, 57, 104, .06); }
.vcs-main { padding: 1.4rem 1.5rem 1.5rem; }
.vcs-main .vehicle-census-flash { margin-bottom: 1rem; padding: .6rem .8rem; border-radius: .4rem; font-size: .8rem; }

/* ---------- Sections ---------- */
.vcs-section + .vcs-section { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid #e6ebf2; }
.vcs-section-head { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.vcs-section-head > div { flex: 1; min-width: 0; }
.vcs-section-head h2 { margin: 0; color: #173554; font-size: .92rem; font-weight: 700; }
.vcs-section-head p { margin: .15rem 0 0; color: #6b7a8d; font-size: .76rem; line-height: 1.5; }
.vcs-change-link { flex: none; margin-left: 1rem; color: #1268b3; font-size: .76rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vcs-change-link:hover, .vcs-change-link:focus { color: #0b579b; text-decoration: underline; }

/* ---------- Fields ---------- */
.vcs-grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcs-grid--vehicle-details { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: .75rem; }
.vcs-or-divider { display: flex; height: 2.4rem; align-items: center; margin-top: 1.35rem; color: #71819a; font-size: .72rem; font-weight: 700; }
.vcs-field { display: flex; flex-direction: column; min-width: 0; }
.vcs-field--wide { grid-column: 1 / -1; }
.vcs-label { display: block; margin: 0 0 .35rem; color: #2c3e55; font-size: .78rem; font-weight: 600; }
.vcs-required { margin-left: .15rem; color: #b3261e; }
.vcs-input { position: relative; }
.vcs-input input, .vcs-input select, .vcs-input textarea { display: block; width: 100%; box-sizing: border-box; padding: .5rem .7rem; border: 1px solid #c9d3e0; border-radius: .35rem; background-color: #fff; color: #1b2b40; font: inherit; font-size: .875rem; line-height: 1.4; outline: none; transition: border-color .15s, box-shadow .15s; }
.vcs-input input, .vcs-input select { height: 2.4rem; }
.vcs-input select { padding-top: 0; padding-bottom: 0; }
.vcs-input textarea { min-height: 3.4rem; resize: vertical; }
.vcs-input input::placeholder, .vcs-input textarea::placeholder { color: #9aa7b6; }
.vcs-input input:focus, .vcs-input select:focus, .vcs-input textarea:focus { border-color: #1268b3; box-shadow: 0 0 0 3px rgba(18, 104, 179, .12); }
.vcs-input input.vcs-upper { padding-right: 3rem; text-transform: uppercase; letter-spacing: .03em; }
.vcs-input input.vcs-upper::placeholder { text-transform: none; letter-spacing: 0; }
.vcs-input input[readonly] { border-color: #e1e6ee; background: #f6f8fb; color: #1b2b40; font-weight: 600; cursor: default; }
.vcs-input input[readonly]:focus { border-color: #e1e6ee; box-shadow: none; }
.vcs-input select:disabled { background-color: #f6f8fb; color: #8a97a8; }
.vcs-count { position: absolute; top: 50%; right: .65rem; transform: translateY(-50%); color: #a3aebb; font-size: .66rem; pointer-events: none; }
.vcs-hint { margin-top: .3rem; color: #7a8798; font-size: .7rem; line-height: 1.45; }
.vcs-error { display: none; margin-top: .3rem; color: #b3261e; font-size: .72rem; line-height: 1.45; }
.vcs-error i { margin-right: .3rem; }
.vcs-field.is-invalid .vcs-input input, .vcs-field.is-invalid .vcs-input select, .vcs-field.is-invalid .vcs-input textarea { border-color: #d9534f; }
.vcs-field.is-invalid .vcs-input input:focus, .vcs-field.is-invalid .vcs-input select:focus, .vcs-field.is-invalid .vcs-input textarea:focus { box-shadow: 0 0 0 3px rgba(217, 83, 79, .12); }
.vcs-field.is-invalid .vcs-error { display: block; }
.vcs-field.is-invalid .vcs-hint { display: none; }
.vcs-captcha .my-2 { margin: 0 !important; }
.vcs-captcha .captcha-wrapper { max-width: none; }
.vcs-captcha .form-control { min-height: 2.4rem; border-color: #c9d3e0; border-radius: .35rem; font: inherit; }
.vcs-captcha .captcha-reload { border-color: #c9d3e0; color: #52667e; }
.vcs-field.is-invalid .vcs-captcha .form-control { border-color: #d9534f; }
.vcs-field.is-invalid .vcs-captcha .form-control:focus { box-shadow: 0 0 0 3px rgba(217, 83, 79, .12); }

.vcs-group-error { display: none; margin-top: .75rem; color: #b3261e; font-size: .74rem; }
.vcs-group-error.is-visible { display: block; }
.vcs-group-error i { margin-right: .3rem; }

/* ---------- Notices ---------- */
.vcs-status { display: flex; align-items: flex-start; margin-top: 1rem; padding: .6rem .8rem; border-left: 3px solid; border-radius: .3rem; font-size: .78rem; line-height: 1.5; }
.vcs-status i { flex: none; margin: .2rem .5rem 0 0; }
.vcs-status--missing { border-color: #c98a00; background: #fdf8ec; color: #6b4a00; }

/* ---------- Actions ---------- */
.vcs-page .vehicle-census-action { display: inline-flex; min-height: 2.4rem; align-items: center; justify-content: center; padding: .45rem 1.2rem; border: 0; border-radius: .35rem; background: #1268b3; box-shadow: none; color: #fff; font: inherit; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.vcs-page .vehicle-census-action:hover, .vcs-page .vehicle-census-action:focus { background: #0b579b; color: #fff; }
.vcs-page .vehicle-census-action:disabled { background: #9fb3c8; cursor: not-allowed; }
.vcs-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.vcs-actions p { margin: 0 1rem .25rem 0; color: #7a8798; font-size: .74rem; }

.vcs-otp-row { display: flex; flex-wrap: wrap; align-items: flex-start; }
.vcs-otp-row .vcs-field { flex: 0 1 14rem; margin-right: .75rem; }
.vcs-otp-row .vcs-otp-captcha { flex-basis: 26rem; }
.vcs-otp-input { letter-spacing: .3em; font-weight: 600; }
.vcs-otp-input::placeholder { letter-spacing: 0; font-weight: 400; }
.vcs-otp-row .vcs-hint, .vcs-otp-row .vcs-error { position: absolute; }
.vcs-otp-row .vcs-field { position: relative; margin-bottom: 1.2rem; }
.vcs-otp-row .vcs-hint, .vcs-otp-row .vcs-error { top: 100%; left: 0; white-space: nowrap; }
.vcs-otp-row .vcs-otp-captcha .vcs-hint, .vcs-otp-row .vcs-otp-captcha .vcs-error { position: static; white-space: normal; }
.vcs-otp-row .vehicle-census-action { align-self: flex-start; margin: 1.6rem 0 0; }

@media (min-width: 641px) {
    .vcs-otp-captcha .captcha-wrapper { display: grid; grid-template-columns: minmax(8rem, 1fr) 2.4rem minmax(8rem, 1fr); gap: .5rem; margin: -.5rem 0 0; }
    .vcs-otp-captcha .captcha-wrapper > .col-4,
    .vcs-otp-captcha .captcha-wrapper > .col-2,
    .vcs-otp-captcha .captcha-wrapper > .col-6 { width: auto; padding: 0; }
    .vcs-otp-captcha .captcha-wrapper > .col-4 { grid-column: 1; }
    .vcs-otp-captcha .captcha-wrapper > .col-2 { grid-column: 2; }
    .vcs-otp-captcha .captcha-wrapper > .col-6 { grid-column: 3; }
    .vcs-otp-captcha .captcha-wrapper > .has-error { display: none; }
    .vcs-otp-captcha .captcha-wrapper .form-control,
    .vcs-otp-row .vcs-otp-input,
    .vcs-otp-row .vehicle-census-action { height: 44px; min-height: 44px !important; }
}

@media (min-width: 641px) and (max-width: 950px) {
    .vcs-otp-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .75rem; }
    .vcs-otp-row .vcs-field { min-width: 0; margin: 0; }
    .vcs-otp-row .vcs-otp-captcha { grid-column: 2; grid-row: 1; }
    .vcs-otp-row .vehicle-census-action { grid-column: 1 / -1; justify-self: end; margin: 0; }
}

.vcs-resend { display: flex; flex-wrap: wrap; align-items: center; margin-top: .4rem; color: #7a8798; font-size: .76rem; }
.vcs-resend span { margin-right: .35rem; }
.vcs-link-button { padding: 0; border: 0; background: none; color: #1268b3; font: inherit; font-weight: 600; cursor: pointer; }
.vcs-link-button:hover, .vcs-link-button:focus { color: #0b579b; text-decoration: underline; }

/* ---------- Acknowledgement ---------- */
.vcs-body--single .vcs-main { padding: 2rem 1.5rem; }
.vcs-done { max-width: 34rem; margin: 0 auto; text-align: center; }
.vcs-done-icon { display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: 50%; background: #e8f4ed; color: #2e8b57; font-size: 1.1rem; }
.vcs-done h2 { margin: .8rem 0 .4rem; color: #173554; font-size: 1.05rem; font-weight: 700; }
.vcs-done p { margin: 0 0 .6rem; color: #4a5b70; font-size: .82rem; line-height: 1.6; }
.vcs-done-number { margin: 1.1rem 0 .3rem; color: #7a8798; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vcs-done-value { display: inline-block; margin-bottom: 1rem; padding: .5rem 1rem; border: 1px dashed #b9c6d6; border-radius: .35rem; background: #f6f8fb; color: #103968; font-size: 1rem; font-weight: 700; letter-spacing: .06em; }
.vcs-done .vcs-done-note { color: #7a8798; font-size: .76rem; }
.vcs-done .vehicle-census-action { margin-top: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .vehicle-census-page.vcs-page { min-height: 0; padding: .75rem .6rem 1.5rem; }
    .vcs-hero { padding: .9rem 1rem; }
    .vcs-hero-text { margin-right: 0; }
    .vcs-progress { flex-basis: 100%; margin-top: .6rem; }
    .vcs-progress li + li::before { width: .6rem; margin: 0 .35rem; }
    .vcs-main { padding: 1.1rem 1rem 1.25rem; }
    .vcs-grid, .vcs-grid--vehicle-details { grid-template-columns: 1fr; }
    .vcs-or-divider { height: auto; justify-content: center; margin: -.35rem 0; }
    /* 16px inputs stop iOS from zooming in on focus */
    .vcs-input input, .vcs-input select, .vcs-input textarea { font-size: 1rem; }
    .vcs-actions { flex-direction: column-reverse; align-items: stretch; }
    .vcs-actions p { margin: .6rem 0 0; text-align: center; }
    .vcs-page .vehicle-census-action { width: 100%; }
    .vcs-otp-row { display: block; }
    .vcs-otp-row .vcs-field { margin-right: 0; }
    .vcs-otp-row .vehicle-census-action { margin: .75rem 0 0; }
}
@media (max-width: 380px) {
    .vcs-progress li { font-size: .66rem; }
    .vcs-progress b { width: 1.1rem; height: 1.1rem; margin-right: .25rem; }
}
@media (min-width: 1800px) {
    .vcs-page .vehicle-census-shell { width: min(100%, 64rem); }
    .vcs-hero h1 { font-size: 1.3rem; }
    .vcs-label, .vcs-input input, .vcs-input select, .vcs-input textarea { font-size: .92rem; }
    .vcs-otp-row .vehicle-census-action { margin-top: 1.725rem; }
}
