/* Masseuse Booking System - Frontend Styles */

/* Container */
.mbs-booking-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Progress Steps */
.mbs-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.mbs-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.mbs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

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

.mbs-step.active .mbs-step-number {
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
    box-shadow: 0 4px 15px rgba(162, 112, 53, 0.4);
}

.mbs-step.completed .mbs-step-number {
    background: #A27035;
    color: white;
}

.mbs-step-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.mbs-step.active .mbs-step-label {
    color: #A27035;
    font-weight: 600;
}

/* Form Steps */
.mbs-form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.mbs-form-step.active {
    display: block;
}

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

.mbs-step-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

/* Service Cards */
.mbs-service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mbs-service-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.mbs-service-card:hover {
    border-color: #A27035;
    box-shadow: 0 5px 20px rgba(162, 112, 53, 0.15);
    transform: translateY(-5px);
}

.mbs-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mbs-service-card input[type="radio"]:checked + .mbs-service-content {
    color: #A27035;
}

.mbs-service-card input[type="radio"]:checked ~ .mbs-service-content::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.mbs-service-card input[type="radio"]:checked {
    border-color: #A27035;
}

.mbs-service-content {
    position: relative;
}

.mbs-service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.mbs-service-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1f2937;
}

.mbs-service-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Duration Options */
.mbs-duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mbs-duration-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4b5563;
}

.mbs-duration-card:hover {
    border-color: #A27035;
    background: #f3f4f6;
}

.mbs-duration-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mbs-duration-card input[type="radio"]:checked + div {
    color: white;
}

.mbs-duration-card input[type="radio"]:checked {
    border-color: #A27035;
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
}

/* Form Groups */
.mbs-form-group {
    margin-bottom: 25px;
}

.mbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mbs-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.mbs-input,
.mbs-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mbs-input:focus,
.mbs-textarea:focus {
    outline: none;
    border-color: #A27035;
    box-shadow: 0 0 0 3px rgba(162, 112, 53, 0.1);
}

.mbs-textarea {
    resize: vertical;
}

/* Time Slots */
.mbs-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

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

.mbs-time-slot:hover {
    border-color: #A27035;
    background: #f3f4f6;
}

.mbs-time-slot.selected {
    border-color: #A27035;
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
}

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

.mbs-info-text {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

/* Buttons */
.mbs-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
}

.mbs-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.mbs-btn-primary {
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
    flex: 1;
    font-weight: 700;
}

.mbs-btn-primary:hover {
    box-shadow: 0 5px 20px rgba(162, 112, 53, 0.4);
    transform: translateY(-2px);
}

.mbs-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.mbs-btn-secondary:hover {
    background: #e5e7eb;
}

.mbs-btn-success {
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
    flex: 1;
    font-weight: 700;
}

.mbs-btn-success:hover {
    box-shadow: 0 5px 20px rgba(162, 112, 53, 0.4);
    transform: translateY(-2px);
}

.mbs-arrow {
    font-size: 18px;
}

.mbs-check {
    font-size: 20px;
}

/* Summary Card */
.mbs-summary-card {
    background: #f9fafb;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.mbs-summary-section {
    margin-bottom: 25px;
}

.mbs-summary-section:last-child {
    margin-bottom: 0;
}

.mbs-summary-section h4 {
    color: #A27035;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.mbs-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.mbs-summary-label {
    color: #6b7280;
    font-weight: 500;
}

.mbs-summary-item span:last-child {
    color: #1f2937;
    font-weight: 600;
}

/* Success Message */
.mbs-success-message {
    text-align: center;
    padding: 60px 40px;
}

.mbs-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #DDCA7D 0%, #A27035 100%);
    color: #242331;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.mbs-success-message h3 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 15px;
}

.mbs-success-message p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Loading Overlay */
.mbs-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 100;
}

.mbs-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #A27035;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mbs-booking-form-container {
        padding: 25px;
        margin: 20px;
    }
    
    .mbs-step-label {
        font-size: 10px;
    }
    
    .mbs-service-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .mbs-form-row {
        grid-template-columns: 1fr;
    }
    
    .mbs-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mbs-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mbs-progress-steps {
        margin-bottom: 30px;
    }
    
    .mbs-step-number {
        width: 35px;
        height: 35px;
    }
    
    .mbs-step-title {
        font-size: 22px;
    }
    
    .mbs-service-options {
        grid-template-columns: 1fr;
    }
}
