/* Service Booking Single-Page Flow Styles - Modern Design */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

.com-service-booking {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.booking-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

.booking-header h1 {
    margin-bottom: 10px;
    font-weight: 700;
}

.booking-content {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

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

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

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.2);
    border-color: var(--primary-color);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-duration {
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

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

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    padding: 15px 5px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 600;
    position: relative;
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.calendar-day.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background-color: #f8f9fa;
    opacity: 0.5;
}

/* Time Slots */
.slots-container {
    margin-top: 30px;
}

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

.time-slot {
    padding: 15px 10px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.time-slot:hover::before {
    width: 100px;
    height: 100px;
}

.time-slot:hover:not(.disabled) {
    background-color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.time-slot.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background-color: #f8f9fa;
    opacity: 0.5;
}

/* Booking Summary */
.booking-summary {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.summary-value {
    font-weight: 700;
    color: var(--dark-color);
}

.summary-total {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Booking Form */
.booking-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Payment Section */
.payment-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.payment-gateways {
    margin-top: 20px;
}

.payment-gateways .form-check {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    background: white;
}

.payment-gateways .form-check:hover {
    background-color: #f5f5f5;
}

.payment-gateways .form-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.payment-gateways .form-check-label img {
    width: 32px;
    height: 32px;
}

/* Confirmation */
.success-animation {
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-details {
    max-width: 500px;
    margin: 0 auto;
}

/* Selected Info Boxes */
.selected-service-info,
.selected-booking-info,
.payment-summary {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .com-service-booking {
        margin: 10px;
        padding: 10px;
    }
    
    .booking-header {
        padding: 30px 20px;
    }
    
    .booking-content {
        padding: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .booking-summary {
        position: static;
        margin-top: 20px;
    }
}
