.form-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .5);
	z-index: 994;
}
.form {
	position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
    display: none;
}
.form-wrap {
	background-color: var(--light-grey);
	border-radius: var(--border-radius);
	border: 2px solid var(--grey-hover);
	padding: 28px;
	max-width: 510px;
    z-index: 995;
}
.form-name {
	font-family: var(--font-roboto);
	font-size: 32px;
	font-weight: bold;
	line-height: 40px;
	color: var(--near-black);
	padding-bottom: 20px;
}
.form-questions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.form__input {
	width: 100%;
	max-width: 48.6% !important;
	padding: 16px 28px !important;
	color: var(--near-black) !important;
	border-radius: var(--border-radius) !important;
	border: 1px solid var(--grey-hover) !important;
}
.form-agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.form-agreement-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-agreement-item label {
    position: relative;
    padding-left: 32px; 
    user-select: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    color: #333;
}

.form-agreement-item label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--grey-hover);
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}

.form__input:nth-child(1) {
	max-width: 100% !important; 
}
.form-agreement-item label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s ease;
}

.form-agreement-item input[type="checkbox"]:checked + label::before {
    background: var(--yellow-corp); 
    border-color: var(--yellow-corp);
}

.form-agreement-item input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.form-close {
    display: flex;
    justify-content: end;
    padding-bottom: 30px;
}

.form-agreement {
    padding: 32px 0;
}

.form__submit {
    width: 100%;
    padding: 16px;
    background-color: var(--yellow-corp);
    transition: .5s;
    color: var(--near-black);
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.form-close-button {
    cursor: pointer;
}

.form-right-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.form-right-text {
    font-family: var(--font-roboto);
    color: var(--near-black);
    line-height: 24px;
    text-align: center;
}

.form-description {
    font-size: 12px;
    color: var(--near-black);
    padding-bottom: 20px;
}

@media screen {
    .form__submit:hover {
        background-color: var(--yellow-hover);
    }
}
@media (max-width: 530px) {
    .form__input {
        max-width: 100% !important;
    }
    .form-wrap {
        margin: 0 10px;
    }
}
