.rate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000 !important;
    animation: fadeIn 0.2s ease;
}

.rate-modal-overlay.fade-out {
    animation: fadeOut 0.2s ease;
}

.rate-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.2s ease;
    position: relative;
}

.rate-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: var(--subtitle);
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.rate-modal-close:hover {
    color: #333;
}

.rate-modal-header {
    padding: 25px 25px 0 25px;
    text-align: center;
}

.rate-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: var(--subtitle);
    font-weight: 600;
    color: var(--primary-blue);
}

.rate-subtitle {
    margin-bottom: 10px;
    font-size: var(--body);
}

.rate-modal-body {
    padding: 20px 25px;
}

.rating-section {
    text-align: center;
    margin-bottom: 25px;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.star-icon {
    width: 45px;
    height: 45px;
}

.quick-feedback {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    font-size: var(--body);
}

.quick-feedback-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--body);
    color: #333;
}

.quick-feedback-btn.active {
    background: var(--primary-blue);
    color: var(--default-text);
}

.feedback-section {
    margin-bottom: 20px;
}

.feedback-section label {
    display: block;
    font-size: var(--body);
    font-weight: normal;
    margin-bottom: 8px;
}

.feedback-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: var(--body);
    resize: vertical;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.rate-modal-footer {
    padding: 15px 25px 25px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #eee;
}

.rate-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: var(--body);
    font-weight: normal;
}

.submit-btn {
    background: var(--primary-green);
    color: var(--default-text);
}

.submit-btn:hover {
    background: #267D4C;
    transform: scale(1.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}