/* main content */
.register-container {
    padding: 115px 50px;
    color: var(--black1);
    display: flex;
    flex-direction: column;
    justify-content: center;

    .login-bottom {
        margin: 0;
    }
    .login-bottom-left-contacts {
        flex-direction: row;
        gap: 24px;
    }
}
/* middle */
.register-middle {
    max-width: 1000px;

    .body6 {
        padding-bottom: 32px;
    }
}
.input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 16px;
    transition: all 0.4s ease;

    .caption2 {
        color: var(--greyText1);
        padding-bottom: 4px;
    }
    select option[disabled] {
        color: var(--greyText1)
    }
    select::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    select {
        scrollbar-width: none; 
    }
}
.input-container div {
    display: flex;
    flex-direction: column;
}

/* inputs */
.dropdown-selected, #email, #company_name, 
#company_code, #phone, #city, #address, 
#postcode, #name, #surname {
    background: var(--white1);
    border: 1px solid var(--greyBorder1);
    border-radius: 8px;
    width: 100%;
    padding: 13px 16px;
    color: var(--greyText1);
    transition: all 0.4s ease;
}

.dropdown-selected:hover, #email:hover, #company_name:hover, 
#company_code:hover, #phone:hover, #city:hover, #address:hover, 
#postcode:hover, #name:hover, #surname:hover {
    border-color: var(--greyText1);
}
#email:focus, #company_name:focus, 
#company_code:focus, #phone:focus, #city:focus, #address:focus, 
#postcode:focus, #name:focus, #surname:focus {
    color: var(--black1);
    border: 1px solid var(--blue1);
    outline: none;
}
#email:not(:placeholder-shown), #company_name:not(:placeholder-shown), 
#company_code:not(:placeholder-shown), #phone:not(:placeholder-shown), #city:not(:placeholder-shown), 
#address:not(:placeholder-shown), #postcode:not(:placeholder-shown), #name:not(:placeholder-shown), 
#surname:not(:placeholder-shown) {
    color: var(--black1);
}

#billing_country {
    color: var(--black1) !important;
}

#accept_privacy_policy {
    width: 16px;
    height: 16px;
    appearance: none;
    border: 2px solid var(--greyText1);
    border-radius: 3px;
    cursor: pointer;
}
#accept_privacy_policy:checked {
    width: 16px;
    height: 16px;
    background-color: var(--blue1);
    border-color: var(--blue1);
}
#accept_privacy_policy:checked::after {
    content: '';
    position: relative;
    display: block;
    width: 4px;
    height: 8px;
    border: solid var(--white1);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 25%;
}
#email.error-input, #company_name.error-input, 
#company_code.error-input, #phone.error-input, #city.error-input, #address.error-input, 
#postcode.error-input, #name.error-input, #surname.error-input {
    border-color: var(--red1);
} 
#email.error-input:focus, #company_name:focus.error-input, 
#company_code:focus.error-input, #phone:focus.error-input, #city:focus.error-input, #address:focus.error-input, 
#postcode:focus.error-input, #name:focus.error-input, #surname:focus.error-input {
    border-color: var(--blue1);
} 
/* dropdown */
.custom-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.custom-dropdown::after {
    content: '';
    position: absolute;
    background-image: url(../../icons/dropdown-passive.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    pointer-events: none;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.4s ease;
}
.custom-dropdown.active::after {
    background-image: url(../../icons/dropdown-active.svg);
    transform: translateY(-50%) rotate(180deg);
}
.dropdown-selected {
    cursor: pointer;
}
/* search */
.dropdown-search {
    position: absolute;
    width: 100%;
    top: 0;
    opacity: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: opacity 0.4s ease;
}

.dropdown-search-input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    outline: none;
    border-radius: 8px;
    background: var(--white1);
    box-sizing: border-box;
}
.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white1);
    color: var(--black1);
    border: 1px solid var(--blue1);
    border-radius: 8px;
    /* max-height: 180px; */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 50;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}
.custom-dropdown.active .dropdown-options {
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
}
.custom-dropdown.active .dropdown-search {
    opacity: 1;
    border-color: var(--blue1);
}
.custom-dropdown.selected .dropdown-selected {
    color: var(--black1);
}
.custom-dropdown.error-input .dropdown-selected {
    border-color: var(--red1); 
}
.custom-dropdown.error-input .dropdown-selected:focus {
    border-color: var(--blue1);
}
.dropdown-options::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.dropdown-options li {
    padding: 13px 16px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.dropdown-options li:hover {
    background: var(--blue2);
}
.hidden {
    display: none;
}
    
/* check box */
.rememberme-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.reg-form-check-cont {
    display: flex;
    gap: 16px;
    color: var(--black1);
    padding: 24px 0;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    a {
        color: var(--black1);
    }
    .check-left-side {
        display: flex;
        gap: 8px;

        a {
            border-bottom: 1px solid var(--black1);
            transition: all 0.4s ease;
        }
        a:hover {
            color: var(--blue1);
            border-color: var(--blue1);
        }
    }
    .check-right-side {
        color: var(--greyText1);
    }
}
/* message */
.register-message {
    display: none;
    padding-top: 16px;
}
.register-message.success {
    color: var(--green1);
}
.register-message.error {
    color: var(--red1);
}

/* buttons */
.button-container {
    display: flex;
    gap: 16px;
    transition: all 0.4s ease;
}
.primary-blue-btn {
    all: unset;
    width: 357px;
    padding: 0 32px;
    height: 50px;
    border-radius: 8px !important;
    color: var(--white1) !important;
    background: var(--blue1) !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s ease;
}
.primary-blue-btn:hover {
    background: var(--hoverBlue1) !important;
}
.primary-blue-btn:disabled {
    background: var(--greyBackground1) !important; 
    color: var(--greyText1) !important;     
    pointer-events: none;     
}
.primary-white-btn {
    all: unset;
    width: auto;
    padding: 0 32px;
    height: 50px;
    border: 1px solid var(--blue1);
    border-radius: 8px !important;
    color: var(--blue1) !important;
    background: var(--white1) !important;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s ease;
}
.primary-white-btn:hover {
    background: var(--greyBorder1) !important;
}
.primary-white-btn:disabled {
    background: var(--greyBorder1) !important; 
    color: var(--greyText1) !important;     
    pointer-events: none;   
}

/* responsive */
@media (max-width: 767px) {
    /* main content */
    .register-container {
        padding: 20px 20px 50px;

        .login-bottom-left-contacts {
            flex-direction: column;
            gap: 12px;
        }
    }
    /* middle */
    .input-container {
        display: grid;
        grid-template-columns: 1fr;
    }
    .reg-form-check-cont {
        flex-direction: column-reverse;
        align-items: start;
    }
    /* buttons */
    .button-container {
        flex-direction: column-reverse;
    }
    .primary-blue-btn {
        height: 45px;
        width: auto;
    }
    .primary-white-btn {
        height: 45px;
    }
}