:root {
    --primary-color: #ffffff;
    --secondary-color: #ffe600;
    --tertiary-color: #bababa;
    --alert-error: #ff0000;
    --alert-success: #398e37;
    --font-primary: 'Gotham';
    --font-secondary: 'Montserrat';
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;

}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

img, picture, video, canvas, svg {
    display: block;
    border-style: none;
    max-width: 100%;
}

a {
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: none;
}

b {
    font-weight: bolder;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

[hidden] {
    display: none !important;
}

/* FONTS */
@font-face {
    font-family: 'Gotham';
    src: url('/assets/font/Gotham-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/font/Gotham-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/font/Gotham-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/font/Montserrat.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* COMMON STYLES */
.banner {
    position: relative;
    background: url('/assets/graphic/banner.webp') center top / contain no-repeat;
    aspect-ratio: 1921 / 351;
}

.row {
    display: flex;
}

.column {
    flex: 1;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
    color: var(--primary-color);
    font-family: var(--font-primary), serif;
}

header {
    width: 100%;
    height: clamp(6rem, 10vw, 9.375rem);
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

header .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 4rem;
    max-height: 6rem;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.actions a svg {
    width: 24px;
    height: auto;
    fill: #404042;
}

main {
    background-image: url('/assets/graphic/background-mobile.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 0;
}

h1, h2 {
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(1rem, 5vw, 2.5rem);
    text-align: center;
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    margin-top: 1rem;
    font-weight: normal;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

form {
    max-width: 30rem;
    margin: 0 auto;
}

footer {
    width: 100%;
    background-color: #ffffff;
    font-family: var(--font-primary), serif;
}

footer .container {
    text-align: center;
    color: #bbbbbb;
}

footer svg {
    width: 100%;
    max-width: 10rem;
    display: block;
    margin: 0 auto;
}

footer a {
    color: #bbbbbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #404042;
}

footer .row {
    margin-top: 1.5rem;
    flex-direction: column;
}

footer .column {
    gap: 1rem;
}

input, select {
    background: #ffffff;
    width: 100%;
    margin-top: 0.3125rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    color: #404042;
    font-family: var(--font-secondary), serif;
    font-weight: 200;
    font-size: 1rem;
    border: 0;
    height: 40px;
}

.upload-btn {
    display: inline-flex;
    background: #ffffff;
    width: 100%;
    border-radius: 0.5rem;
    color: #404042;
    margin-top: 0.3125rem;
    cursor: pointer;
}

.upload-area {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #eee;
    padding: 0.5rem 0.8rem 0.5rem 3rem;
    height: 100%;
    color: #444;
    border-radius: 0.5rem 0 0 0.5rem;
    font-family: var(--font-secondary), serif;
    font-weight: 200;
    font-size: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23444'%3E%3Cpath d='M8.379 12.992V9.857h-.738L9.98 6.826l2.356 3.031h-.756v3.135zM4.812 3.867c.261 0 .516.022.765.06C6.32 1.652 8.555 0 11.197 0c3.248 0 5.881 2.497 5.881 5.58l-.012.337C18.747 6.281 20 7.707 20 9.412 20 11.394 18.307 13 16.219 13h-3.827v-2.374h1.541L9.988 5.547 6.07 10.626h1.517V13H4.812C2.155 13 0 10.956 0 8.433s2.155-4.566 4.812-4.566'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px 13px;
    background-position: 1rem center;
}

input[type="submit"] {
    display: block;
    background-color: var(--secondary-color);
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem auto 0 auto;
}

input:focus, select:focus {
    outline: 1px solid var(--secondary-color);
}

input::placeholder {
    font-weight: 700;
    font-family: var(--font-secondary), serif;
    color: var(--alert-error);
}

label {
    text-align: left;
    display: block;
    font-size: 0.875rem;
    font-weight: 200;
    color: var(--primary-color);
    font-family: var(--font-secondary), serif;
    margin-top: 2rem;
}

input.error, select.error {
    border: 0.15rem solid var(--alert-error);
}

input.error:focus, select.error:focus {
    outline: none;
}

label.error {
    margin-top: 0.625rem;
    font-size: 0.875rem;
}

.files > span {
    display: block;
    margin-top: 0.625rem;
    font-size: 0.875rem;
}

.success {
    color: var(--alert-success);
}

.error {
    color: var(--alert-error);
}

/* RESPONSIVE RULES */
@media (min-width: 640px) {
    main {
        background-image: url('/assets/graphic/background-desktop.webp');
        padding: 4rem 0;
    }

    input[type="submit"] {
        max-width: 10rem;
    }

    footer {
        margin: 2rem auto;
    }

    footer .row {
        flex-direction: row;
        width: 40rem;
        margin: 1.5rem auto 0 auto;
    }
}
