* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'bmw-reg';
    src: url('./fonts/BMWTypeNextProHebrew-Regular.otf');
}
@font-face {
    font-family: 'bmw-light';
    src: url('./fonts/BMWTypeNextProHebrew-Light.otf');
}
html,body {
    font-family: 'bmw-reg', sans-serif;
}
.main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    direction: rtl;
}
.top {
    width: 100%;
    aspect-ratio: 1920/911;
    background-image: url('./images/desktop-bg.jpg');
    background-size: 100% 100%;
    position: relative;
}
.title {
    position: absolute;
    width: 30vw;
    top: 7vw;
    right: 17vw;
}
.form {
    font-family: 'bmw-light', sans-serif;
    height: 43vw;
    width: 28vw;
    top: 2vw;
    left: 12vw;
    position: absolute;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3vw;
    gap: 0.5vw;
}
.form-title {
    font-family: 'bmw-reg', sans-serif;
    text-align: center;
    font-size: 1.2vw;
    padding-bottom: 1vw;
}
.input {
    width: 100%;
    font-family: 'bmw-light', sans-serif;
    font-size: 1vw;
    padding: 0.6vw 1vw 0.7vw;
    color: #7e7e7e;
    border: 1px solid #7e7e7e;
    background: white;
}
.privacy-terms {
    font-size: 0.8vw;
    color: #7e7e7e;
}
.privacy-terms a {
    color: #7e7e7e;
    text-decoration: underline;
}
.input::placeholder{
    color: #7e7e7e;
}
.checkbox-container {
    font-size: 0.8vw;
    width: 100%;
    color: #7e7e7e;
    display: flex;
    gap: 0.5vw;
    justify-content: flex-start;
}
.checkbox-label {
    cursor: pointer;
    line-height: 1.2;
}
#checkbox {
    width: 4vw;
}
.submit {
    cursor: pointer;
    background: #1d6ad4;
    color: white;
    width: 100%;
    font-size: 1.5vw;
    font-family: 'bmw-reg', sans-serif;
    padding: 0.3vw;
    border: none;
}
.form-terms {
    font-size: 0.8vw;
    width: 100%;
    color: #7e7e7e;
    text-align: center;
}
.form-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 1vw;
}
.form-links a {
    color: #7e7e7e;
    text-decoration: underline;
}
.error { outline: 1px solid tomato; }
.error::placeholder { color: tomato; }
.desktop { display: flex; }
.mobile { display: none; }
@media (max-width: 768px) {
    .top {
        background-image: url('./images/mobile-bg.jpg');
        aspect-ratio: 640 / 279;
    }
    .title {
        right: unset;
        left: 5vw;
        top: 18vw;
        width: 40vw;
    }
    .form {
        position:static;
        width: 100%;
        height: unset;
        padding: 5vw 8vw;
        gap: 2vw;
    }
    .form-title {
        font-size: 5vw;
    }
    .input {
        font-size: 5vw;
        padding: 2vw 4vw 2.5vw;
    }
    .privacy-terms {
        font-size: 3vw;
    }
    .checkbox-container {
        font-size: 3vw;
        gap: 2vw;
    }
    .submit {
        font-size: 6vw;
        padding: 2vw 0;
    }
    .form-terms {
        font-size: 3vw;
    }
    .form-links {
        font-size: 4vw;
    }
    .desktop { display: none; }
    .mobile { display: flex; }
}