.rmUIform {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.rmUIform__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 14px;
    background-color: var(--block-bg);
    border-radius: 21px;
}

.rmUIform__title {
    font-family: 'Unbounded';
    font-weight: 500;
    color: var(--red-color);
    font-size: 24px;
    margin-bottom: 24px;
}


.rmUIform__container {
    display: flex;
    flex-direction: column;
    gap: 21px;
    width: 100%;
}

.rmUIinput__block {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.rmUIlabel {
    font-family: 'Unbounded';
    font-weight: 500;
    color: var(--black-color);
    font-size: 18px;
    transition: all 0.4s ease;
}

.rmUIinput__block:focus-within .rmUIlabel {
    color: var(--red-color);
}

.rmUIlabel span {
    color: var(--red-color);
}

.rmUIlabel:hover {
    color: var(--red-color);
}

.rmUIinput {
    display: flex;
    flex-direction: column;
    padding: 14px 24px;
    background-color: var(--input-bg);
    border-radius: 14px;
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--black-color);
    font-size: 16px;
    border: 2px solid var(--input-border);
    transition: all 0.4s ease;
}

.rmUIinput::placeholder {
    color: var(--gray-color);
}

.rmUIinput:hover {
    border-color: var(--black-color);
}

.rmUIinput:focus {
    border-color: var(--red-color);
}

.rmUItextarea {
    resize: none;
    height: 270px;
    outline: none;
}

.rmUIsmall__text {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--black-color);
    font-size: 16px;
}



/* ФУТЕР ФОРМЫ */
.rmUIform__footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.rmUIform__buttons-wrapper {
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
}

.rmUIform__button svg {
    height: 27px;
    width: 27px;
    fill: var(--gray-color);
    flex-shrink: 0;
    transition: all 0.5s ease;
}

.rmUIform__button svg:hover {
    fill: var(--red-color);
}


.rmUIform__send-button__wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.rmUIform__send-button {
    display: flex;
    flex-direction: row;
    gap: 7px;
    justify-content: center;
    padding: 14px 57px;
    align-items: center;
    background-image: linear-gradient(90deg, #f07461, #9e2c1d);
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--white-color);
    font-size: 18px;
    border-radius: 14px;
    user-select: none;
    transition: all 0.5s ease;
}

.rmUIform__send-button:hover {
    opacity: 0.75;
}

.rmUIform__send-button-width--full,
.rmUIform__send-button__wrapper--full {
    width: 100%;
}





/* ФАЙЛОВЫЙ БЛОК */
.rmUIform-files {
    display: flex;
    flex-direction: column;
}

.rmUIform-files__list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rmUIform-file {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 260px;
    height: 170px;
    align-items: center;
    gap: 1px;
    overflow: hidden;
    border-radius: 14px;
    background-color: var(--white-color);
    padding: 10px;
}

.rmUIform-file img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.rmUIform-file__name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    padding: 7px;
    color: var(--black-color);
    font-size: 13px;
    text-align: center;
} 

.rmUIform-file__remove {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.rmUIform-file svg {
    width: 42px;
    height: 42px;
    fill: var(--gray-color);
    flex-shrink: 0;
}

.rmUIform-file__name {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    color: var(--black-color);
    font-size: 18px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rmUIform-file__size {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--gray-color);
    font-size: 14px;
}

.rmUIform-file__remove {
    position: absolute;
    top: 6px;
    right: 8px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    color: var(--gray-color);
    font-size: 16px;
    cursor: pointer;
}


/* МОДАЛЬНОЕ ОКНО ЗАГРУЗКИ */
.rmUIformmodal {    
    display: none;
    align-items: center;
    position: fixed;
    justify-content: center;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 999;
}

.rmUIformmodal.active {
    display: flex;
}

body.active {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
}

.rmUIformmodal__content {
    display: flex;
    flex-direction: column;
    background-color: var(--block-bg);
    padding: 25px;
    width: 92vw;
    border-radius: 18px;
    gap: 20px;
}

.rmUIformmodal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rmUIformmodal__title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--black-color);
    font-size: 27px;
}

.rmUIformmodal__close {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    color: var(--black-color);
    cursor: pointer;
    font-size: 18px;
    background: none;
}

.rmUIformmodal__buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 12px;
}

.rmUIformmodal__button {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    color: var(--white-color);
    font-size: 17px;
    padding: 14px 1px;
    background-color: var(--black-color);
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    user-select: none;
    transition: all 0.3s ease;
}

.rmUIformmodal__button:hover {
    background-color: rgba(0,0,0,0.6);
}






.rmUIradio {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.rmUIradio__item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.rmUIradio__item input {
    display: none;
}

.rmUIradio__circle {
    position: relative;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 3px solid var(--gray-color);
    background-color: transparent;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.rmUIradio__text {
    font-family: 'Montserrat';
    font-weight: 500;
    color: var(--gray-color);
    font-size: 18px;
    margin-left: 4px;
    transition: all 0.4s ease;
}

.rmUIradio__item:hover .rmUIradio__circle {
    border-color: var(--black-color);
}

.rmUIradio__item:hover .rmUIradio__text {
    color: var(--black-color);
}

.rmUIradio__item input:checked + .rmUIradio__circle {
    border-color: var(--red-color);
    box-shadow: 0 0 0 3px rgba(195, 53, 31, 0.15), 0 0 0 8px rgba(195, 53, 31, 0.08), 0 0 20px 5px rgba(195, 53, 31, 0.35);
    transition: box-shadow 0.2s ease;
}


.rmUIradio__item input:checked ~ .rmUIradio__text {
    color: var(--red-color);
}