
.form-container,
.contact-form {
    box-shadow: 0px 10px 40px rgb(0 0 0 / 0.06);
    background-color: var(--white);
    max-width: 752px;
    width: 100%;
    margin: auto;
    position: relative;
    top: -50px;
    z-index: 10;
    padding-inline: 56px;
    border-radius: 8px;
    padding-bottom: 56px;
    &.form-online-container {
        max-width: 1128px;
        padding-inline: 75px;
        padding-bottom: 75px;
    }
    .form-title {
        padding-block: 50px;
    }
    h2 {
        font-size: 30px;
        font-weight: 700;
        color: #253a7b;
    }
    p {
        font-size: 12px;
        color: #495057;
        line-height: 20px;
    }
    .form-inputs {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
        gap: 24px;
        &.online {
            grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
        }
    }
    .form-inputs .input-container {
        display: -webkit-flex;
        flex-direction: column;
        position: relative;

        .drop-down {
            position: absolute;
            right: 0;
            top: 26px;
            border: 1px solid #ccc;
            width: 40px;
            height: 40px;
            border-radius: 4px;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background-color: var(--white);
        }
    }
    label {
        color: #252f40;
        font-weight: 700;
        font-size: 12px;
        margin-bottom: 8px;
        display: block;
    }
    input,
    textarea,
    .select-box {
        border: 1px solid #ccc;
        padding: 9px 12px;
        border-radius: 4px;
        outline: 0;
        height: 40px;
        transition: 0.4s;
        &:focus {
            border-color: #253a7b;
        }
    }
    .textarea {
        margin-top: 24px;
        textarea {
            width: 100%;
            height: 150px;
            resize: none;
        }
    }
    .form-actions {
        display: -webkit-flex;
        justify-content: space-between;
        margin-top: 24px;
        flex-wrap: wrap;
        gap: 24px;

        button {
            max-width: 156px;
            height: 40px;
            width: 100%;
            background-color: #253a7b;
            color: var(--white);
            border-radius: 6px;
            cursor: pointer;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            outline: 0;
            border: 0;
        }
    }
}
.contact-form {
    .form-inputs {
        display: grid;
        grid-template-columns: repeat(2, minmax(308px, 1fr));
        gap: 24px;
    }
}
.select-box {
    position: relative;
    direction: ltr;

    input {
        width: 100%;
        font-size: 1.1rem;
        outline: none;
        font-size: 12px;
        font-weight: normal !important;
        color: #495057;
        border: 0;
    }
}
.selected-option {
    overflow: hidden;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    div {
        position: relative;
        width: 70px;
        cursor: pointer;
        font-size: 12px;
        font-weight: normal !important;
        color: #495057;
        border-right: 1px solid #ccc;
        &::after {
            position: absolute;
            content: "";
            right: 8px;
            top: 50%;
            transform: translateY(-50%) rotate(45deg);
            width: 5px;
            height: 5px;
            border-right: 0.12rem solid #495057;
            border-bottom: 0.12rem solid #495057;
            transition: 0.2s;
        }
        &.active::after {
            transform: translateY(-50%) rotate(225deg);
        }
    }
    strong {
        font-size: 12px;
        font-weight: normal !important;
        color: #495057;
    }
}
.select-box .options {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0.5rem;
    display: none;
    z-index: 5;
    &.active {
        display: block;
    }
}
input.search-box {
    background-color: #eee;
    color: var(--black);
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 2px 10px;
    font-size: 12px;
}
.select-box ol {
    list-style: none;
    max-height: 160px;
    overflow: overlay;
    border: 1px solid #ccc;
    &::-webkit-scrollbar {
        width: 0.4rem;
    }
    &::-webkit-scrollbar-thumb {
        width: 0.4rem;
        height: 3rem;
        background-color: #ccc;
        border-radius: 0.4rem;
    }
    li {
        display: -webkit-flex;
        justify-content: space-between;
        cursor: pointer;
        padding: 4px;
        font-size: 12px;
        strong {
            font-weight: 400;
        }
        &.hide {
            display: none;
        }
        &:not(:last-child) {
            border-bottom: 0.1rem solid #eee;
        }
        &:hover {
            background-color: #eee;
        }
        .country-name {
            margin-left: 0.4rem;
        }
    }
}

.drop-list {
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 130px;
    overflow-y: scroll;
    width: 310px;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    font-size: 14px;
    position: absolute;
    top: 60px;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
}

.drop-list li {
    border-bottom: 1px solid #ccc;
    padding: 8px;
    cursor: pointer;
    font-size: 12px;
}

.drop-list li:hover {
    background-color: #d5dff1;
}

.drop-list::-webkit-scrollbar {
    width: 0.4rem;
}

.drop-list::-webkit-scrollbar-thumb {
    width: 0.4rem;
    height: 3rem;
    background-color: #ccc;
    border-radius: 0.4rem;
}

.show-list {
    top: 70px;
    z-index: 10;
    opacity: 1;
    display: block;
}

.input-file::-webkit-file-upload-button {
    visibility: hidden;
    width: 0px;
}
.input-file {
    padding-inline: 0 !important;
    color: #495057;
}
.upload-file {
    position: absolute;
    background-color: #253a7b;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 27px;
    cursor: pointer;
}

@media screen and (max-width: 700px) {
    .form-container,
    .contact-form {
        max-width: 95%;
        padding-inline: 25px;
        padding-bottom: 30px;
        .form-title {
            padding-block: 30px;
        }
        &.form-online-container {
            max-width: 95%;
            padding-inline: 25px;
            padding-bottom: 30px;
        }
        h2 {
            font-size: 25px;
        }
        .form-inputs {
            grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            gap: 16px !important;
            &.online {
                grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            }
        }
        .form-actions {
            justify-content: center;
            button {
                max-width: 100%;
            }
        }
    }
}
