/* Modal Styles */
.sb-booking-wrapper {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.sb-open-modal {
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.sb-open-modal:hover {
    background: #051106;
}

.sb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sb-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.sb-close {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Services Grid */
.sb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.sb-service-item {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.sb-service-item:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
}

.sb-service-item.selected {
    border-color: #4CAF50;
    background: #f8fff8;
}

.sb-service-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.sb-service-item h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Form Styles */
.sb-form-group {
    margin-bottom: 20px;
}

.sb-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.sb-form-group input,
.sb-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.sb-form-group textarea {
    height: 100px;
    resize: vertical;
}

.sb-form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.sb-back-btn,
.sb-submit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.sb-back-btn {
    background: #f0f0f0;
    color: #333;
}

.sb-submit-btn {
    background: #4CAF50;
    color: white;
}

.sb-back-btn:hover {
    background: #e0e0e0;
}

.sb-submit-btn:hover {
    background: #45a049;
}

/* Success Message */
.sb-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.sb-success-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sb-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .sb-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .sb-service-item {
        padding: 15px;
    }
    
    .sb-service-item img {
        width: 48px;
        height: 48px;
    }
    
    .sb-service-item h3 {
        font-size: 14px;
    }
}