.feedback-button {
    position: fixed;
    right: 0px;
    top: 50%;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.feedback-button:hover {
    filter: brightness(1.15);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000080;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90vw;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    animation: flyInBounce 0.5s ease-out forwards;
    box-shadow: 0 10px 30px #0000001a;
    transition: box-shadow 0.3s ease;
}

.modal-content:hover {
    box-shadow: 0 15px 40px #00000026;
}

.modal-overlay.show {
    display: flex !important;
    animation: fadeInOverlay 0.3s ease-in-out;
}

.modal-overlay.hide {
    animation: fadeOutOverlay 0.3s ease-in-out forwards;
    pointer-events: none;
}

.modal-content textarea {
    width: 100%;
    height: 120px;
    resize: vertical;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.modal-content button {
    color: var(--primary-color);
    border: none;
    padding: 0px 5px;
    cursor: pointer;
    font-size: 1.5em;
}

.modal-content button:hover {
    color: var(--secondary-color);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: var(--bg-column);
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.form-group label {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin: 0 0 20px 0;
    margin-bottom: 15px;
    text-align: center;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    background: var(--white);
    border-radius: var(--border-radius);
}

.form-group input:focus,
.form-group select:focus {
    background: var(--bg-column);
}

.feedback-button img {
    width: 50%;
    border-radius: 8px 0 0 8px;
}

.feedback-button img:hover {
    box-shadow: 0 2px 4px 1px #00000040;
}

.loading-spinner {
    width: 80px;
    aspect-ratio: 1;
    background: radial-gradient(farthest-side, #144e8b 90%, #0000) center / 16px 16px,
        radial-gradient(farthest-side, #6abaf1 90%, #0000) bottom / 12px 12px;
    background-repeat: no-repeat;
    animation: l17 1s infinite linear;
    position: relative;
    margin: 20px auto;
}

.loading-spinner::before {
    content: "";
    position: absolute;
    width: 8px;
    aspect-ratio: 1;
    inset: auto 0 16px;
    margin: auto;
    background: #a8c8eb;
    border-radius: 50%;
    transform-origin: 50% calc(100% + 10px);
    animation: inherit;
    animation-duration: 0.5s;
}

@keyframes l17 {
    100% {
        transform: rotate(1turn);
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes flyInBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    60% {
        transform: translateY(10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .modal-content {
        transform: translateY(-10px) scale(0.95);
        animation: flyInBounce 0.5s ease-out forwards;
    }

    .feedback-button img {
        width: 40%;
        display: none;
    }
}
