.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-close {
    background: transparent;
    border: none;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 5px;
    margin: 0;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: var(--color-black);
}

.modal-close .icon-close {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.modal-close:hover .icon-close,
.modal-close:active .icon-close {
    transform: rotate(90deg);
}

body.modal-open {
    overflow: hidden;
}

.review-modal.success .modal-content {
    background-color: green;
    color: var(--color-white);
}

.review-modal.has-error .modal-content {
    background-color: red;
    color: var(--color-white);
}

/* Review form */

.review-form {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.review-form
    input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not(
        [type="radio"]
    ) {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #b6b6b6;
    border-radius: 8px;
    font-size: 1rem;
    border-radius: 10px;
}

.review-form textarea {
    border: 1px solid #b6b6b6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    border-radius: 10px;
    min-height: 200px;
}

.modal-content .modal-title {
    text-align: center;
    margin-bottom: 20px;
}

.modal-content .star-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-content .stars {
    display: flex;
    cursor: pointer;
}

.modal-content .star {
    width: 24px;
    height: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}

.modal-content .star.filled {
    background-image: url("../img/svg/star-fill.svg");
}
.modal-content .star.empty {
    background-image: url("../img/svg/star-empty.svg");
}

.modal-content .rating-input {
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: none;

    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 80px;
}

.modal-content .step-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: var(--single_blue);
    color: var(--color-white);

    font-size: 16px;
    font-weight: 500;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.modal-content .step-btn:hover {
    background: var(--single_blue_dark);
}

.modal-content .step-btn:active {
    background: var(--single_blue_dark);
    transform: scale(0.95);
}