/*
 * Samudra Supermarket Career & Recruitment System
 * Public career website styles
 * ------------------------------------------------
 * Mobile-first: every layout rule starts from the smallest screen and only
 * scales up at breakpoints, because most applicants use a smartphone.
 *
 * Brand palette follows the Samudra Supermarket corporate identity:
 *   primary  #0F3193 (Samudra blue)
 *   accent   #FF6A00 (Samudra orange)
 */

:root {
    --smr-blue: #0f3193;
    --smr-blue-dark: #0a2366;
    --smr-blue-light: #1e4fd0;
    --smr-blue-soft: #eaf0ff;
    --smr-accent: #e00000;
    --smr-accent-dark: #e00000;
    --smr-accent-ink: #ffffff;
    --smr-red: #e00000;
    --smr-ink: #1f2933;
    --smr-muted: #64748b;
    --smr-border: #e2e8f0;
    --smr-bg: #f7f9fb;
    --smr-radius: 14px;
    --smr-radius-sm: 10px;
    --smr-shadow: 0 2px 12px rgba(15, 49, 147, .07);
    --smr-shadow-lg: 0 12px 32px rgba(15, 49, 147, .12);
    --smr-transition: .2s ease;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--smr-ink);
    background: var(--smr-bg);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--smr-blue);
    text-decoration: none;
    transition: color var(--smr-transition);
}

a:hover {
    color: var(--smr-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -.01em;
}

.text-brand { color: var(--smr-blue) !important; }
.bg-brand { background-color: var(--smr-blue) !important; }
.bg-brand-soft { background-color: var(--smr-blue-soft) !important; }
.text-accent { color: var(--smr-accent) !important; }

/* ---------------------------------------------------------------- skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--smr-blue);
    color: #fff;
    padding: .65rem 1rem;
    border-radius: 0 0 var(--smr-radius-sm) 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ------------------------------------------------------------------ buttons */
.btn {
    border-radius: var(--smr-radius-sm);
    font-weight: 600;
    padding: .6rem 1.15rem;
    transition: all var(--smr-transition);
}

.btn-lg {
    padding: .8rem 1.5rem;
    font-size: 1rem;
}

.btn-smr {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: #fff;
}

.btn-smr:hover, .btn-smr:focus {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
}

.btn-smr:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    transform: none;
}

.btn-smr-outline {
    background: transparent;
    border: 1.5px solid var(--smr-blue);
    color: var(--smr-blue);
}

.btn-smr-outline:hover, .btn-smr-outline:focus {
    background: var(--smr-blue);
    color: #fff;
}

.btn-smr-accent {
    background: var(--smr-accent);
    border: 1px solid var(--smr-accent);
    color: var(--smr-accent-ink);
}

.btn-smr-accent:hover, .btn-smr-accent:focus {
    background: var(--smr-accent-dark);
    border-color: var(--smr-accent-dark);
    color: var(--smr-accent-ink);
}

.btn-white-outline {
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .75);
    color: #fff;
}

.btn-white-outline:hover, .btn-white-outline:focus {
    background: #fff;
    color: #dc2626;
    border-color: #fff;
}

/* Touch-friendly sizing on phones */
@media (max-width: 575.98px) {
    .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-block-mobile {
        width: 100%;
    }
}

/* ------------------------------------------------------------------- navbar */
.smr-navbar {
    background: #fff;
    box-shadow: 0 1px 0 var(--smr-border);
    padding: .5rem 0;
}

.smr-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    color: var(--smr-blue);
    font-size: 1.05rem;
    line-height: 1.15;
}

/* Official Samudra wordmark.
   The header sits on white, so the standard blue/red artwork is used. Height is
   fixed and width auto so the aspect ratio (about 5.2:1) is never distorted. */
.smr-brand-logo {
    height: 38px;
    width: auto;
    max-width: 210px;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .smr-brand-logo {
        height: 32px;
        max-width: 168px;
    }
}

/* Square emblem badge, used where a compact mark is needed. */
.smr-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--smr-border);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(15, 49, 147, .18);
}

