.engineContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    position: relative;
    flex-grow: 1;
}

.engineContainer::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw;
    z-index: 10;
    flex-shrink: 0;
}

.backButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.backButton:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.flowTitle {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.progressIndicator {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.categoryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.categoryItem {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.categoryItem:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.categorySelected {
    background: rgba(255, 42, 127, 0.15); /* var(--wine-red) with opacity */
    border-color: var(--wine-red);
    box-shadow: 0 0 20px rgba(255, 42, 127, 0.2);
}

.categoryIcon {
    font-size: 28px;
    color: var(--wine-red);
}

.categoryName {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.stepContent {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .header {
        padding-top: 80px; /* prevent overlap with the global fixed mobile navigation bar */
    }
}
