/* Custom Booking System - Public Styles */

.cbs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 9, 20, 0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.cbs-modal-overlay.active {
    display: flex;
}

.cbs-modal {
    background: #010914;
    border: 1px solid #A4763F;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: cbsSlideIn 0.3s ease-out;
    direction: rtl;
}

@keyframes cbsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbs-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(164, 118, 63, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbs-modal-header h2 {
    margin: 0;
    color: #A4763F;
    font-size: 20px;
    font-weight: 600;
}

.cbs-modal-close {
    background: none;
    border: none;
    color: #A4763F;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cbs-modal-close:hover {
    background: rgba(164, 118, 63, 0.15);
}

.cbs-modal-body {
    padding: 25px;
}

.cbs-product-info {
    background: rgba(164, 118, 63, 0.1);
    border: 1px solid rgba(164, 118, 63, 0.2);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.cbs-product-info strong {
    color: #A4763F;
}

.cbs-product-info span {
    color: #fff;
}

.cbs-form-group {
    margin-bottom: 18px;
}

.cbs-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #A4763F;
    font-weight: 500;
    font-size: 14px;
}

.cbs-input {
    width: 100%;
    background: #000204 !important;
    border: 1px solid rgba(164, 118, 63, 0.3) !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    color: #fff !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
    outline: none !important;
}

.cbs-input:focus {
    border-color: #A4763F !important;
    box-shadow: 0 0 0 2px rgba(164, 118, 63, 0.15) !important;
}

.cbs-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

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

select.cbs-input {
    cursor: pointer;
    appearance: auto;
}

select.cbs-input option {
    background: #000204;
    color: #fff;
}

.cbs-submit-btn {
    width: 100%;
    background: #A4763F !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: opacity 0.2s, transform 0.1s !important;
    margin-top: 10px;
}

.cbs-submit-btn:hover {
    opacity: 0.9;
}

.cbs-submit-btn:active {
    transform: scale(0.98);
}

.cbs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cbs-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.cbs-message.success {
    display: block;
    background: rgba(10, 160, 10, 0.15);
    border: 1px solid rgba(10, 160, 10, 0.3);
    color: #4caf50;
}

.cbs-message.error {
    display: block;
    background: rgba(224, 0, 0, 0.15);
    border: 1px solid rgba(224, 0, 0, 0.3);
    color: #f44336;
}

.cbs-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cbsSpin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes cbsSpin {
    to { transform: rotate(360deg); }
}

/* Scrollbar styling for modal */
.cbs-modal::-webkit-scrollbar {
    width: 6px;
}

.cbs-modal::-webkit-scrollbar-track {
    background: #010914;
}

.cbs-modal::-webkit-scrollbar-thumb {
    background: #A4763F;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 480px) {
    .bs-modal {
        max-height: 95vh;
    }
    .cbs-modal-header h2 {
        font-size: 18px;
    }
    .cbs-modal-body {
        padding: 20px;
    }
}
