@font-face {
    font-family: 'open-sans';
    src: url('./fonts/OpenSans.ttf');
    width: 100 900;
}

* {
    margin: 0;
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    font-family: 'open-sans', Ariel;
    font-size: 16px;
    direction: rtl;
}
.main {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5vw;
    background: rgb(0,166,81);
    background: linear-gradient(6deg, rgba(0,166,81,0.5) 0%, rgba(0,174,239,0.5) 100%);

}
.logo img {
    width: 20vw;
}
.form {
    background: #ffffff;
    padding: 2vw;
    border-radius: 0.7vw;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    width: 40vw;
    color: #4F4F65;
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);
}
.form-header {
    font-size: 3.2vw;
    text-align: center;
}
.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}
.input {
    width: 100%;
    padding: 0.5vw 1vw;
    font-family: 'open-sans', Ariel;
    font-size: 1.5vw;
    border-radius: 0.7vw;
    border: 1px solid #4F4F65;
    color: #4F4F65;
}
.input::placeholder {
    color: #4F4F65;
    font-family: 'open-sans', Ariel;
    font-size: 1.5vw;
}
.select {
    appearance: none;
    background: none;
    background-image: url('./images/arrow.svg');
    background-repeat: no-repeat;
    background-position-x: 0.5vw;
    background-position-y: 50%;
}
.cityDropdown {
    position: relative;
    width: 100%;
}
#cities {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    background: #fff;
    z-index: 1000;
    display: none;
}
.citiesOption {
    cursor: pointer;
    padding: 0.5vw 1vw;
    font-family: 'open-sans', Ariel;
    font-size: 1.5vw;
    color: #4F4F65;
}
.submit {
    font-family: 'open-sans', Ariel;
    width: 100%;
    padding: 0.5vw 1vw;
    color: white;
    background: rgb(0,166,81);
    background: linear-gradient(90deg, rgba(0,166,81,0.8) 0%, rgba(0,174,239,0.8) 100%);
    border: none;
    border-radius: 0.7vw;
    font-size: 1.5vw;
    cursor: pointer;
}
.submit:hover {
    opacity: 0.9;
}
.thanks {
    text-align: center;
    font-size: 2vw;
}
.errDiv {
    font-size: 1.5vw;
    color: tomato;
}
.error {
    border: 1px solid tomato;
}
.error::placeholder {
    color: tomato;
}

@media screen and (max-width: 768px) {
    
    .main {
        gap: 6vw;
    }
    .logo img {
        width: 70vw;
    }
    .form {
        width: 90%;
        border-radius: 2vw;
        padding: 7vw;
        gap: 3vw;
    }
    .form-header {
        font-size: 10vw;
    }
    .form-inputs {
        gap: 3vw;
    }
    .input {
        border-radius: 2vw;
        font-size: 5vw;
        padding: 2vw 4vw;
    }
    .input::placeholder {
        font-size: 5vw;
    }
    #cities {
        max-height: 50vw;
    }
    .citiesOption {
        font-size: 5vw;
        padding: 2vw 4vw;
    }
    .submit {
        padding: 2vw 4vw;
        font-size: 5vw;
        border-radius: 2vw;
    }
    .errDiv {
        font-size: 5vw;
    }
    .thanks {
        font-size: 6vw;
    }
}