:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --green: #16a34a;
    --ink: #172033;
    --muted: #667085;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --yellow: #fef3c7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

.center-screen {
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

.app-card {
    width: 100%;
    max-width: 470px;
    background: white;
    border: 1px solid #edf0f5;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 55px rgba(20, 35, 70, .07);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: white;
    background: url(./logo.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-size: 22px;
    font-weight: 800;
}

.logo-name {
    font-weight: 750;
    font-size: 15px;
    line-height: 1.35;
}

.logo-name small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

h1 {
    font-size: clamp(26px, 5vw, 34px);
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 14px;
}

h2 {
    font-size: 21px;
    margin: 0 0 12px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-icon {
    font-size: 48px;
    margin: 12px 0 20px;
}

.primary,
.secondary,
.green-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    transition: .2s;
}

.primary {
    color: white;
    background: var(--blue);
}

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

.secondary {
    color: #344054;
    background: #eef1f5;
}

.green-button {
    color: white;
    background: var(--green);
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.secure-note {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

.field {
    margin: 19px 0;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
}

.required {
    color: #dc2626;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px 13px 43px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    color: var(--ink);
    background: white;
}

input:focus {
    border-color: var(--blue);
}

input.invalid {
    border-color: #dc2626;
}

.error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    min-height: 0;
}

.error:empty {
    display: none;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475467;
    line-height: 1.5;
    margin: 22px 0;
}

.consent input {
    margin-top: 3px;
    accent-color: var(--blue);
}

.consent a {
    color: var(--blue);
}

.step-label {
    color: var(--blue);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 35px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 100px;
    background: var(--yellow);
    color: #92400e;
    font-size: 12px;
    font-weight: 750;
}

.pending-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    margin: 22px 0;
    background: #fff;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f3;
    font-size: 13px;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span:first-child {
    color: var(--muted);
}

.detail-row span:last-child {
    text-align: right;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.progress {
    height: 7px;
    border-radius: 10px;
    background: #f1f3f5;
    overflow: hidden;
    margin: 14px 0 8px;
}

.progress-fill {
    width: 33%;
    height: 100%;
    background: #f59e0b;
    border-radius: inherit;
}

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

.check-list li {
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}

.check-list li::before {
    content: "✓";
    color: var(--green);
    font-weight: 800;
    margin-right: 10px;
}

.dashboard {
    display: none;
    padding: 24px 18px 45px;
}

.dashboard-inner {
    max-width: 850px;
    margin: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 32px;
}

.topbar .logo {
    margin: 0;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0eaff;
    color: var(--blue);
    font-weight: 800;
}

.dashboard-heading {
    margin-bottom: 22px;
}

.application-list {
    display: grid;
    gap: 16px;
}

.application-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.application-item h2 {
    font-size: 17px;
}

.application-meta {
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0;
}

.application-item .primary {
    margin-top: 16px;
}

.next-card {
    margin-top: 24px;
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.dashboard-actions {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.support-link {
    color: var(--blue);
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    display: block;
    overflow-wrap: anywhere;
}

.empty-state {
    padding: 35px 20px;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
}

.loading-brand {
    text-align: center;
}

.loading-brand .logo {
    justify-content: center;
}

.loader {
    width: 220px;
    height: 6px;
    background: #e8edf5;
    border-radius: 20px;
    overflow: hidden;
    margin: 45px auto 12px;
}

.loader div {
    height: 100%;
    background: var(--blue);
    animation: loading 2.5s ease-in-out forwards;
}

@keyframes loading {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.loading-caption {
    font-size: 12px;
}

@media (max-width: 520px) {
    .app-card {
        padding: 26px 21px;
        border: 0;
        border-radius: 18px;
        box-shadow: none;
    }

    .center-screen {
        padding: 14px;
        background: white;
    }

    .dashboard {
        padding: 20px 14px 35px;
    }

    .topbar .logo-name {
        font-size: 12px;
    }
}