/*
 * Post-Submit Confirmation Pattern — canonical implementation.
 * Source of truth for DESIGN-SYSTEM.md §15.
 * Used by shpro_membership, shpro_donation, shpro_newsletter,
 * shpro_events, shpro_consultant_finder, shpro_privacy, shpro_contact.
 * Consumers reference this file via:
 *   <f:asset.css identifier="q4u-confirmation-steps"
 *                href="EXT:q4u_base/Resources/Public/Css/confirmation-steps.css" />
 */

.confirmation-steps {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-steps__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 1.5rem;
}

.confirmation-steps__lead {
    color: var(--bs-secondary-color);
    margin-bottom: 1.5rem;
}

.confirmation-steps__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(var(--bs-emphasis-color-rgb), 0.04);
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    padding: 2rem 1.5rem;
}

.confirmation-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
    position: relative;
}

.confirmation-steps__icon {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    position: relative;
    border-radius: 50%;
}

/* Numbered step badge — opt-in via data-step="N" on the icon. */
.confirmation-steps__icon[data-step]::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bs-body-bg);
    border: 2px solid var(--bs-secondary-color);
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --current: user's NEXT action. Filled primary disc, "Jetzt"-hint pill. */
.confirmation-steps__item--current .confirmation-steps__icon {
    background: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.25);
}
.confirmation-steps__item--current .confirmation-steps__icon[data-step]::before {
    background: #fff;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.confirmation-steps__item--current .confirmation-steps__label {
    color: var(--bs-primary);
    font-weight: 600;
}

.confirmation-steps__hint {
    display: inline-block;
    background: var(--bs-primary);
    color: #fff;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}

/* --target: future GOAL state (not yet achieved). Dashed outlined ring. */
.confirmation-steps__item--target .confirmation-steps__icon {
    border: 2px dashed rgba(var(--bs-primary-rgb), 0.5);
    background: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}

/* --done: step IS completed. Solid primary disc with white check. */
.confirmation-steps__icon--done {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
}

/* --pending block state: dim separator arrows AFTER step 1 to reinforce
   "you haven't passed these yet". Applied to the root .confirmation-steps. */
.confirmation-steps--pending .confirmation-steps__separator {
    color: rgba(var(--bs-emphasis-color-rgb), 0.25);
}

.confirmation-steps__separator {
    color: var(--bs-secondary-color);
    padding-top: 1.5rem;
    flex-shrink: 0;
}

.confirmation-steps__label {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: var(--bs-body-color);
    line-height: 1.4;
}

.confirmation-steps__note {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .confirmation-steps__track {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    .confirmation-steps__separator {
        padding-top: 0;
        transform: rotate(90deg);
    }
    .confirmation-steps__item {
        max-width: none;
    }
}
