/* Luxury Hair Booking Frontend Styles */

.lhb-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lhb-booking-form {
    position: relative;
    min-height: 600px;
}

/* Step Management */
.lhb-booking-step {
    display: none;
    padding: 40px;
    min-height: 500px;
}

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

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

.lhb-step-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lhb-step-description {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Service Selection */
.lhb-service-category {
    margin-bottom: 40px;
}

.lhb-category-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.lhb-category-description {
    color: #718096;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.lhb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.lhb-service-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

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

.lhb-service-card.lhb-service-selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.lhb-service-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lhb-service-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lhb-service-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.lhb-service-description {
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

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

.lhb-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.lhb-service-duration {
    display: flex;
    align-items: center;
    color: #718096;
}

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

.lhb-service-price {
    font-weight: 700;
    font-size: 16px;
    color: #38a169;
}

.lhb-service-card.lhb-service-selected .lhb-service-price {
    color: #ffffff;
}

/* Staff Selection */
.lhb-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lhb-staff-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.lhb-staff-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.lhb-staff-card.lhb-staff-selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.lhb-staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.lhb-staff-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: inherit;
}

.lhb-staff-bio {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.lhb-staff-card.lhb-staff-selected .lhb-staff-bio {
    color: rgba(255, 255, 255, 0.9);
}

/* Date & Time Selection */
.lhb-datetime-selection {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.lhb-date-picker {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

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

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

.lhb-time-slot {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.lhb-time-slot:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

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

.lhb-time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
}

.lhb-no-times {
    grid-column: 1 / -1;
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px 20px;
}

/* Customer Form */
.lhb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lhb-form-field {
    display: flex;
    flex-direction: column;
}

.lhb-form-field-wide {
    grid-column: 1 / -1;
}

.lhb-form-field label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.lhb-form-field input,
.lhb-form-field textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

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

.lhb-form-field textarea {
    resize: vertical;
    font-family: inherit;
}

/* Booking Summary */
.lhb-summary-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.lhb-summary-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
}

.lhb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.lhb-summary-item:last-child {
    border-bottom: none;
}

.lhb-summary-total {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
    border-top: 2px solid #e2e8f0;
    margin-top: 10px;
    padding-top: 15px;
}

.lhb-summary-label {
    color: #718096;
    font-weight: 500;
}

.lhb-summary-value {
    color: #2d3748;
    font-weight: 600;
}

.lhb-terms {
    margin-top: 20px;
}

.lhb-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.lhb-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
}

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

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

/* Success Message */
.lhb-success-message {
    text-align: center;
    padding: 20px;
}

.lhb-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.lhb-success-message h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.lhb-success-message p {
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.lhb-booking-details {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

/* Buttons */
.lhb-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    letter-spacing: 0.5px;
}

/* Ensure all button variants have rounded corners */
.lhb-btn-next,
.lhb-btn-back,
.lhb-btn-confirm,
button.lhb-btn,
input[type="button"].lhb-btn,
input[type="submit"].lhb-btn {
    border-radius: 12px !important;
    padding: 16px 32px !important;
}

.lhb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lhb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.lhb-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lhb-btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
    transform: translateY(-3px);
}

.lhb-btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.lhb-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.lhb-btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
    transform: translateY(-2px);
    border-color: #a0aec0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.lhb-btn-success {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(56, 161, 105, 0.35);
    position: relative;
    overflow: hidden;
}

.lhb-btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.lhb-btn-success:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.45);
    transform: translateY(-3px);
}

.lhb-btn-success:hover:not(:disabled)::before {
    left: 100%;
}

.lhb-btn-loading {
    display: none;
}

.lhb-btn.lhb-btn-loading .lhb-btn-text {
    display: none;
}

.lhb-btn.lhb-btn-loading .lhb-btn-loading {
    display: flex;
    align-items: center;
}

.lhb-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: lhb-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes lhb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Step Actions */
.lhb-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.lhb-step-actions .lhb-btn + .lhb-btn {
    margin-left: 15px;
}

/* Progress Indicator */
.lhb-progress-indicator {
    background: #f7fafc;
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
}

.lhb-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.lhb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.lhb-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.lhb-progress-step.lhb-progress-step-active .lhb-progress-number,
.lhb-progress-step.lhb-progress-step-completed .lhb-progress-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.lhb-progress-label {
    font-size: 12px;
    color: #718096;
    text-align: center;
    font-weight: 500;
}

.lhb-progress-step.lhb-progress-step-active .lhb-progress-label,
.lhb-progress-step.lhb-progress-step-completed .lhb-progress-label {
    color: #2d3748;
}

.lhb-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.lhb-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Icons */
.lhb-icon-clock::before {
    content: "🕐";
    margin-right: 5px;
}

.lhb-icon-check::before {
    content: "✓";
}

/* Responsive Design */
@media (max-width: 768px) {
    .lhb-booking-form-container {
        margin: 20px;
        border-radius: 8px;
    }

    .lhb-booking-step {
        padding: 30px 20px;
    }

    .lhb-progress-indicator {
        padding: 15px 20px;
    }

    .lhb-services-grid,
    .lhb-staff-grid {
        grid-template-columns: 1fr;
    }

    .lhb-datetime-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lhb-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lhb-step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .lhb-step-actions .lhb-btn {
        width: 100%;
        margin-left: 0;
    }

    .lhb-progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .lhb-progress-step {
        flex: 0 0 calc(50% - 5px);
    }

    .lhb-progress-label {
        font-size: 10px;
    }

    .lhb-time-slots {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }

    .lhb-time-slot {
        padding: 10px 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .lhb-step-header h3 {
        font-size: 24px;
    }

    .lhb-service-card,
    .lhb-staff-card {
        padding: 15px;
    }

    .lhb-summary-card {
        padding: 20px;
    }

    .lhb-progress-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Loading States */
.lhb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.lhb-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: lhb-spin 1s linear infinite;
}