/* Autobook Form Styles */

/* Background Colors */
.bg-light-grey {
    background-color: #f8f9fa;
}

/* Info Sidebar */
.info-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-sidebar h4 {
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
}

.info-sidebar ul li {
    color: #495057;
    padding-left: 0.5rem;
    transition: transform 0.2s ease;
}

.info-sidebar ul li:hover {
    transform: translateX(5px);
}

/* Step Progress Bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 1rem 0;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-progress-line {
    position: absolute;
    top: 20px;
    left: 12.5%;
    height: 3px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    z-index: 1;
    transition: width 0.4s ease;
    width: 0%;
}

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

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-item.active .step-circle {
    border-color: #28a745;
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #28a745;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #28a745;
}

/* Question Steps */
.question-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.question-step h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #333;
}

.question-step h2 strong {
    font-weight: 700;
}

/* Service Selection Buttons */
.service-option {
    padding: 1.5rem 1rem;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-option:hover::before {
    opacity: 1;
}

.service-option:hover {
    border-color: #28a745;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.service-option * {
    position: relative;
    z-index: 1;
}

.service-option:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.service-option img {
    transition: all 0.3s ease;
}

.service-option.selected {
    border-color: #28a745;
    background: #28a745;
    color: white;
}

/* Form Controls */
.autobook-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.autobook-input:focus {
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15), 0 4px 12px rgba(40, 167, 69, 0.1);
    transform: translateY(-1px);
}

.autobook-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.autobook-btn-primary {
    background: #28a745;
    color: white !important;
}

.autobook-btn-primary:hover {
    background: #218838;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

.autobook-btn-secondary:hover {
    background: #5a6268;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-progress::before {
        top: 16px;
        left: 12.5%;
        right: 12.5%;
    }
    
    .step-progress-line {
        top: 16px;
        left: 12.5%;
    }
    
    .question-step {
        padding: 1.5rem 1rem;
    }
    
    .question-step h2 {
        font-size: 1.25rem;
    }
    
    .service-option {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

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

.question-step {
    animation: fadeIn 0.4s ease;
}

/* Loading State */
.autobook-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.autobook-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

