/* ROOT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #efefef;
}

/* BODY */
body {
    display: flex;
    flex-direction: column;
    min-width: 100vw;
    min-height: 100vh;
    background: rgb(17 24 39);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(3 7 18);
    padding: 0.3em 5em;
    position: fixed;
    width: 100%;
    height: 3.5em;
    z-index: 1000;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    gap: 1em;
    list-style: none;
}

header nav ul li a {
    color: #efefef;
    text-decoration: none;
    font-weight: 500;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* MAIN */
main {
    padding: 6em 3em 2em;
    flex: 1;
}

h2 {
    margin-bottom: 1.5em;
    text-align: center;
}

/* FORM CONTAINER */
.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    background: rgb(31 41 55);
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* IMAGE UPLOAD SECTION */
.image-upload {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.image-preview {
    width: 500px;
    height: 500px;
    border: 2px dashed #4b5563;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.image-preview:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

.image-upload input[type="file"] {
    display: none;
}

/* FORM INPUTS */
form {
    flex: 2 1 350px;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group.small {
    max-width: 180px;
}

/* LABEL & INPUTS */
label {
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #e5e7eb;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    padding: 0.75em;
    border-radius: 0.5em;
    border: 1px solid #374151;
    background: #111827;
    color: #f3f4f6;
    width: 100%;
    font-size: 0.95em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* CHECKBOX GROUP */
.checkbox-group {
    background: rgb(55 65 81 / 0.4);
    padding: 1em;
    border-radius: 0.75em;
    margin-top: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
}

/* BUTTON */
button {
    align-self: flex-start;
    padding: 0.9em 1.4em;
    border: none;
    border-radius: 0.6em;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 1em;
}

button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* FOOTER */
footer {
    background: #030712;
    text-align: center;
    padding: 1.5em;
    font-size: 0.9em;
    color: #9ca3af;
    margin-top: auto;
}

/* LINKS */
a {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in;
}

a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1em;
        height: auto;
    }

    main {
        padding: 5em 1em 2em;
    }

    .form-container {
        flex-direction: column;
        align-items: center;
    }

    .image-preview {
        width: 200px;
        height: 200px;
    }

    form {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .form-group.small {
        max-width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
    }
}
