#contact-finder-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    right: 0;
    inline-size: 100%;
    block-size: 100%;
    z-index: 1000;
    display: none;
}

#contact-finder-overlay.active {
    display:block; 
}

#contact-finder {
    position: fixed;
    top: 0;
    right: 0;
    inline-size: 100%;
    block-size: 100vh;
    background-color: hsl(0, 0%, 99%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .4s ease;

}

@media screen and (min-width: 767px) {
    #contact-finder {
        inline-size: 700px;
    }
}

@media screen and (min-width: 1024px) {
    #contact-finder {
        inline-size: 600px;
    }
}

#contact-finder.active {
    transform: translateX(0);
}

#contact-finder header {
    box-sizing: border-box;
    block-size: 148px;
    background-color: hsl(0, 0%, 0%);
    color: hsl(0, 0%, 100%);
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact-finder header p {
    font-size: 24px;
    font-weight: 700;
    color: hsl(0, 0%, 100%);
}


#close-contact-finder {
    inline-size: 48px;
    block-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all .3s ease;
}


#close-contact-finder:hover {
    background-color: rgba(255, 255, 255, .1);
    transform: rotate(90deg);
}


#close-contact-finder:focus {
    outline: 2px solid hsl(50, 100%, 50%);
    outline-offset: 2px;
}


#contact-finder section {
    padding: 30px 50px;
    position: relative;
    overflow-y: scroll;
    flex: 1;
}

#contact-finder section h3 {
    font-weight: 800;
    font-size: 22px;
}

#contact-finder section form {
    margin-block-start: 20px;
}

#contact-finder section input {
    display: block;
    border: 1px solid hsl(0, 0%, 20%);
    border-radius: 7px;
    block-size: 47px;
    inline-size: 100%;
    font-size: 16px;
    margin-block-end: 20px;
    padding-inline-start: 15px;
}

#contact-finder section label {
    display: block;
    margin-block-end: 5px;
}

#contact-finder section a.link {
    color: hsl(216, 57%, 39%);
    font-weight: 700;
}

#contact-finder section input:focus {
    outline: unset;
}

#contact-finder section button {
    background-color: hsl(50, 100%, 50%);
    font-weight: 500;
    border: 2px solid hsl(50, 100%, 50%);
    color: hsl(0, 0%, 0%);
    padding: 15px 31px;
    border-radius: 7px;
    margin-block-start: 10px;
    transition: 0.4s ease-in-out;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

#contact-finder section button:hover {
    filter: brightness(1.05);
    transform: scale(1.02);
}

#contact-finder section .autocomplete-wrapper {
    position: relative;
    width: 100%;
}

#contact-finder section .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

#contact-finder section .suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
}


#contact-finder section .suggestion-item:hover,
#contact-finder section .suggestion-item.active {
    background: #f5f7fa;
}

#contact-finder section #distributor-results {
    display: none;
}

#contact-finder section #distributor-results {
    background-color: hsl(0, 0%, 99%);
    border-radius: 10px;
    padding: 30px 30px 50px 30px;
    box-shadow: #000 1px 1px 2px;
    margin-block-start: 30px;
}

#contact-finder section #distributor-results .contact-person {
    margin-block: 10px;
}