.smr-brand-mark img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.smr-brand-text small {
    display: block;
    font-size: .66rem;
    font-weight: 600;
    color: var(--smr-accent-dark);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.smr-navbar .nav-link {
    font-weight: 600;
    color: var(--smr-ink);
    padding: .55rem .9rem;
    border-radius: 8px;
}

.smr-navbar .nav-link:hover,
.smr-navbar .nav-link.active {
    color: var(--smr-blue);
    background: var(--smr-blue-soft);
}

/* --------------------------------------------------------------------- hero */
.smr-hero {
    position: relative;
    background: linear-gradient(135deg, #0a2366 0%, #0f3193 45%, #1e4fd0 100%);
    color: #fff;
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}

.smr-hero::before,
.smr-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}

.smr-hero::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -80px;
}

.smr-hero::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: -60px;
}

.smr-hero .container {
    position: relative;
    z-index: 1;
}

.smr-hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: .85rem;
}

.smr-hero .lead {
    font-size: 1rem;
    opacity: .93;
    max-width: 40rem;
}

.smr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.smr-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2rem;
}

.smr-hero-stat {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--smr-radius-sm);
    padding: .85rem .5rem;
    text-align: center;
}

.smr-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.smr-hero-stat span {
    font-size: .72rem;
    opacity: .88;
}

@media (min-width: 768px) {
    .smr-hero {
        padding: 4.5rem 0 5rem;
    }

    .smr-hero h1 {
        font-size: 2.7rem;
    }

    .smr-hero .lead {
        font-size: 1.1rem;
    }

    .smr-hero-stats {
        max-width: 32rem;
    }
}

/* -------------------------------------------------------------- section head */
.section {
    padding: 2.75rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

.section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 2rem;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--smr-blue);
    background: var(--smr-blue-soft);
    padding: .28rem .8rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

.section-head h2 {
    font-size: 1.5rem;
    margin-bottom: .6rem;
}

.section-head p {
    color: var(--smr-muted);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .section-head h2 {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------- cards */
.smr-card {
    background: #fff;
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius);
    box-shadow: var(--smr-shadow);
    transition: box-shadow var(--smr-transition), transform var(--smr-transition);
}

.smr-card:hover {
    box-shadow: var(--smr-shadow-lg);
}

.benefit-card {
    height: 100%;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius);
    transition: transform var(--smr-transition), box-shadow var(--smr-transition);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--smr-shadow-lg);
}

.benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--smr-blue-soft);
    color: var(--smr-blue);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: .9rem;
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: .4rem;
}

.benefit-card p {
    font-size: .88rem;
    color: var(--smr-muted);
    margin-bottom: 0;
}

/* ------------------------------------------------------------- job cards */
.job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius);
    padding: 1.15rem;
    transition: transform var(--smr-transition), box-shadow var(--smr-transition), border-color var(--smr-transition);
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 49, 147, .35);
    box-shadow: var(--smr-shadow-lg);
}

.job-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .6rem;
}

.job-card h3 {
    font-size: 1.05rem;
    margin: 0 0 .2rem;
    line-height: 1.35;
}

.job-card h3 a {
    color: var(--smr-ink);
}

.job-card h3 a:hover {
    color: var(--smr-blue);
}

.job-code {
    font-size: .72rem;
    color: var(--smr-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.job-meta {
    list-style: none;
    padding: 0;
    margin: .85rem 0 1rem;
    display: grid;
    gap: .4rem;
    font-size: .85rem;
    color: #475569;
}

.job-meta li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.job-meta i {
    width: 1rem;
    text-align: center;
    color: var(--smr-blue);
    flex-shrink: 0;
}

.job-card-foot {
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px dashed var(--smr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.deadline-chip {
    font-size: .75rem;
    font-weight: 600;
    padding: .22rem .6rem;
    border-radius: 999px;
    background: #fff7e6;
    color: #92400e;
    border: 1px solid #fde68a;
    white-space: nowrap;
}

.deadline-chip.is-urgent {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.deadline-chip.is-open {
    background: var(--smr-blue-soft);
    color: var(--smr-blue-dark);
    border-color: #c5d4ff;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .22rem .6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--smr-border);
}

.chip-brand {
    background: var(--smr-blue-soft);
    color: var(--smr-blue-dark);
    border-color: #c5d4ff;
}

/* ------------------------------------------------------------ filter panel */
.filter-panel {
    background: #fff;
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius);
    padding: 1.1rem;
    box-shadow: var(--smr-shadow);
}

.filter-panel h2 {
    font-size: .95rem;
    margin-bottom: .9rem;
}

.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .3rem;
}

.form-control, .form-select {
    border-radius: var(--smr-radius-sm);
    border-color: var(--smr-border);
    padding: .58rem .8rem;
    font-size: .92rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--smr-blue);
    box-shadow: 0 0 0 3px rgba(15, 49, 147, .12);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--smr-red);
}

.search-group {
    position: relative;
}

.search-group .form-control {
    padding-left: 2.4rem;
}

.search-group i {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--smr-muted);
    pointer-events: none;
}

