@charset "utf-8";

/* ==========================================================
   Zwag Workflow Components
   Reusable multi-step forms, verification and information UI.
   ========================================================== */

.step-progress {
    margin-bottom: 34px;
}

.step-progress ol {
    position: relative;
    display: grid;
}

.step-progress--2 ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-progress--3 ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-progress ol::before {
    content: "";
    position: absolute;
    top: 17px;
    height: 2px;
    background: var(--color-border);
}

.step-progress--2 ol::before {
    left: 25%;
    right: 25%;
}

.step-progress--3 ol::before {
    left: 16.666%;
    right: 16.666%;
}

.step-progress li {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--color-subtle);
    font-size: var(--font-size-sm);
    text-align: center;
}

.step-progress li span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--color-muted);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    font-weight: 800;
}

.step-progress li.active span {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.step-progress li.complete span {
    color: var(--color-white);
    background: var(--color-success);
    border-color: var(--color-success);
}

.verification-stage {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

.verification-stage__email {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 14px;
    overflow-wrap: anywhere;
    color: var(--color-primary);
    font-weight: 800;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.verification-code {
    height: 64px;
    min-height: 64px;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.28em;
}

.icon-badge {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--color-white);
    font-weight: 900;
    background: var(--color-primary);
    border-radius: 50%;
}

.icon-badge--large {
    width: 70px;
    height: 70px;
    margin-inline: auto;
    font-size: 1.7rem;
}

.icon-badge--rounded {
    border-radius: 14px;
}

.info-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.info-card--invalid {
    border-color: var(--color-error);
}

.info-card p {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.status-text {
    min-height: 1.5em;
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}

.status-text--success {
    color: var(--color-success);
    font-weight: 650;
}

.status-text--error {
    color: var(--color-error);
    font-weight: 650;
}

@media (max-width: 540px) {

    .step-progress {
        margin-bottom: 28px;
    }

    .step-progress li {
        font-size: 0.78rem;
    }

    .info-card {
        padding: 18px 8px;
    }
	
	.icon-badge--rounded {
    	grid-column: 1 / -1;
	}

}
