/* Review Modals & User Review Styling - Professional Design */

/* ============================================
   1. REVIEW REMINDER SECTION
   ============================================ */

.review-reminder {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196F3;
    padding: 16px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.review-reminder i {
    color: #2196F3;
    margin-right: 10px;
    font-size: 18px;
}

.review-reminder-content strong {
    color: #1565c0;
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-bottom: 4px;
}

.review-reminder-content p {
    color: #0d47a1;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

.review-reminder-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.review-reminder-btn:hover {
    background: linear-gradient(135deg, #1876D2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

@media (max-width: 768px) {
    .review-reminder {
        flex-direction: column;
        gap: 12px;
    }

    .review-reminder-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   2. REVIEW REMINDER MODAL (Now or Later)
   ============================================ */

#reviewReminderModal {
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    display: none;
}

.modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
}

.modal-header .emoji {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.modal-subtext {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

.modal-body p strong {
    font-weight: 700;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-primary {
    background-color: white;
    color: #667eea;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal-btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.modal-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   3. REVIEW FORM MODAL
   ============================================ */

#reviewModal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
    display: none;
}

.review-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.review-modal-header h2 {
    margin: 0 0 8px 0;
    color: #0d0d0d;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.review-modal-header i {
    color: #ffc107;
    margin-right: 8px;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.review-modal-subtext {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

#reviewForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.form-group label .required {
    color: #ff8e3c;
}

.rating-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    margin: 12px 0;
}

.rating-star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rating-star:hover,
.rating-star.active {
    color: #ffc107;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    transform: scale(1.1);
}

#suggestion {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

#suggestion:focus {
    outline: none;
    border-color: #ff8e3c;
    box-shadow: 0 0 0 3px rgba(255, 142, 60, 0.1);
}

.char-count {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-modal {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modal-cancel {
    background-color: #6b7280;
    color: white;
}

.btn-modal-cancel:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    transform: translateY(-2px);
}

.btn-modal-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-modal-submit i {
    margin-right: 6px;
}

/* ============================================
   4. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .review-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20% auto;
    }

    .review-modal-header h2 {
        font-size: 1.4rem;
    }

    .rating-selector {
        font-size: 2rem;
        gap: 6px;
    }

    #suggestion {
        min-height: 100px;
        font-size: 0.9rem;
    }

    .modal-container {
        width: 95%;
        margin: 30% auto;
        max-width: 400px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header .emoji {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .review-reminder {
        padding: 12px;
    }

    .modal-container {
        border-radius: 8px;
    }

    .review-modal-content {
        width: 95%;
        padding: 16px;
    }

    .rating-selector {
        font-size: 1.8rem;
    }

    .modal-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* COMPACT REVIEW MODALS */
.review-reminder { margin-bottom: 16px; padding: 12px 12px; gap: 16px; }
.modal-container { margin: 8% auto; max-width: 420px; }
.modal-header { padding: 18px; }
.modal-body { padding: 18px; }
.review-modal-content { padding: 24px; max-width: 480px; }
.review-modal-header { margin-bottom: 16px; }
.review-modal-header h2 { font-size: 1.6rem; }
#suggestion { min-height: 100px; padding: 10px; }
.modal-actions { gap: 10px; }
.btn-modal { padding: 10px 16px; }
@media (max-width: 768px) {
    .review-modal-content { padding: 18px; margin: 18% auto; }
    .modal-body { padding: 16px; }
    .modal-header { padding: 18px; }
}
@media (max-width: 480px) {
    .review-reminder { padding: 10px; }
    .review-modal-content { padding: 14px; }
    .modal-btn { padding: 10px 14px; }
}
