﻿.rate-statement {
    font-size: .8rem;
}

.rate-statement span {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
}
/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

/* Modal Content */
.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
    position: relative;
}

    .modal-content p {
        font-size: 1rem;
        font-weight: bold;
    }
/* Close Button */
.close {
    position: absolute;
    left: 15px; /* RTL positioning */
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Stars container */
.stars {
    display: flex;
    flex-direction: row-reverse; /* RTL */
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

/* Individual star with number */
.star-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
}

    /* Star style */
    .star-wrapper i {
        color: #ccc;
        transition: color 0.2s;
        font-style:normal;
    }

    .star-wrapper i.selected {
        color: gold;
    }

/* Number under star */
.star-number {
    font-size: 14px;
    color: #666;
    margin-top: -4px;
    user-select: none;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
    direction: rtl;
    text-align: right;
}

    textarea:focus-visible {
        border: 1px solid #ccc !important;
    }
/* Animations */
@keyframes fadeIn {
    from {
        background-color: rgba(0,0,0,0);
    }

    to {
        background-color: rgba(0,0,0,0.6);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 500px) {
    .stars {
        gap: 6px;
    }

    .star-wrapper {
        font-size: 32px;
    }

    .star-number {
        font-size: 12px;
    }
}