/* ------------------------------------------------------- job detail page */
.job-detail-hero {
    background: linear-gradient(135deg, #0a2366, #1e4fd0);
    color: #fff;
    padding: 2rem 0 2.25rem;
}

.job-detail-hero h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

@media (min-width: 768px) {
    .job-detail-hero {
        padding: 3rem 0;
    }

    .job-detail-hero h1 {
        font-size: 2.1rem;
    }
}

.job-detail-hero .chip {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.detail-block {
    background: #fff;
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.detail-block h2 {
    font-size: 1.05rem;
    margin-bottom: .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--smr-border);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.detail-block h2 i {
    color: var(--smr-blue);
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .5rem;
}

.list-check li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--smr-blue);
    font-weight: 700;
}

.info-table {
    width: 100%;
    font-size: .9rem;
}

.info-table th {
    width: 42%;
    font-weight: 600;
    color: var(--smr-muted);
    padding: .45rem 0;
    vertical-align: top;
}

.info-table td {
    padding: .45rem 0;
    font-weight: 600;
}

.sticky-side {
    position: sticky;
    top: 84px;
}

/* Sticky mobile apply bar */
.sticky-apply {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--smr-border);
    box-shadow: 0 -4px 16px rgba(15, 49, 147, .1);
    padding: .65rem .9rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom));
}

.sticky-apply .sticky-info {
    flex: 1;
    min-width: 0;
}

.sticky-apply .sticky-info strong {
    display: block;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-apply .sticky-info span {
    font-size: .74rem;
    color: var(--smr-muted);
}

@media (min-width: 992px) {
    .sticky-apply {
        display: none;
    }
}

body.has-sticky-apply {
    padding-bottom: 76px;
}

@media (min-width: 992px) {
    body.has-sticky-apply {
        padding-bottom: 0;
    }
}

/* ------------------------------------------------------------ step wizard */
.wizard-steps {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: 0 0 .75rem;
    margin: 0 0 1.25rem;
    list-style: none;
    scrollbar-width: none;
}

.wizard-steps::-webkit-scrollbar {
    display: none;
}

.wizard-steps li {
    flex: 1 0 auto;
    min-width: 5.5rem;
    text-align: center;
    font-size: .74rem;
    font-weight: 600;
    color: var(--smr-muted);
    position: relative;
    padding-top: 2.1rem;
}

.wizard-steps li::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: .78rem;
    z-index: 1;
}

.wizard-steps li::after {
    content: '';
    position: absolute;
    top: .85rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
}

.wizard-steps li:first-child::after {
    left: 50%;
}

.wizard-steps li:last-child::after {
    right: 50%;
}

.wizard-steps li.is-active {
    color: var(--smr-blue-dark);
}

.wizard-steps li.is-active::before {
    background: var(--smr-blue);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 49, 147, .15);
}

.wizard-steps li.is-done {
    color: var(--smr-blue);
}

.wizard-steps li.is-done::before {
    content: '\2713';
    background: var(--smr-blue);
    color: #fff;
}

.wizard-steps li.is-done::after {
    background: var(--smr-blue);
}

.wizard-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.wizard-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--smr-blue), #1a9c63);
    border-radius: 999px;
    transition: width .3s ease;
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
    animation: fadeSlide .25s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.wizard-nav {
    display: flex;
    gap: .6rem;
    margin-top: 1.5rem;
}

.wizard-nav .btn {
    flex: 1;
}

@media (min-width: 576px) {
    .wizard-nav {
        justify-content: flex-end;
    }

    .wizard-nav .btn {
        flex: 0 0 auto;
        min-width: 9rem;
    }
}

.form-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--smr-blue-dark);
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--smr-border);
}

.required-mark {
    color: var(--smr-red);
    font-weight: 700;
}

