#cv-form {
    grid-column: 4 / 12;
    box-shadow: var(--shadow);
    padding: 2vw 3vw;
    background-color: white;
    border-radius: 8px;
}

h2 {
    margin: 1vh 0;
}

#upload-cv {
    padding: 0.5vh 1vw;
    border-radius: 8px;
    border: 3px dashed var(--primary-1-faded);
    color: white;
    cursor: pointer;
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
}

#upload-cv p {
    margin-top: 1vh;
    color: var(--primary-1);
}

button[type="submit"] {
    padding: 0.5vh 1vw;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    float: right;
    height: 5vh;
}

#supported-formats {
    margin-top: 1vh;
    color: var(--primary-1-faded);
    font-size: 0.7em;
}

#job-preferences-form {
    grid-column: 4 / 12;
}

fieldset {
    box-shadow: var(--shadow);
    background-color: white;
    border-radius: 8px;
    padding: 2vw 3vw;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 3vh 0;
}

fieldset label {
    margin: 4vh 0 2vh;
}

fieldset input,
fieldset select {
    width: 30vw;
    height: 6vh;
    border-radius: 5px;
    border: none;
    background-color: white;
    box-shadow: var(--shadow);
    padding-left: 1vw;
}

fieldset select {
    width: 31vw;
}

#location-fieldset > input {
    margin: 2vh 0;
}

#location-suggestion input {
    margin: 0.5vh;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1vw;
    margin: 3vh 0;
}

.selected-items div {
    padding: 0.5vh 1vw;
    border-radius: 5px;
    background-color: var(--primary-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-items div img {
    height: 2vh;
    margin-left: 0.5vw;
}

#job-title-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5vw;
    margin-top: 1vh;
    padding: 4vh;
    box-shadow: var(--shadow);
    border-radius: 8px;
    min-height: 10vh;
    min-width: 90%;
    background-color: white;
}

#job-title-suggestions input {
    padding: 0.5vh;
    border-radius: 5px;
    display: inline;
    width: auto;
    background-color: #f0f0f0;
    color: var(--primary-1);
    box-shadow: none;
    border: none;
}

#job-title-suggestions input:active {
    background-color: var(--primary-1-faded);
}

button[type="submit"] {
    width: 10vw;
}

#job-titles-fieldset > p {
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 2vw;
}

input[type="email"] {
    color: var(--primary-1-faded);
}

@media (orientation: portrait) {
    #cv-form,
    #job-preferences-form {
        grid-column: 1 / 7;
    }

    button[type="submit"] {
        width: 40vw;
    }

    #job-preferences-form input,
    #job-preferences-form select {
        width: 100%;
    }

    #job-preferences-form button[type="submit"] {
        margin: 3vh 5vw;
    }

    #job-title-suggestions {
        min-width: 90vw;
        min-height: 30vh;
        padding: 2vw;
        margin-bottom: 2vh;
    }

    #job-title-suggestions input {
        width: auto;
    }
}
