/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background: #FFF6F9;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Cake Background Decorations */
.cake-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cake-decoration {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    transform: rotate(var(--rotate));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotate)); }
    50% { transform: translateY(-20px) rotate(var(--rotate)); }
}

/* Sprinkles */
.sprinkle {
    position: absolute;
    top: -10px;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header Animation */
.header-animation {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fancy Title */
.fancy-title {
    font-family: 'Dancing Script', cursive;
    position: relative;
    display: inline-block;
}

.fancy-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 50%;
    height: 3px;
    background: #E98FAC;
    transform: translateX(-50%);
}

/* Cake Icon Animation */
.cake-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Progress Bar */
.progress-bar {
    background: #e5e7eb;
    height: 12px;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(to right, #E98FAC, #F8B4CC);
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Card 3D Effect */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(233, 143, 172, 0.2);
}

/* Cake Option */
.cake-option {
    background: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    user-select: none;
}

.cake-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 143, 172, 0.3);
    border-color: #E98FAC;
}

.cake-option.selected {
    border-color: #E98FAC;
    background: #FFF0F5;
    box-shadow: 0 5px 15px rgba(233, 143, 172, 0.5);
    transform: scale(1.02);
}

.cake-option > * {
    pointer-events: none;
}

/* Step Container */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Summary Card */
.summary-card {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.delivery-option {
    accent-color: #E98FAC;
}
/* Responsive Design */
@media (max-width: 768px) {
    .fancy-title {
        font-size: 2.5rem;
    }

    .progress-bar {
        height: 10px;
    }

    #currentStepTitle {
        font-size: 1.25rem;
    }

    .main-container {
        flex-direction: column;
    }

    .steps-column, .summary-column {
        width: 100%;
    }

    .summary-column {
        position: static;
    }
}