.repeat-item {
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fcfdfe;
    position: relative;
}

.repeat-item .repeat-remove {
    position: absolute;
    top: .5rem;
    right: .5rem;
}

.repeat-item .repeat-index {
    font-size: .78rem;
    font-weight: 700;
    color: var(--smr-blue);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .75rem;
}

/* --------------------------------------------------------------- uploads */
.upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: var(--smr-radius-sm);
    padding: 1rem;
    background: #fcfdfe;
    transition: border-color var(--smr-transition), background var(--smr-transition);
}

.upload-box.is-dragover {
    border-color: var(--smr-blue);
    background: var(--smr-blue-soft);
}

.upload-box.has-file {
    border-style: solid;
    border-color: var(--smr-blue);
    background: #fff;
}

.upload-box.has-error {
    border-color: var(--smr-red);
    background: #fff5f5;
}

.upload-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .5rem;
}

.upload-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--smr-blue-soft);
    color: var(--smr-blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.upload-title {
    font-weight: 700;
    font-size: .92rem;
    margin: 0;
}

.upload-hint {
    font-size: .76rem;
    color: var(--smr-muted);
    margin: 0;
}

.upload-file {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    margin-top: .6rem;
    padding: .45rem .6rem;
    background: var(--smr-blue-soft);
    border-radius: 8px;
    word-break: break-all;
}

.upload-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: .5rem;
    display: none;
}

.upload-progress.is-visible {
    display: block;
}

.upload-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--smr-blue);
    transition: width .2s ease;
}

.upload-error {
    font-size: .78rem;
    color: var(--smr-red);
    margin-top: .4rem;
}

