/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* Main Booking Container */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Salon Header */
.salon-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.salon-logo {
    text-align: center;
    margin-bottom: 20px;
}

.salon-logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
    border-radius: 10px;
}

.salon-logo h1 {
    font-size: 2.5em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.salon-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.salon-welcome {
    text-align: center;
    font-size: 1.1em;
    font-style: italic;
    opacity: 0.9;
}

.salon-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-item i {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after,
.progress-step.completed:not(:last-child)::after {
    background: #667eea;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: bold;
}

/* Booking Steps */
.booking-steps {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.booking-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.step-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

.step-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Step */
.services-container {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-tab {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-card.selected .service-price,
.service-card.selected .service-duration {
    color: rgba(255, 255, 255, 0.9);
}

.service-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-card.selected .service-description {
    color: rgba(255, 255, 255, 0.8);
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
}

.service-duration {
    font-size: 0.9em;
    color: #999;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
}

.service-card.selected .service-duration {
    background: rgba(255, 255, 255, 0.2);
}

.selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4caf50;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.service-card.selected .selection-indicator {
    display: flex;
}

/* Selected Services Summary */
.selected-services {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.selected-services h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.selected-items {
    margin-bottom: 20px;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-service-name {
    font-weight: bold;
    color: #333;
}

.selected-service-details {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #666;
    font-size: 0.9em;
}

.remove-service {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-service:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.selection-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.1em;
}

.no-selection {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Workers Step */
.workers-container {
    margin-bottom: 30px;
}

.worker-option {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.worker-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.worker-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.any-worker {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.worker-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    flex-shrink: 0;
}

.any-avatar {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.worker-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.worker-info {
    flex: 1;
}

.worker-info h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 5px;
}

.worker-info p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.worker-services {
    font-size: 0.8em;
    color: #999;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}

.workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* DateTime Step */
.datetime-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 30px;
}

.date-selection,
.time-selection {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.date-selection h3,
.time-selection h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.date-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.time-slot.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.time-slot.unavailable:hover {
    background: #f5f5f5;
    color: #ccc;
    border-color: #f0f0f0;
}

/* Customer Details Step */
.details-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.form-group label i {
    color: #667eea;
    margin-right: 8px;
    width: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #ff4757;
    background: #fff5f5;
}

.field-error {
    color: #ff4757;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

.field-help {
    color: #666;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* Summary Step */
.summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.summary-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
}

.summary-section h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.summary-section h3 i {
    color: #667eea;
    margin-right: 10px;
}

.summary-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-service-name {
    font-weight: bold;
    color: #333;
}

.summary-service-details {
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

.summary-totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.total-row:last-child {
    font-size: 1.2em;
    color: #667eea;
    font-weight: bold;
}

.summary-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: bold;
    color: #333;
}

.summary-worker-info {
    text-align: center;
}

.summary-worker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

.summary-worker-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.summary-worker-services {
    color: #666;
    font-size: 0.9em;
}

/* Terms Section */
.terms-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1em;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 150px;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
    min-width: 200px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-modal-content {
    text-align: center;
}

.success-icon {
    font-size: 4em;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.success-modal-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.booking-reference {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 1.2em;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-buttons .btn {
    min-width: 140px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.confirmation-details p {
    margin-bottom: 10px;
    color: #333;
}

.next-steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.loading-spinner p {
    font-size: 1.2em;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        padding: 10px;
    }
    
    .salon-header {
        padding: 20px;
    }
    
    .salon-contact {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        padding: 15px 10px;
        overflow-x: auto;
    }
    
    .progress-step {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .booking-step {
        padding: 20px;
    }
    
    .step-header h2 {
        font-size: 1.5em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .datetime-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .summary-container {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .workers-grid {
        grid-template-columns: 1fr;
    }
    
    .worker-option {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        flex-direction: column;
    }
    
    .category-tab {
        text-align: center;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .progress-step {
        min-width: 60px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    
    .step-label {
        font-size: 0.8em;
    }
}

/* Opening Hours Section */
.opening-hours-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin-top: 40px;
    color: white;
}

.opening-hours-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.opening-hours-section h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.hours-list {
    max-width: 600px;
    margin: 0 auto;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.hours-item.today {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.day-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.hours-item.today .day-name {
    color: #ffffff;
    font-size: 1.2rem;
}

.hours-time {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hours-item.today .hours-time {
    color: #ffffff;
    font-weight: 600;
}

.hours-time.closed {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.hours-item.today .hours-time.closed {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive design for opening hours */
@media (max-width: 768px) {
    .opening-hours-section {
        padding: 30px 15px;
    }
    
    .hours-item {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .day-name {
        font-size: 1rem;
    }
    
    .hours-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hours-item {
        padding: 10px 15px;
    }
    
    .day-name {
        font-size: 0.95rem;
    }
    
    .hours-time {
        font-size: 0.85rem;
    }
}
