/* Studio 411 Booking System - Frontend Styles */

.s411-booking-wrapper {
    font-family: 'Amiko', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Steps visibility */
.s411-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.s411-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STEP 1: FORMULAS ===== */

.s411-formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.s411-formula-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.s411-formula-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.s411-formula-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s411-formula-name {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #333;
}

.s411-formula-price {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
    color: #000;
}

.s411-btn-reserve {
    background: transparent;
    border: none;
    font-family: 'Amiko', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.s411-btn-reserve .s411-arrow {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #00a5e8;
    font-size: 20px;
    font-weight: bold;
}

.s411-btn-reserve:hover .s411-arrow {
    transform: translateX(5px);
    color: #f5007e;
}

/* ===== STEP 2: OPTIONS ===== */

.s411-options-header {
    text-align: center;
    margin-bottom: 60px;
}

.s411-options-header h4 {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
    margin-top: 0;
}

.s411-options-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    margin: 0;
}

.s411-options-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.s411-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.s411-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
    flex: 1;
}

/* Hide default checkbox */
.s411-option-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkbox */
.s411-option-custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #000;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.s411-option-checkbox:checked + .s411-option-custom-checkbox {
    background: #00a5e8;
    border-color: #00a5e8;
}

.s411-option-checkbox:checked + .s411-option-custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.s411-option-name {
    font-size: 18px;
    color: #000;
    font-weight: 400;
}

.s411-option-price {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-left: auto;
}

/* ===== STEP 3: DATE & TIME ===== */

.s411-datetime-header,
.s411-client-header,
.s411-summary-header {
    text-align: center;
    margin-bottom: 40px;
}

.s411-datetime-header h4,
.s411-client-header h4,
.s411-summary-header h4 {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0;
}

.s411-calendar-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Calendar Styles */
#s411-calendar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.s411-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.s411-calendar-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.s411-cal-prev,
.s411-cal-next {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 15px;
    color: #666;
    transition: color 0.3s ease;
}

.s411-cal-prev:hover,
.s411-cal-next:hover {
    color: #00a5e8;
}

.s411-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.s411-cal-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 5px;
    color: #666;
}

.s411-cal-day {
    text-align: center;
    padding: 12px 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.s411-cal-day:not(.empty):not(.past):hover {
    background: #e3f2fd;
    color: #00a5e8;
}

.s411-cal-day.selected {
    background: #00a5e8;
    color: white;
    font-weight: 600;
}

.s411-cal-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.s411-cal-day.empty {
    cursor: default;
}

/* Time Slots Styles */
.s411-timeslots-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
}

.s411-select-date-first,
.s411-loading,
.s411-error,
.s411-no-slots {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.s411-error {
    color: #f5007e;
    font-style: normal;
}

.s411-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.s411-timeslot {
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 18px 25px;
    font-family: 'Amiko', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
}

.s411-timeslot:hover {
    background: #000;
    border-color: #000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.s411-timeslot.selected {
    background: #00a5e8;
    border-color: #00a5e8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 165, 232, 0.4);
}

.s411-timeslot.unavailable {
    background: #f9f9f9;
    border-color: #e0e0e0;
    color: #bbb;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.4;
}

.s411-timeslot.unavailable:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
    color: #bbb;
    transform: none;
    box-shadow: none;
}

/* ===== STEP 4: CLIENT FORM ===== */

.s411-client-form {
    max-width: 600px;
    margin: 0 auto;
}

.s411-form-group {
    margin-bottom: 25px;
}

.s411-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.s411-form-group input,
.s411-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Amiko', sans-serif;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.s411-form-group input:focus,
.s411-form-group textarea:focus {
    outline: none;
    border-color: #00a5e8;
}

/* ===== STEP 5: SUMMARY ===== */

.s411-summary-content {
    max-width: 600px;
    margin: 0 auto 40px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.s411-summary-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.s411-summary-section:last-child {
    border-bottom: none;
}

.s411-summary-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.s411-summary-section p,
.s411-summary-section ul {
    margin: 0;
    font-size: 18px;
    color: #000;
}

.s411-summary-section ul {
    list-style: none;
    padding: 0;
}

.s411-summary-section ul li {
    padding: 5px 0;
}

.s411-summary-total {
    text-align: center;
    padding-top: 20px;
}

.s411-summary-total h4 {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.s411-total-price {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* ===== NAVIGATION BUTTONS ===== */

.s411-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.s411-btn-back {
    background: transparent;
    border: none;
    font-family: 'Amiko', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

.s411-btn-back:hover {
    color: #000;
}

.s411-btn-continue,
.s411-btn-confirm {
    background: #000;
    border: none;
    font-family: 'Amiko', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.s411-btn-continue:disabled,
.s411-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.s411-btn-continue:not(:disabled):hover,
.s411-btn-confirm:not(:disabled):hover {
    background: #00a5e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.s411-btn-continue .s411-arrow,
.s411-btn-confirm .s411-arrow {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #00a5e8;
    font-size: 20px;
    font-weight: bold;
}

.s411-btn-continue:not(:disabled):hover .s411-arrow,
.s411-btn-confirm:not(:disabled):hover .s411-arrow {
    transform: translateX(5px);
    color: white;
}

/* ===== CONFIRMATION MESSAGE ===== */

.s411-confirmation-message {
    text-align: center;
    padding: 40px;
    background: #e8f7e8;
    border-radius: 8px;
    margin-top: 30px;
}

.s411-confirmation-message h4 {
    color: #2e7d32;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.s411-confirmation-message p {
    font-size: 18px;
    color: #555;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .s411-booking-wrapper {
        padding: 40px 15px;
    }
    
    .s411-formulas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .s411-formula-card {
        padding: 30px 20px;
    }
    
    .s411-formula-price {
        font-size: 40px;
    }
    
    .s411-options-header h2,
    .s411-datetime-header h2,
    .s411-client-header h2,
    .s411-summary-header h2 {
        font-size: 20px;
    }
    
    .s411-options-subtitle {
        font-size: 16px;
    }
    
    .s411-option-name {
        font-size: 16px;
    }
    
    .s411-option-price {
        font-size: 18px;
    }
    
    .s411-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .s411-btn-continue,
    .s411-btn-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .s411-total-price {
        font-size: 40px;
    }
}