/* ---------------------------------------------------------------- review */
.review-block {
    border: 1px solid var(--smr-border);
    border-radius: var(--smr-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.review-block header {
    background: #f8fafc;
    padding: .7rem 1rem;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.review-block .review-body {
    padding: .85rem 1rem;
}

.review-list {
    display: grid;
    gap: .5rem;
    margin: 0;
}

.review-list > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: .1rem;
    font-size: .87rem;
    padding-bottom: .45rem;
    border-bottom: 1px dashed var(--smr-border);
}

.review-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.review-list dt {
    color: var(--smr-muted);
    font-weight: 500;
    font-size: .8rem;
}

.review-list dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

@media (min-width: 576px) {
    .review-list > div {
        grid-template-columns: 12rem 1fr;
        gap: .75rem;
        align-items: baseline;
    }
}

/* --------------------------------------------------------------- timeline */
.status-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.status-timeline li {
    position: relative;
    padding: 0 0 1.4rem 2.4rem;
}

.status-timeline li::before {
    content: '';
    position: absolute;
    left: .58rem;
    top: 1.5rem;
    bottom: -.2rem;
    width: 2px;
    background: #e2e8f0;
}

.status-timeline li:last-child::before {
    display: none;
}

.status-timeline li .dot {
    position: absolute;
    left: 0;
    top: .15rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: grid;
    place-items: center;
    font-size: .68rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.status-timeline li.is-done .dot {
    background: var(--smr-blue);
    color: #fff;
    box-shadow: 0 0 0 1px var(--smr-blue);
}

.status-timeline li.is-done::before {
    background: var(--smr-blue);
}

.status-timeline li.is-current .dot {
    background: var(--smr-accent);
    color: var(--smr-accent-ink);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, .22);
}

.status-timeline li.is-rejected .dot {
    background: var(--smr-red);
    color: #fff;
    box-shadow: 0 0 0 1px var(--smr-red);
}

.status-timeline .step-title {
    font-weight: 700;
    font-size: .93rem;
    margin: 0;
}

.status-timeline .step-note {
    font-size: .82rem;
    color: var(--smr-muted);
    margin: .1rem 0 0;
}

.status-timeline .step-time {
    font-size: .74rem;
    color: #94a3b8;
}

/* --------------------------------------------------------------- success */
.success-hero {
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--smr-blue-soft);
    color: var(--smr-blue);
    display: grid;
    place-items: center;
    font-size: 2.25rem;
    animation: pop .4s ease;
}

@keyframes pop {
    0% { transform: scale(.6); opacity: 0; }
    70% { transform: scale(1.07); }
    100% { transform: scale(1); opacity: 1; }
}

.app-number-box {
    background: linear-gradient(135deg, #0a2366, #1e4fd0);
    color: #fff;
    border-radius: var(--smr-radius);
    padding: 1.35rem 1rem;
    margin: 1.5rem auto;
    max-width: 26rem;
}

.app-number-box span {
    display: block;
    font-size: .78rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}

.app-number-box strong {
    font-size: 1.6rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .06em;
    word-break: break-all;
}

/* ------------------------------------------------------------ empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.25rem;
    background: #fff;
    border: 1px dashed var(--smr-border);
    border-radius: var(--smr-radius);
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: .85rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.empty-state p {
    color: var(--smr-muted);
    margin-bottom: 1.15rem;
}

/* -------------------------------------------------------------- skeleton */
.skeleton {
    background: linear-gradient(90deg, #eef2f6 25%, #f7fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 8px;
    color: transparent !important;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    height: .8rem;
    margin-bottom: .5rem;
}

.skeleton-card {
    height: 12rem;
    border-radius: var(--smr-radius);
}

/* ----------------------------------------------------------------- toast */
.smr-toast-wrap {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: calc(100% - 2rem);
    max-width: 26rem;
    display: grid;
    gap: .5rem;
}

@media (min-width: 768px) {
    .smr-toast-wrap {
        left: auto;
        right: 1.25rem;
        transform: none;
    }
}

.smr-toast {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    background: #fff;
    border-left: 4px solid var(--smr-blue);
    border-radius: var(--smr-radius-sm);
    box-shadow: var(--smr-shadow-lg);
    padding: .8rem .9rem;
    font-size: .88rem;
    animation: toastIn .25s ease;
}

.smr-toast.is-error { border-left-color: var(--smr-red); }
.smr-toast.is-warning { border-left-color: var(--smr-accent); }
.smr-toast.is-info { border-left-color: #2563eb; }

.smr-toast i {
    margin-top: .1rem;
}

.smr-toast .toast-body-text {
    flex: 1;
}

.smr-toast button {
    background: none;
    border: 0;
    color: var(--smr-muted);
    line-height: 1;
    padding: 0;
    font-size: 1.1rem;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- footer */
.smr-footer {
    background: #061436;
    color: #cbd5e1;
    padding: 2.5rem 0 0;
    margin-top: 3rem;
}

.smr-footer h4 {
    color: #fff;
    font-size: .92rem;
    margin-bottom: .9rem;
}

.smr-footer a {
    color: #cbd5e1;
    font-size: .89rem;
}

.smr-footer a:hover {
    color: var(--smr-accent);
}

.smr-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

/* The footer is dark navy, so the wordmark variant with the white halo is used
   there instead of the standard blue artwork. */
.smr-footer .footer-brand-logo {
    height: 42px;
    width: auto;
    max-width: 230px;
    display: block;
}

.smr-footer .footer-brand strong {
    color: #fff;
    font-size: 1.05rem;
    display: block;
    line-height: 1.2;
}

.smr-footer .footer-brand small {
    color: var(--smr-accent);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.smr-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.smr-footer .footer-contact li {
    display: flex;
    gap: .6rem;
    font-size: .88rem;
}

.smr-footer .footer-contact i {
    color: var(--smr-accent);
    margin-top: .2rem;
    width: 1rem;
    text-align: center;
}

.smr-footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1rem 0;
    font-size: .8rem;
    text-align: center;
}

.smr-footer-bottom .dev-note {
    color: var(--smr-accent);
    font-weight: 600;
}

/* ------------------------------------------------------------- utilities */
.fade-up {
    animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Anti-spam decoy field injected into every form by the honeypot filter.
   Config\Honeypot also applies inline styles, so the field stays hidden even
   if this stylesheet fails to load; this rule is the secondary safeguard. */
.honeypot-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.invalid-feedback.d-block {
    font-size: .78rem;
}

.text-small {
    font-size: .84rem;
}

.accordion-button:not(.collapsed) {
    background: var(--smr-blue-soft);
    color: var(--smr-blue-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(15, 49, 147, .12);
}

.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 1.75rem;
    color: var(--smr-blue-dark);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p, .legal-content li {
    font-size: .93rem;
}

@media print {
    .smr-navbar, .smr-footer, .sticky-apply, .btn, .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
