/* The self-service app's own look (Views/Shared/_Layout.cshtml), on the template's (instarc.css) and the tenant's
   colours (tenant-brand.css): a white bar with the tenant's logo, one centred column, cards for each step. */

.ia-ss {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ia-bg);
}

.ia-ss-column {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.ia-ss-top {
    flex: none;
    background: var(--ia-surface);
    border-bottom: 1px solid var(--ia-border);
}

.ia-ss-top-inner {
    display: flex;
    align-items: center;
    height: 4.5rem;
}

.ia-ss-logo {
    max-height: 2.5rem;
    max-width: 14rem;
    object-fit: contain;
}

.ia-ss-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ia-dark);
}

.ia-ss-main {
    flex: 1 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ia-ss-title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ia-dark);
}

.ia-ss-card {
    border-color: var(--ia-border);
}

/* The tenant's primary colour where it is branded, the template's dark otherwise. */
.ia-ss-accent {
    color: var(--ia-dark);
}

.ia-branded .ia-ss-accent {
    color: var(--brand-primary);
}

.ia-ss-code {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--ia-border);
}

.ia-ss-footer {
    flex: none;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--ia-border);
    color: var(--ia-muted);
    font-size: 0.8125rem;
}

.ia-ss-footer-text {
    margin-bottom: 0.5rem;
}

.ia-ss-footer-text p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------- the wizard (Views/Modules/Onboarding) */
/* The steps across the top: a numbered dot each, done ones ticked, the current one in the tenant's colour. */
.ia-ss-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.ia-ss-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ia-muted);
    font-size: 0.875rem;
}

.ia-ss-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--ia-border);
    border-radius: 50%;
    background: var(--ia-surface);
    font-weight: 600;
    font-size: 0.8125rem;
}

.ia-ss-step.is-current {
    color: var(--ia-dark);
    font-weight: 600;
}

.ia-ss-step.is-current .ia-ss-step-dot,
.ia-ss-step.is-done .ia-ss-step-dot {
    border-color: var(--ia-dark);
    background: var(--ia-dark);
    color: var(--ia-on-dark);
}

.ia-branded .ia-ss-step.is-current .ia-ss-step-dot,
.ia-branded .ia-ss-step.is-done .ia-ss-step-dot {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-on-primary);
}

/* A legal document's text on the last step: scrolls in its own box. */
.ia-ss-legal {
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    background: var(--ia-bg);
    font-size: 0.875rem;
}
