* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #4285F4 0%, #4285F4 100%);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.left-section {
    flex: 1;
    background: linear-gradient(135deg, #4285F4 0%, #4285F4 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
     background: url('/images/professional-cleaning-service-person-using-steam-cleaner-office.jpg') center/cover;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: 500px;
    background: url('/images/professional-cleaning-service-person-using-steam-cleaner-office.jpg') center/cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.brand-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.cart-info {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.right-section {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tabs-container {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    padding: 0 40px;
}

.tab {
    padding: 20px 0;
    margin-right: 40px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab.active {
    color: #333;
    border-bottom-color: #333;
}

.tab-number {
    background: #f0f0f0;
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 600;
}

.tab.active .tab-number {
    background: #333;
    color: white;
}

.content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.service-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.service-option:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-option.selected {
    border-color: #333;
    background: #f8f8f8;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
 .service-icon img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

.service-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.service-info p {
    font-size: 14px;
    color: #666;
}

.service-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.addon-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.checkbox.checked {
    background: #333;
    border-color: #333;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #333;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}



.radio.checked {
    border-color: #333;
}

.radio.checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottom-section {
    padding: 20px 30px;
    border-top: 1px solid #e5e5e5;
    background: white;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.price-text {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.next-button {
    background: #2d8eff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}



.next-button:hover {
    background: #1c6fd9;
}

/* Responsive Design for smaller screens */
@media (max-width: 600px) {
    .bottom-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .price-text {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .next-button {
        width: 100%;
        font-size: 16px;
    }
}


@media (max-width: 768px) {

.radio-option {
    margin-left: -300px;
}

.radio-option label {
        font-size: 16px;
        line-height: 1.4;
        word-wrap: break-word;
        margin-left: -290px;
        margin-top: 5px;
    }

.radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
}

}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hidden {
    display: none;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 968px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-section {
        height: 280px;
        min-height: 280px;
        padding: 20px;
      
    }
    
    .hero-image {
        height: 200px;
        max-width: 100%;
    }


    
    .brand-logo {
        top: 15px;
        left: 20px;
        font-size: 24px;
        
    }
    
    .cart-info {
        top: 15px;
        right: 20px;
    }
    
    .tabs-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 20px;
    }
    
    .tab {
        margin-right: 20px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .bottom-section {
        padding: 20px;
    }
}


/*PART 2*/
.tab-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: #6c757d;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-item.active {
            color: #007bff;
            border-bottom-color: #007bff;
        }

        .tab-number {
            background: #e9ecef;
            color: #6c757d;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            font-size: 12px;
            font-weight: bold;
        }

        .tab-item.active .tab-number {
            background: #007bff;
            color: white;
        }

           .tab-content {
            padding: 30px;
            display: none;
        }

        .tab-content.active {
            display: block;
        }
  .tabs-header {
            display: flex;
            background: white;
            border-bottom: 1px solid #e9ecef;
            padding: 0 20px;
        }

       

        .radio-item {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .radio-item input[type="radio"] {
            margin-right: 8px;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .form-group select, .form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 16px;
        }

        .combo-group {
            display: flex;
             margin-top: 24px;
            gap: 20px;
        }

        .combo-group .form-group {
            flex: 1;
        }

        .checkbox-item {
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .checkbox-item:hover {
            border-color: #007bff;
            background-color: #f8f9ff;
        }

        .checkbox-item.selected {
            border-color: #007bff;
            background-color: #f8f9ff;
        }

        .checkbox-info {
            display: flex;
            align-items: center;
        }

        .checkbox-info input[type="checkbox"] {
            margin-right: 15px;
        }

          .continue-btn {
            width: 100%;
            padding: 15px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .continue-btn:hover {
            background: #0056b3;
        }

        .continue-btn:disabled {
            background: #6c757d;
            cursor: not-allowed;
        }

        .note {
            background: #e7f3ff;
            border-left: 4px solid #007bff;
            padding: 15px;
            margin: 0;
            margin-top: 0; 
            margin-bottom: 20px;
            border-radius: 4px;
            font-size: 14px;
        }

        .tip {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            padding: 10px;
            border-radius: 4px;
            font-size: 14px;
            color: #155724;
            margin-bottom: 15px;
        }

        .recurring-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
        }

        .hidden {
            display: none !important;
        }

        h2 {
            margin-bottom: 25px;
            color: #333;
        }

        h3 {
            margin-bottom: 15px;
            color: #495057;
        }

        @media (max-width: 768px) {
            .tabs-header {
                overflow-x: auto;
                padding: 0 10px;
            }
            
            .tab-content {
                padding: 20px 15px;
            }
            
            .combo-group {
                flex-direction: column;
                gap: 10px;
            }
            
            .radio-group {
                flex-direction: column;
                gap: 10px;
            }
        }

        /* Modal Styles */
       .modal {
            display: none;
            position: fixed;
            z-index: 9999; /* Increased z-index */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            /* Ensure modal is above everything */
        }

        .modal-content {
            background-color: #fff;
            margin: 10vh auto; /* Changed from 15% to viewport height */
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            /* Center the modal properly */
            transform: translateY(0);
        }

 .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            color: #999;
            cursor: pointer;
            line-height: 1;
        }

        .close-modal:hover {
            color: #333;
        }
.modal h2 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
        }

        .modal p {
            margin-bottom: 20px;
            color: #666;
            line-height: 1.5;
        }

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

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .input-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s;
            box-sizing: border-box;
        }

        .input-group input:focus {
            outline: none;
            border-color: #007bff;
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: flex-end;
        }
.btn-secondary {
            padding: 12px 24px;
            border: 2px solid #ddd;
            background-color: #fff;
            color: #666;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
        }

        .btn-secondary:hover {
            background-color: #f8f9fa;
            border-color: #adb5bd;
        }

        .btn-primary {
            padding: 12px 24px;
            border: 2px solid #007bff;
            background-color: #007bff;
            color: #fff;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }

/* Price Message Styles */
.price-message {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 6px;
            padding: 12px;
            margin-top: 15px;
            color: #856404;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
        }

       


/* By Square Meter Button Styles */
#by-meter-btn {
    cursor: pointer;
    transition: all 0.3s;
}

#by-meter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
           
            .modal-content {
                margin: 8vh auto;
                width: 92%;
                max-width: 450px;
            }
            
            
        }

        @media (max-width: 768px) {
           
            
            .modal-content {
                margin: 5vh auto;
                padding: 20px;
                width: 95%;
                max-width: 400px;
            }
            
            .modal-buttons {
                flex-direction: column;
                gap: 12px;
            }
            
            .btn-secondary,
            .btn-primary {
                width: 100%;
                padding: 14px 20px;
                font-size: 16px;
            }
            
           
            
            h1 {
                font-size: 24px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .modal-content {
                margin: 3vh auto;
                padding: 15px;
                width: 98%;
                border-radius: 8px;
            }
            
            .modal h2 {
                font-size: 20px;
                text-align: center;
            }
            
            .modal p {
                font-size: 14px;
                text-align: center;
            }
            
            .input-group input {
                padding: 14px;
                font-size: 16px;
                border-radius: 8px;
            }
            
            .close-modal {
                top: 10px;
                right: 15px;
                font-size: 24px;
            }
            
            .construction-type {
                padding: 12px;
                font-size: 14px;
                border-radius: 6px;
            }
            
            .price-display {
                font-size: 18px;
                padding: 10px;
                background: #f8f9fa;
                border-radius: 6px;
            }
            
            .price-message {
                font-size: 13px;
                padding: 10px;
            }
            
            h1 {
                font-size: 20px;
                margin-bottom: 15px;
            }
        }

        @media (max-width: 360px) {
            .modal-content {
                margin: 2vh auto;
                padding: 12px;
                width: 99%;
            }
            
            .modal h2 {
                font-size: 18px;
                margin-bottom: 10px;
            }
            
            .input-group {
                margin-bottom: 20px;
            }
            
            .btn-secondary,
            .btn-primary {
                padding: 12px 16px;
                font-size: 15px;
            }
        }

        /* Landscape orientation adjustments */
        @media (max-height: 600px) and (orientation: landscape) {
            .modal-content {
                margin: 2vh auto;
                max-height: 90vh;
                overflow-y: auto;
            }
            
            .modal h2 {
                margin-bottom: 10px;
            }
            
            .modal p {
                margin-bottom: 15px;
            }
            
            .input-group {
                margin-bottom: 15px;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            
            .input-group input {
                border-width: 1px;
            }
            
            .btn-primary,
            .btn-secondary {
                border-width: 1px;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            
            .btn-primary:hover,
            .btn-secondary:hover {
                transform: none;
            }
            
            .btn-primary:active,
            .btn-secondary:active {
                transform: scale(0.98);
            }
            
            .close-modal {
                padding: 5px;
                font-size: 30px;
            }
        }


        /* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Booking confirmation styles */
.booking-confirmation {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    align-items: flex-start;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #666;
    min-width: 150px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message h3 {
    margin-bottom: 15px;
    color: #721c24;
}

.error-message p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.error-message .next-button {
    background: #dc3545;
    margin-top: 15px;
}

.error-message .next-button:hover {
    background: #c82333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .confirmation-details {
        padding: 20px;
    }
    
    .booking-confirmation {
        padding: 20px 10px;
    }
}