@font-face {
    font-family: Rostelecom;
    src: url("./assets/fonts/RostelecomBasis-Regular.otf"), url("./assets/fonts/RostelecomBasis-Bold.otf");
    font-weight: 400 bold;
    font-style: normal;
}

* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Links */

a,
a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

body {
    font-family: "Rostelecom", sans-serif;
}

/* Form */

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button,
input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

body {
    background-color: #f1f3f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.Feedback-Card__Container {
    background-color: #fff;
    width: 100%;
    max-width: 680px;
    min-height: 150px;
    border-radius: 32px;
    padding: 25px;
}

.Feedback-Card__Title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.Feedback-Card__Sub-Title {
    font-size: 16px;
    line-height: 20px;
    margin-top: 10px;
}

.Feedback-Card-Form-Title {
    font-weight: bold;
    margin-top: 20px;
    letter-spacing: 0.8px;
}

.Feedback-Card-Form-User-Inputs {
    display: flex;
    margin-top: 20px;
    justify-content: space-between;
}

.input-container {
    position: relative;
    width: 100%;
    min-width: 300px;
}

.input-container--small {
    max-width: 300px;
}

.input-container i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-container input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #F1F3F5;
    background: #F1F3F5;
    border-radius: 12px;
    font-size: 16px;
}

.input-container textarea {
    width: 100%;
    border: 1px solid #F1F3F5;
    background: #F1F3F5;
    border-radius: 12px;
    font-size: 16px;
    overflow: hidden;
    overflow-wrap: break-word;
    height: 105px;
    padding: 10px 10px 10px 10px;
    resize: none;
}

.input-container input:focus {
    outline: none;
    border-color: #ff4f12;
}

.input-container textarea:focus {
    outline: none;
    border-color: #ff4f12;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-left: 5px;
}

/* Скрываем стандартный чекбокс */
.checkbox-container input[type="checkbox"] {
    display: none;
}

/* Создаем кастомный чекбокс */
.checkbox-container label {
    position: relative;
    padding-left: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    max-width: 390px;
}

/* Создаем квадрат для чекбокса */
.checkbox-container label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #F1F3F5;
    background-color: #F1F3F5;
    /* Серый цвет по умолчанию */
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Изменяем цвет, когда чекбокс отмечен */
.checkbox-container input[type="checkbox"]:checked+label::before {
    background-color: #fff;
    /* Белый цвет при включении */
    border-color: #ff4f12;
    /* Зеленая рамка для акцента */
}

/* Добавляем галочку */
.checkbox-container input[type="checkbox"]:checked+label::after {
    content: '\2713';
    /* Символ галочки */
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #ff4f12;
    /* Цвет галочки */
}

.feedback-submit {
    font-size: 16px;
    padding: 10px 18px;
    background: linear-gradient(271deg, #FF7E51 7.64%, #FF4F12 90.68%);
    color: white;
    border-radius: 12px;
    line-height: 24px;
    margin-top: 20px;
    max-width: 360px;
    width: 100%;
}

.message-container {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    /* text-align: center; */
    display: none;
    /* По умолчанию скрыт */
}

.message-container.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
    display: block;
    /* Показываем при ошибке */
}

.message-container.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    display: block;
    /* Показываем при успехе */
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.popup-content p {
    font-size: 18px;
    margin-top: 20px;
}

@media (max-width: 680px) {
    .Feedback-Card-Form-User-Inputs {
        flex-direction: column;
        gap: 20px
    }

    .input-container--small {
        width: 100%;
        max-width: none;
    }
}