:root {
    --brand: #0f766e;
    --brand-2: #6d28d9;
    --brand-ink: #0b3d39;
    --bg-soft: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --border-soft: #d9e2ec;
    --text: #1f2937;
    --muted: #667085;
    --danger: #b42318;
    --danger-bg: #fff1f3;
    --info-bg: #eef6ff;
    --info-border: #c7ddff;
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, .07);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --space-1: .35rem;
    --space-2: .65rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
            radial-gradient(circle at top right, rgba(109, 40, 217, .08), transparent 26%),
            radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 24%),
            var(--bg-soft);
    color: var(--text);
}

a { color: var(--brand); }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
}

.sidebar {
    background: linear-gradient(180deg, #10243d 0%, #132b4b 58%, #173760 100%);
    color: #f8fbff;
    padding: var(--space-4);
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-top {
    display: flex;
    gap: .9rem;
    align-items: center;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
}

.sidebar-eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #b5caec;
    margin-bottom: .15rem;
}

.sidebar h1 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
}

.sidebar-card,
.sidebar-help {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.05rem;
    backdrop-filter: blur(6px);
}

.sidebar-card-label,
.sidebar-help-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c8d8ef;
    margin-bottom: .45rem;
}

.progress-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .8rem;
}

.progress-meta strong {
    color: #fff;
}

.progress-meta span {
    color: #d7e5f8;
    font-size: .95rem;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.sidebar-nav { flex: 1 1 auto; }

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.step-item a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: .8rem;
    align-items: center;
    padding: .8rem .9rem;
    text-decoration: none;
    color: #dce7f6;
    border-radius: 14px;
    transition: background .16s ease, transform .16s ease;
}

.step-item a:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.step-item.active a {
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    color: inherit;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.step-text {
    line-height: 1.25;
    font-size: .95rem;
}

.sidebar-help p {
    margin: 0;
    color: #d7e5f8;
    line-height: 1.45;
    font-size: .95rem;
}

.content {
    padding: var(--space-5);
}

.page-hero {
    margin-bottom: var(--space-4);
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(15, 118, 110, .12);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
    box-shadow: var(--shadow-soft);
}

.page-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .25rem;
}

.page-hero h2 {
    margin: 0 0 .35rem;
    font-size: 1.65rem;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.group {
    padding: 1.35rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.group:first-child {
    border-top: 0;
}

.group h3 {
    margin: 0 0 .2rem;
    font-size: 1.08rem;
    color: var(--brand-ink);
}

.group .muted {
    margin-top: .35rem;
}

.fields {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.group-layout-two-column .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    display: block;
    margin-bottom: .42rem;
    font-weight: 600;
    color: #213547;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: .82rem .95rem;
    font: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(15, 118, 110, .5);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.required {
    color: var(--danger);
    margin-left: .15rem;
}

.help-text,
.muted {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.help-text {
    margin-top: .4rem;
}

.error-text {
    color: var(--danger);
    font-size: .92rem;
    margin-top: .38rem;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    padding-top: .2rem;
}

.choice-inline {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    font-weight: 400 !important;
    margin: 0;
    color: var(--text);
}

.choice-inline input {
    width: auto;
    margin: 0;
}

.alert {
    margin-bottom: 1rem;
    padding: .95rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: #f2b7bd;
    color: #8d1e2e;
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: #224b84;
}

.alert-link-row {
    margin-top: .45rem;
}

.actions {
    border-top: 1px solid var(--border-soft);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--panel-soft);
}

.actions-meta {
    min-width: 0;
}

.btn-primary {
    border: 0;
    border-radius: 14px;
    padding: .88rem 1.25rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
    min-width: 190px;
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,118,110,.14), 0 12px 24px rgba(15, 118, 110, .18);
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .content {
        padding: 1rem;
    }

    .group-layout-two-column .fields {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: .88rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.btn-secondary:hover {
    background: #f8fafc;
}

@media (max-width: 900px) {
    .actions-left,
    .actions-right {
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }
}

.alert-success {
    background: #eefaf3;
    border-color: #b7e3c8;
    color: #166534;
}

.landing-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.landing-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(15, 118, 110, .12);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8));
    box-shadow: var(--shadow-soft);
}

.landing-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}

.landing-eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .25rem;
}

.landing-hero h1 {
    margin: 0 0 .35rem;
    font-size: 2rem;
}

.landing-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.service-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1.35rem 1.5rem 1.5rem;
}

.service-card-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .35rem;
}

.service-card h2 {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-actions {
    margin-top: 1.15rem;
    display: flex;
    gap: .75rem;
    align-items: center;
}

.service-actions-stack {
    flex-direction: column;
    align-items: flex-start;
}

.btn-link {
    text-decoration: none;
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        align-items: flex-start;
    }
}
.required-marker {
    color: #b42318;
    font-weight: 700;
    margin-left: 0.2rem;
}s