/* Specific styles for the interactive Demo Booking Page */

.demo-page {
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-header {
    position: relative;
    background: transparent;
    border-bottom: none;
}

.demo-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.booking-section {
    width: 100%;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.demo-title {
    font-size: 3rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.demo-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Wizard Container */
.wizard-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step {
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-light);
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 2;
    transition: var(--transition-medium);
}

.progress-step.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.progress-step.completed {
    background: var(--accent);
    color: white;
}

/* Wizard Steps Body */
.wizard-step {
    display: none;
    animation: slide-in 0.5s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animations for initial load */
.entry-anim {
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.entry-anim.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DateTime Grid */
.datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Calendar Column */
.calendar-column {
    perspective: 1000px;
}

.calendar-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
    animation: floating-cal 6s ease-in-out infinite alternate;
}

@keyframes floating-cal {
    from {
        transform: rotateY(-2deg) rotateX(2deg) translateY(0px);
    }

    to {
        transform: rotateY(2deg) rotateX(-2deg) translateY(-10px);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cal-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cal-btn:hover {
    color: var(--primary);
}

.calendar-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 0.25rem;
}

.calendar-grid.days span {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.date-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.date-btn:hover:not(:disabled) {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
}

.date-btn:disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.date-btn.selected {
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.powered-by {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* Time Column */
.time-column {
    padding: 1rem 0;
    transition: opacity 0.3s ease;
}

.time-column.inactive {
    opacity: 0.4;
    pointer-events: none;
}

.time-column.inactive .slots-container {
    filter: grayscale(1);
}

.time-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.asterisk {
    color: #e53e3e;
}

.time-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.time-label.has-date {
    color: var(--primary);
    font-weight: 600;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.slots-row {
    display: flex;
    gap: 1rem;
}

.slots-row.single {
    width: 60%;
}

.slot-btn {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.slot-btn:hover {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.05);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15);
}

.slot-btn.selected {
    background: #6c8cd5;
    /* Matched the blue from reference visually */
    color: white;
    border-color: #6c8cd5;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(108, 140, 213, 0.4);
}

@keyframes popInSlot {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.time-column.animating .slot-btn {
    animation: popInSlot 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.time-column.animating .slots-row:nth-child(1) .slot-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.time-column.animating .slots-row:nth-child(1) .slot-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.time-column.animating .slots-row:nth-child(2) .slot-btn:nth-child(1) {
    animation-delay: 0.3s;
}

/* Form Styles */
.wizard-step h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-group.half-width {
    width: calc(50% - 0.75rem);
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

/* Step Actions */
.step-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.step-actions.right-align {
    display: flex;
    justify-content: flex-end;
}

.step-actions.split {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Step */
.success-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Demo Page */
@media (max-width: 768px) {
    .wizard-container {
        padding: 2rem 1.5rem;
    }

    .datetime-grid {
        grid-template-columns: 1fr;
    }

    .slots-row {
        flex-direction: column;
    }

    .slots-row.single {
        width: 100%;
    }

    .wizard-progress::before {
        display: none;
    }

    .form-group.half-width {
        width: 100%;
    }

    .demo-title {
        font-size: 2.2rem;
    }
}