/* Review Modal Form Styles */
#reviewModal .input-group {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#reviewModal .input-group textarea {
    width: 100%;
    max-width: 350px; /* Match button width typically */
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    resize: none; /* Disable resize to prevent layout breaking */
    height: 100px;
    transition: border-color 0.3s;
    text-align: left;
    margin: 0 auto; /* Center block */
    display: block;
    box-sizing: border-box; /* Important for padding */
}

#reviewModal .input-group textarea::placeholder {
    color: #666;
    opacity: 1;
}

/* Modal Content Alignment */
#reviewModal .modal-content {
    text-align: center;
    padding: 30px;
}

#reviewModal .modal-content form {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rating Stars in Modal - FIX REVERSE ORDER ISSUE */
/* We need row-reverse for CSS hover effects, but we must ensure labels are centered */
#reviewModal .rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

#reviewModal .rating-input input {
    display: none;
}

#reviewModal .rating-input label {
    font-size: 38px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

/* Gold color when checked or hovered */
#reviewModal .rating-input input:checked ~ label,
#reviewModal .rating-input label:hover,
#reviewModal .rating-input label:hover ~ label {
    color: #fbbf24;
}

/* Submit button centering */
#reviewModal .btn-submit {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
}

/* Error Message Styles */
#reviewModal .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 350px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: left;
}

#reviewModal .close-error {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    padding: 0 0 0 10px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#reviewModal .close-error:hover {
    opacity: 1;
}