:root {
    
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

html {
    margin: 0;
    padding: 0;
    font-size: 20px;
    background-color: #f7f7f7;
}

body {
    padding: 32px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

html, label, button {
    font-family: 'DM Sans', sans-serif;
}

h1 {
    color: var(--title-color);
    text-align: center;
    margin: 0;
    display: block;
}

.logo{
    display: block;
    max-width: 420px;
    width: fit-content;
}

.logo img {
    height: 84px;
    object-fit: contain;
    width: 100%;
    display: block;
}

p.thanks {
    margin: 0;
    color: #adadad;
    text-align: center;
    max-width: 740px;
}

p.thanks a {
    color: var(--title-color);
    text-underline-position: under;
    text-underline-offset: 0px;
    text-decoration-thickness: 1px;
    text-decoration-skip-ink: none;
}

input{
    height: 50px;
}

input, textarea {
    border: none;
    background-color: #f6f6f6;
    resize: none;
    padding: 16px;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    font-size: 18px;
    color: #4c4b4b;
}

input[readonly],
textarea[readonly] {
    cursor: not-allowed;
    background-image: url('data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNDQ4IDUxMiI+CiAgICA8cGF0aCBmaWxsPSIjNzY4MTlmIiBkPSJNMjI0IDY0YzQ0LjIgMCA4MCAzNS44IDgwIDgwdjQ4SDE0NFYxNDRjMC00NC4yIDM1LjgtODAgODAtODB6TTgwIDE0NHY0OEg2NGMtMzUuMyAwLTY0IDI4LjctNjQgNjRWNDQ4YzAgMzUuMyAyOC43IDY0IDY0IDY0SDM4NGMzNS4zIDAgNjQtMjguNyA2NC02NFYyNTZjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzY4VjE0NEMzNjggNjQuNSAzMDMuNSAwIDIyNCAwUzgwIDY0LjUgODAgMTQ0ek0yNTYgMzIwdjY0YzAgMTcuNy0xNC4zIDMyLTMyIDMycy0zMi0xNC4zLTMyLTMyVjMyMGMwLTE3LjcgMTQuMy0zMiAzMi0zMnMzMiAxNC4zIDMyIDMyeiI+PC9wYXRoPgo8L3N2Zz4K');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: calc(100% - 16px) center;
    padding-right: calc(16px + 20px + 16px) !important;
}

hr {
    margin: 0;
    border: 0;
    height: 1px;
    background: #e0e0e0;
    width: 100%;
    opacity: 1;
}

.desc{
    flex: 1;
}

textarea{
    height: 100%;
}

.form-left > div, .desc{
    display: flex;
    flex-direction: column;
}

.form-left > div > label, .desc > label{
    margin: 0 0 8px 0;
    color: #8b8b8b;
    font-weight: bold;
}

.davros{
    display: flex;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    box-shadow: 0 0 32px rgb(0 0 0/20%);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    padding: 32px;
}

.davros > form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 0;
    width: 100%;
}

::placeholder {
    opacity: .75;
    color: currentColor;
}

.form-top{
    display: flex;
    flex-direction: row;
    gap: 32px;
    width: 100%;
}

.form-left{
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.form-bot{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 32px;
    width: 50%;
}

.preview-box > img{
    position: relative;
    height: calc(100% - 48px);
    width: calc(100% - 48px);
    object-fit: contain;
    display: block;
}

.img-in{
    flex: 1;
    background-color: var(--bg-color);
    color: white;
    padding: 0.5rem;
    font-family: sans-serif;
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    font-weight: bold;
}

.img-in:hover {
    background-color: var(--title-color);
}

.img-in label {
    pointer-events: none;
}

.preview-box{
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.fullwidth {
    width: 100%;
}

.submit{
    align-self: center;
    background-color: var(--bg-color);
    border: none;
    font-size: 25px;
    font-weight: 600;
    padding: 20px 50px;
    width: fit-content;
    color: white;
    border-radius: 16px;
    cursor: pointer;
}

.submit:hover {
    background-color: var(--title-color);
}

.info{
    text-align: center;
    font-size: 16px;
    color: #adadad;
    display: block;
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
}

#img-prev{
    background: none;
}

.error-box{
    background-color: #ff8282;
    border: 1px solid #ff4444;
    color: #c00000;
    padding: 20px;
    width: 100%;
    text-align: center;
}

small {
    display: block;
    margin: -8px 0 8px 0;
    font-size: 15px;
    color: #ccc;
}

@media only screen and (max-width: 700px){
    .form-top{
        flex-direction: column;
        gap: 16px;
    }
    .form-bot{
        width: 100%;
    }
    .desc > textarea{
        height: 200px;
    }
}