/* ==========================================
   BOOKING REVIEW MODAL
   Modal pentru rating & review după finalizare
   ========================================== */

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.review-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.review-modal-header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.review-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.review-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.review-modal-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

/* Body */
.review-modal-body {
    padding: 40px 30px;
}

/* Service Info */
.review-service-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.review-service-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.review-service-details p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Rating Section */
.review-rating-section {
    text-align: center;
    margin-bottom: 30px;
}

.review-rating-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: block;
}

.review-stars {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.review-star {
    background: none;
    border: none;
    font-size: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d1d5db;
    padding: 0;
    line-height: 1;
}

.review-star:hover,
.review-star.active {
    color: #fbbf24;
    transform: scale(1.2);
}

.review-star.active {
    animation: starPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes starPop {
    0%, 100% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.4);
    }
}

.review-rating-text {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    min-height: 24px;
}

.review-rating-text.has-rating {
    color: #fbbf24;
}

/* Comment Section */
.review-comment-section {
    margin-bottom: 30px;
}

.review-comment-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: block;
}

.review-comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.review-comment-textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.review-comment-count {
    text-align: right;
    font-size: 13px;
    color: #9ca3af;
    margin-top: 5px;
}

/* Actions */
.review-modal-actions {
    display: flex;
    gap: 15px;
}

.review-btn {
    flex: 1;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.review-btn-submit {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.review-btn-submit:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.review-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.review-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.review-btn-cancel:hover {
    background: #e5e7eb;
}

/* Loading State */
.review-loading {
    display: none;
    align-items: center;
    gap: 10px;
}

.review-loading.active {
    display: flex;
}

.review-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success Message */
.review-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.review-success.active {
    display: block;
}

.review-success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.review-success h3 {
    font-size: 24px;
    color: #059669;
    margin-bottom: 10px;
}

.review-success p {
    font-size: 16px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .review-modal {
        border-radius: 16px;
    }
    
    .review-modal-header {
        padding: 25px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .review-modal-header h2 {
        font-size: 24px;
    }
    
    .review-modal-body {
        padding: 30px 20px;
    }
    
    .review-stars {
        gap: 10px;
    }
    
    .review-star {
        font-size: 40px;
    }
    
    .review-modal-actions {
        flex-direction: column;
    }
    
    .review-btn {
        width: 100%;
    }
}

/* Helper: Hide scrollbar pe modal body dar păstrează scroll */
.review-modal::-webkit-scrollbar {
    width: 8px;
}

.review-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.review-modal::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 10px;
}

.review-modal::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
}
