* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    background: #151515;
    max-width: 100vw;
    overflow: auto;
    height: 100vh;
    width: 100%;
    position: relative;
    background: linear-gradient(90deg, #181b43, #3a2854);
    background-size: 120%;
    animation: bg-anim 5s ease-in-out infinite alternate;
}
.feedback-container {
    justify-content: center;
    /* position: fixed;  */
    height: 100vh;
    height: fit-content;
    width: 640px;
    max-width: 100vw;
    bottom: 0;
    right: 0;
    left: 0;
    transition: bottom .3s ease;
    margin: auto;
    z-index: 22;
    display: flex;
    flex-direction: column;
    padding: 15px;
    row-gap: 10px;
    align-items: flex-end;
}

.close-fb-c {
    position: absolute;
    right: 20px;
    top: 10px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: #ffffff31;
}

.close-fb-c:hover {
    color: #ffffff57;
}

.close-fb-c:active {
    color: #ffffff81;
}

.close-fb-c svg {
    width: 100%;
    height: 100%;
}
.title {
    color: white;
    width: 100%;
    text-align: center;
}
option {
    background-color: #1a1a1a;
    color: white;
}

label {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-left: 10px;
    margin-top: 20px;
    width: 100%;
    padding-left: 10px;
}

label[for="tarea"] {
    margin-top: 0;
}

select {
    color: white;
    font-size: 14px;
    background: #2727274f;
    border: 1px solid #ffffff1b;
    border-radius: 8px;
    padding: 5px 12px;
    outline: none;
    width: 100%;
}

select:focus {
    border: 1px solid #ffffff33;
}

textarea {
    width: 100%;
    resize: vertical;
    min-height: 60px;
    background: #2727274f;
    border: 1px solid #ffffff1b;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 14px;
    outline: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

textarea:focus {
    border: 1px solid #ffffff33;
}


.submit-feedback {
    background: #fff;
    color: rgb(0, 0, 0);
    border: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 10px;
    max-width: fit-content;
    cursor: pointer;
    user-select: none;
}

.submit-feedback.disable,
.submit-feedback:disabled {
    cursor: not-allowed;
    pointer-events: none;
    background-color: #747474;
    color: #434343;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 1% auto;
    padding: 0;
    border: 1px solid #ffffff1b;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ffffff1b;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.close-modal {
    color: #ffffff57;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #ffffff81;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.modal-body .captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.modal-body #modal-captcha-image {
    border: 2px solid #ffffff1b;
    border-radius: 8px;
    background: white;
    max-width: 200px;
}

.modal-body #modal-refresh-captcha {
    background: #2727274f;
    border: 1px solid #ffffff1b;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    min-width: 40px;
}

.modal-body #modal-refresh-captcha:hover {
    background: #ffffff1b;
}

.modal-body #modal-captcha {
    width: 100%;
    background: #2727274f;
    border: 1px solid #ffffff1b;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    font-family: monospace;
    margin-bottom: 20px;
}

.modal-body #modal-captcha:focus {
    border: 1px solid #ffffff33;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancel, .btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #2727274f;
    color: white;
    border: 1px solid #ffffff1b;
}

.btn-cancel:hover {
    background: #ffffff1b;
}

.btn-submit {
    background: #fff;
    color: rgb(0, 0, 0);
}

.btn-submit:hover {
    background: #e0e0e0;
}

.btn-submit:disabled {
    background: #747474;
    color: #434343;
    cursor: not-allowed;
}






@keyframes bg-anim {
    0% {
        background-position-x: 0%;

    }
    100% {
        background-position-x: 100%;
    }
}









@media screen and (max-width: 450px) {
    select, textarea, #captcha, .submit-feedback {
        font-size: 18px;
    }
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    #captcha-image {
        align-self: center;
    }
    select {
        padding: 10px 12px;
        height: 50px;
    }
    .submit-feedback {
        width: 100%;
        max-width: none;
    }
}