@import url('site-theme.css');

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f4f4f4;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

label {
    font-weight: bold;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.stars {
    display: flex;
    justify-content: left;
    gap: 5px;
    flex-direction: row-reverse;
}

.stars input {
    display: none;
}

.stars label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}

.stars label:hover,
.stars label:hover~label,
.stars input:checked~label {
    color: #f39c12;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #28a745;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background: #218838;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
}

#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 45%;
    bottom: 30%;
    font-size: 17px;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30%;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30%;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}