/* FORMS
------------------------------------------------ */
.form label {
    display: block;
    font-size: 15px;
}
form label.tooltip {
    margin-bottom: .5rem;
}
.form input {
    width: 100%;
    height: 46px;
}
.form textarea {
    padding-block: 12px;
}
.form-control {
    width: 100%;
    padding-inline: 16px;
    border-radius: 2px;
    border: 1px solid #C59D8A;
    background: #FFFAF8;
    font-family: var(--font-family);
    font-size: 15px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-control::placeholder {
    color: #5E646B;
}
.form-control:hover:not(:disabled):not(.is-invalid) {
    border-color: #9964D5;
}
.form-control:focus:not(:disabled) {
    border-color:  #9964D5;
    box-shadow:  0 0 0 3px rgba(143, 104, 255, 0.18);
}
.form-control.valid {
    padding-right: calc(1.5em + .75rem);
    background-image: url("../../assets/ico/valid.svg");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.form-control.is-invalid {
    border-color: #DB2120;
    padding-right: calc(1.5em + .75rem);
    background-image: url("../../assets/ico/invalid.svg");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.invalid-feedback {
    font-size: 0.875em;
    color: #DB2120;
}
.form-control:disabled {
    background: #f7e6df;
    color: rgba(43, 43, 43, 0.4);
    cursor: not-allowed;
}
.radio-buttons-inline {
    display: inline-block;
}
.radio-buttons .order {
    background: #f4e0d6;
    display: flex;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    border: unset;
    transition: all 0.3s ease;
    width: fit-content;
    font-size: 13px !important;
}
.radio-buttons .order:hover,
input[type="radio"]:checked + label {
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #311f48;
    text-decoration: none;
}
.radio-buttons .order .dot{
    height: 16px;
    width: 16px;
    background: #ffffff;
    border: 1px solid #311f48;
    border-radius: 50%;
    position: relative;
    top: 1px;
    left: -5px;
}
.radio-buttons .order .dot::before {
    position: absolute;
    content: "";
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: #311f48;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.5);
    transition: all 0.3s ease;
}
input[type="radio"]{
    display: none;
}
input[type="radio"]:checked + label .dot {
    background: #fff;
}
input[type="radio"]:checked + label .dot::before {
    opacity: 1;
    transform: scale(1);
}
.radio-buttons .option span {
    color: #808080;
}
.form .btn {
    border: none;
}
.form .grid {
    width: 100%;
    display: grid;
    grid-template-columns:  20px 1fr 20px;
    border-radius: 2px;
    box-shadow: 0 22px 73px 0 rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-inline: auto;
}
.form .text {
    padding-top: 20px;
    grid-column: 2 / span 1;
    text-align: left;
}
.form .text p {
    font-size: 17px;
    font-weight: bold;
}
.form .text .row {
    display: flex;
    gap: 15px;
    font-size: 17px;
    padding-top: 15px;
}
.form .inputs {
    grid-column: 2 / span 1;
    padding-block: 80px;
}
.form .inputs .row {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 21px;
}
.form .inputs .row>div {
    width: 100%;
    text-align: left;
}
form .approval {
    font-size: 15px;
    color: #76717d;
}
form .approval a {
    color: #76717d;
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 922px) {
    .form .grid {
        width: 90%;
        height: auto;
        grid-template-columns: 140px 1fr 88px 1fr 140px;
    }
    .form .text {
        padding-top: 90px;
    }
    .form .inputs {
        grid-column: 4 / span 1;
    }
}
@media (min-width: 1200px) {
    .form .grid {
        width: 1127px;
    }
}


/* MODAL
-------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 12px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    z-index: 10000;
}
#principles.modal {
    z-index: 11000;
}
.modal.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
.modal .modal-content {
    position: relative;
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0;
    padding: 18px 16px 20px 16px;
}
.modal .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}
.modal .modal-content p,
.modal .modal-content li {
    font-size: 15px;
}
.modal-form {
    height: auto;
    align-items: stretch;
    margin-block: auto;
}
.modal .row.d-flex {
    flex-direction: column;
    gap: 20px;
}
.col-6 {
    max-width: 100%;
    width: 100%;
    flex: 0;
}
.gap-60 {
    gap: 60px;
}
.modal .form .row {
    margin-top: 21px;
}
.contact-support {
    width: 100%;
    max-width: none;
    margin-top: 0;
    background-color: #fff4ef;
}
.contact-support > div {
    margin: auto;
    padding: 22px 16px;
    text-align: center;
}
.contact-support .manager-box {
    display: block;
    font-size: 15px;
    padding-inline: 0;
}
.contact-support .manager-box img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 12px auto 8px auto;
}
.contact-support .text {
    text-align: center;
}
.contact-support.general .manager-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 16px;
}
.contact-support.general .manager-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    margin: 0;
}
.contact-support.general .manager-box img + img {
    margin-left: -18px;
}
.contact-support.general .manager-box img {
    position: relative;
}
.contact-support.general .manager-box img:nth-child(1) { z-index: 1; }
.contact-support.general .manager-box img:nth-child(2) { z-index: 2; }
.contact-support.general .manager-box img:nth-child(3) { z-index: 3; }
.contact-support.general .manager-box img:nth-child(4) { z-index: 4; }

@media (min-width: 620px) {
    .modal {
        align-items: flex-start;
        padding: 60px 0;
    }
    .modal .modal-content {
        padding-inline: 50px;
    }
    .col-6 {
        max-width: 50%;
        flex: 0 0 100%;
    }
    .modal .row.d-flex {
        flex-direction: row;
        gap: 60px;
    }
    .contact-support {
        margin-top: 40px;
        max-width: 303px;
        width: auto;
    }
    .contact-support > div {
        padding: 40px;
    }
}
@media (min-width: 922px) {
    .modal .modal-content {
        width: 90%;
        max-width: 900px;
        max-height: calc(100vh - 120px);
        padding: 20px 80px 40px 80px;
    }
}