.bcp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.bcp-modal.open {
    display: flex;
}

.bcp-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.bcp-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bcp-modal-title {
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.bcp-modal-title i {
    color: #3CB8E6;
}

.bcp-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: #f1f3f5;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.bcp-modal-close:hover {
    background: #ffe3e3;
    color: #e03131;
}

.bcp-modal-body {
    padding: 2rem;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.bcp-section {
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.bcp-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bcp-service-name {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.bcp-service-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.bcp-service-meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bcp-service-meta span:last-child {
    font-weight: 700;
    color: #3CB8E6;
}

.bcp-service-deposit {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #495057;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.bcp-slot-datetime {
    font-weight: 600;
    color: #212529;
    font-size: 1.05rem;
}

.bcp-user-name {
    font-weight: 600;
    color: #212529;
}

.bcp-user-email {
    font-size: 0.9rem;
    color: #6c757d;
}

.bcp-notes-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bcp-notes-input:focus {
    border-color: #3CB8E6;
    box-shadow: 0 0 0 3px rgba(60, 184, 230, 0.1);
}

.bcp-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.25rem;
    font-weight: 500;
    text-align: center;
}

.bcp-status.error {
    color: #dc3545;
}

.bcp-status.success {
    color: #198754;
}

.bcp-modal-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.bcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.bcp-btn-primary {
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(60, 184, 230, 0.2);
}

.bcp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(60, 184, 230, 0.3);
}

.bcp-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bcp-btn-secondary {
    background: transparent;
    color: #3CB8E6;
    border: 1px solid #3CB8E6;
}

.bcp-btn-secondary:hover {
    background: #3CB8E6;
    color: #ffffff;
}

/* Reminder Control Styles */
.bcp-reminder-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bcp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.bcp-checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: #3CB8E6;
}

.bcp-reminder-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    transition: opacity 0.2s ease;
}

.bcp-reminder-input-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.bcp-input-sm {
    width: 80px;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.bcp-reminder-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 2rem;
    min-height: 1.2rem;
}

.bcp-reminder-hint.error {
    color: #dc3545;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 480px) {
    .bcp-modal-dialog {
        max-width: 95%;
        margin: 1rem;
    }

    .bcp-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .bcp-btn {
        width: 100%;
    }
}
