.form-container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .form-content {
        flex: 1;
        overflow-y: auto;
    }

    .reserva-container {
        display: flex;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
        border-radius: 10px;
        overflow: hidden;
        margin: 20px 0;
        background: #fff;
        height: auto;
    }

    /* Sidebar Styling */
    .reserva-sidebar {
        background: #f7f7f7;
        padding: 15px 0;
        max-width: 280px;
    }

    #reserva-steps {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #reserva-steps li {
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        border-left: 4px solid transparent;
        color: #666;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    #reserva-steps li.active {
        border-left-color: #333;
        color: #000;
        background-color: rgba(0, 0, 0, 0.05);
    }

    #reserva-steps li::before {
        content: '';
        position: absolute;
        left: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        transition: all 0.3s ease;
    }

    #reserva-steps li.active::before {
        background: #333;
        width: 12px;
        height: 12px;
        left: -14px;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    .step-info {
        display: none;
        font-size: 0.9em;
        color: #777;
        margin-top: 6px;
        font-weight: normal;
        transition: all 0.3s ease;
        padding-left: 10px;
        border-left: 2px solid #e0e0e0;
    }

    /* Form Content Area */
    .reserva-form {
        flex: 1;
        padding: 25px;
    }

    .step {
        display: none;
        animation: fadeIn 0.4s ease;
    }

    .step.active {
        display: block;
    }

    .step h2 {
        margin-top: 0;
        color: #333;
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }

    /* Card Styling */
    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        text-align: center;
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: #999;
    }

    .card.selected {
        background-color: #f0f0f0;
        border-color: #333;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
        color: #333;
    }

    /* Fix for the checkmark position issue */
    .card.selected::after {
        content: '✓';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #333;
        font-size: 16px;
        font-weight: bold;
    }

    .flex_container {
        padding: 15px 0;
        border-radius: 8px;
        overflow-x: auto;
    }

    /* Date and Time Selection */
    .date-time-container {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
    }

    .date-selection {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .time-selection {
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        border: 1px solid #eee;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-top: 15px;
    }

    .time-selection h4 {
        margin-top: 0;
        color: #555;
        margin-bottom: 15px;
    }

    #hora-lista {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        max-height: 250px;
        overflow-y: auto;
        padding: 10px;
        background: #fbfbfb;
        border-radius: 6px;
    }

    .hora-item {
        background: #fff;
        padding: 10px 10px;
        border-radius: 6px;
        cursor: pointer;
        border: 1px solid #e5e5e5;
        text-align: center;
        transition: all 0.2s ease;
    }

    .hora-item:hover {
        background: #f5f5f5;
    }

    .hora-item.selected {
        background: #333;
        border-color: #000;
        color: #fff;
    }

    /* Form inputs styling */
    .content-container.display-flex-column {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 8px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.2s;
    }

    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="email"]:focus {
        border-color: #333;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
        outline: none;
    }

    label {
        font-weight: 500;
        margin-bottom: 5px;
        display: block;
        color: #444;
    }

    /* Buttons */
    .step-buttons {
        position: sticky;
        bottom: 0;
        padding: 20px 0;
        display: flex;
        justify-content: flex-end;
        gap: 15px;
        z-index: 100;
        background: linear-gradient(transparent, #fff 20%);
        margin-top: 20px;
    }

    .step-button {
        padding: 12px 24px;
        border: none;
        border-radius: 6px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        font-size: 15px;
    }

    .prev-step.step-button {
        background-color: #f5f5f5;
        color: #333;
        border: 1px solid #ddd;
    }

    .prev-step.step-button:hover {
        background-color: #e8e8e8;
    }

    .next-step.step-button {
        background-color: #333;
        color: white;
    }

    .next-step.step-button:hover {
        background-color: #000;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    .skip.step-button {
        background-color: #f0f0f0;
        color: #555;
    }

    .skip.step-button:hover {
        background-color: #e0e0e0;
    }

    /* Modal styling */
    .description-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(3px);
    }

    .description-modal-content {
        background-color: #fff;
        padding: 30px;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        position: relative;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.3s, opacity 0.3s;
    }

    .description-close {
        position: absolute;
        right: 15px;
        top: 10px;
        font-size: 24px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f5f5f5;
        transition: all 0.2s;
    }

    .description-close:hover {
        background: #e0e0e0;
    }

    /* Summary section */
    #resum-reserva {
        background: #f9f9f9;
        border-radius: 8px;
        padding: 20px;
        width: 100%;
    }

    #resum-reserva h3 {
        margin-top: 0;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

    /* Fix for time selection display */
    #time_selection:not([style*="display: none"]) {
        display: block !important;
    }

    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Worker selection */
    .worker-info {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .worker-name {
        font-weight: 500;
    }

    .worker-time {
        font-size: 0.85em;
        color: #666;
        margin-top: 4px;
    }

    /* Info icon */
    .info-icon {
        margin-left: 8px;
        color: #555;
        cursor: pointer;
        transition: color 0.3s ease;
        opacity: 0.8;
    }

    .info-icon:hover {
        color: #000;
        opacity: 1;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .reserva-container {
            flex-direction: column;
        }
        
        .reserva-sidebar {
            min-width: auto;
            padding: 10px 0;
        }
        
        #reserva-steps li {
            padding: 12px 15px;
        }
        
        .step {
            height: auto;
            min-height: 60vh;
        }
        
        .flex_container {
            height: auto !important;
            min-height: 40vh;
        }
        
        .step-buttons {
            justify-content: space-between !important;
            padding: 15px;
        }
        
        .step-button {
            width: 48%;
        }
        
        .card-container {
            grid-template-columns: 1fr 1fr;
        }
        
        #hora-lista {
            grid-template-columns: 1fr 1fr;
        }
        
        .description-modal-content {
            width: 95%;
            padding: 20px;
        }
        
        .time-selection {
            padding: 10px;
        }
        
        .date-time-container {
            gap: 15px;
        }
        
        .content-container.display-flex-column {
            padding: 15px;
        }
        
        input[type="text"],
        input[type="tel"],
        input[type="email"] {
            padding: 10px 12px;
        }
    }

    /* Loading indicator */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        border-top-color: #000;
        animation: spin 1s ease-in-out infinite;
        margin-right: 10px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Calendar styling */
    .flatpickr-calendar {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        border-radius: 12px !important;
    }

    .flatpickr-day.selected {
        background: #333 !important;
        border-color: #000 !important;
    }

    .flatpickr-day:hover {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    /* Step indicator animation */
    #reserva-steps li::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background-color: #333;
        transition: width 0.5s ease;
    }
    
    #reserva-steps li.active::after {
        width: 100%;
    }
    @media (max-width: 768px) {
    /* Container structure */
    .reserva-container {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
    }
    
    .reserva-sidebar {
        min-width: auto;
        max-width: 100%;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    /* Steps navigation */
    #reserva-steps li {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    #reserva-steps li::before {
        left: -8px;
        width: 6px;
        height: 6px;
    }
    
    #reserva-steps li.active::before {
        width: 8px;
        height: 8px;
        left: -9px;
    }
    
    .step-info {
        font-size: 0.8em;
    }
    
    /* Form content */
    .reserva-form {
        padding: 15px;
    }
    
    .step {
        height: auto;
        min-height: calc(100vh - 250px);
    }
    
    .step h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Card styling */
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .card {
        padding: 12px 10px;
        min-height: 60px;
    }
    
    .card.selected::after {
        right: 8px;
        font-size: 14px;
    }
    
    /* Critical fix: date and time container */
    .date-time-container {
        flex-direction: column !important;
        gap: 0;
    }
    
    /* Fix calendar size */
    .date-selection {
        width: 100%;
        margin: 0 auto;
    }
    
    /* Ensure time selection is visible */
    .time-selection {
        width: 100%;
        margin-top: 15px !important;
        display: block !important;
    }
    
    /* Prevent time selection from disappearing */
    #time_selection:not([style*="display: none"]) {
        display: block !important;
    }
    
    /* Time slots styling */
    #hora-lista {
        grid-template-columns: repeat(2, 1fr);
        max-height: 200px;
    }
    
    .hora-item {
        padding: 8px;
        font-size: 14px;
    }
    
    /* Form inputs */
    .content-container.display-flex-column {
        padding: 15px 10px;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Button styling */
    .step-buttons {
        position: sticky;
        bottom: 0;
        z-index: 200;
        background: linear-gradient(transparent, #fff 20%);
        padding: 15px 10px;
        margin-top: 10px;
        justify-content: space-between !important;
    }
    
    .step-button {
        width: 48%;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Modal styling */
    .description-modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px 15px;
        margin: 15px;
    }
    
    .description-close {
        right: 10px;
        top: 10px;
    }
    
    /* Calendar fixes for mobile */
    .flatpickr-calendar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .flatpickr-days {
        width: 100% !important;
    }
    
    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix flatpickr month navigation */
    .flatpickr-months {
        padding: 0 10px;
    }
    
    .flatpickr-current-month {
        left: 7.5% !important;
        width: 85% !important;
    }
    
    /* Summary section */
    #resum-reserva {
        padding: 15px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .reserva-sidebar {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    #reserva-steps {
        display: flex;
    }
    
    #reserva-steps li {
        padding: 10px;
    }
    
    .step h2 {
        font-size: 16px;
    }
    
    .card-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .card {
        min-height: 50px;
        font-size: 14px;
    }
    
    /* Improve time selections */
    #hora-lista {
        grid-template-columns: 1fr 1fr;
    }
    
    .hora-item {
        padding: 8px 5px;
        font-size: 13px;
    }
    
    /* Smaller buttons */
    .step-button {
        padding: 10px;
        font-size: 13px;
    }
    
    /* Fix visibility of time selection */
    .time-selection {
        padding: 10px;
        margin-top: 10px !important;
    }
}

/* Fix for the time selection display issue */
@media (max-width: 768px) {
    /* These !important declarations ensure the time selection remains visible */
    #time_selection.visible {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
/* Unit Price Modal */
.unit-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.unit-selector button {
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

.unit-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    margin: 0 10px;
}

.confirm-units {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.price-note {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}