/* Booking Modal Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Iframe specific adjustments */
body.iframe-mode {
    background-color: #ffffff;
    overflow-y: auto;
}


.booking-modal {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background-color: #ffffff;
}

/* When in iframe, remove modal background and adjust container */
body.iframe-mode .booking-modal {
    background-color: transparent;
    padding: 0;
    min-height: auto;
}

.booking-container {
    background: white;
    border-radius: 0;
    padding: 40px;
    max-width: 100%;
    width: 100%;
    position: relative;
    box-shadow: none;
    max-height: none;
    overflow-y: visible;
}

/* Adjust container for iframe */
body.iframe-mode .booking-container {
    box-shadow: none;
    border-radius: 0;
    padding: 30px 20px;
    min-height: 100vh;
}

.btn-close-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.btn-close-custom:hover {
    color: #000;
}

.logo {
    max-width: 200px;
    height: auto;
}

.logo-small {
    max-width: 150px;
    height: auto;
}

.booking-title {
    font-size: 18px !important;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    color: #0052a3;
}

.back-link svg {
    margin-right: 5px;
}

/* Service Cards */
.service-card {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
}

.service-card:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Subcategories */
.subcategories-container {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 3px solid #0066cc;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-item {
    width: 100%;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
    display: block;
}

.subcategory-item:hover {
    border-color: #0066cc;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    transform: translateX(5px);
}

.subcategory-title {
    font-size: 15px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 6px;
}

.subcategory-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn-quantity {
    width: 50px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quantity:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.quantity-input {
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

/* Form Controls */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 16px;
}

/* Buttons */
.btn-primary {
    background-color: #0066cc;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-outline-primary {
    border: 2px solid #0066cc;
    color: #0066cc;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    color: white;
}

/* Progress Bar */
.progress {
    background-color: #e5e7eb;
    border-radius: 10px;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Booking Summary */
.booking-summary {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}

/* Day Selector */
.day-selector {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.day-btn {
    flex: 0 0 auto;
    min-width: 80px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.day-btn:hover {
    border-color: #0066cc;
}

.day-btn.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
}

.day-name {
    font-size: 14px;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-number {
    font-size: 12px;
    color: #666;
}

/* Time Slot Buttons */
.time-slot-btn {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.time-slot-btn:hover {
    border-color: #0066cc;
}

.time-slot-btn.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
    color: #0066cc;
}

/* Confirmation Section */
.confirmation-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.confirmation-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.confirmation-section p {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-container {
        padding: 30px 20px;
    }

    .booking-title {
        font-size: 20px;
    }

    .day-selector {
        gap: 5px;
    }

    .day-btn {
        min-width: 70px;
        padding: 10px;
    }
}

/* Scrollbar Styling */
.booking-container::-webkit-scrollbar {
    width: 8px;
}

.booking-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.booking-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.booking-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}