.webform-category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    min-height: 140px;
    animation: fadeInUp 0.4s ease-out backwards;
}

.category-card:hover,
.category-card:focus-visible {
    border-color: var(--bs-primary, #0d6efd);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    outline: none;
}

.category-card:active {
    transform: scale(0.98);
}

.category-card.selected {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    box-shadow: 0 4px 12px rgba(253, 13, 13, 0.3);
}

.category-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--bs-primary, #0d6efd);
    transition: color 0.2s ease;
}

.category-card.selected .category-card-icon {
    color: #fff;
}

.category-card-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.category-card.selected .category-card-text {
    font-weight: 600;
}

.error-message {
    color: var(--bs-danger, #dc3545);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: "⚠";
    font-size: 1.2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-step.is-active .progress-marker::before {
    background-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

.webform-progress-tracker .progress-step.is-active:hover .progress-marker::before {
    background-color: var(--bs-secondary, #0d6efd);
    color: #000;
}

.progress-step .progress-marker {
    color: #fff;
}

.webform-progress-tracker .progress-step.is-active .progress-text,
.webform-progress-tracker .progress-step.is-complete .progress-text {
    color: var(--bs-text-color, #000000);
}