:root {
    --color-primary: rgb(28, 28, 28);
    --color-primary-hover: rgb(18, 18, 18);
    --color-footer: rgb(28, 28, 28);
    --color-text: #333;
    --color-text-light: #666;
    --color-text-lighter: #999;
    --color-border: #e0e0e0;
    --color-bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.7rem;
    font-weight: 400;
    color: var(--color-text);
}

/*******************************************************************************
 Basic elements
*******************************************************************************/

body {
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

h1,h2,h3,h4 {
    font-weight: 600;
}

/*******************************************************************************
 Header and footer
*******************************************************************************/

.header {
    background: var(--color-primary);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid white;
}

.header .logo {
    height: 80px;
}

.header .logo img {
    height: 100%;
    width: auto;
}

.footer {
    background: var(--color-footer);
    padding: 20px;
    text-align: center;
    color: white;
    border-top: 1px solid white;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer a, .footer p, .footer span {
    color: white;
}

/*******************************************************************************
 Hero
*******************************************************************************/

.hero {
    position: relative;
    background-image: url('https://www.brickshot.be/wp-content/uploads/2022/03/Brickshot-website-hero-gradient.jpg');
    background-size: cover;
    background-position: center;
    padding: 25px 20px;
    text-align: center;
    color: white;
}

/* Dark overlay filter */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 32px;
    color: white;
}

/*******************************************************************************
 Spinner (and loading classes)
*******************************************************************************/

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.active {
    display: block;
}

/*******************************************************************************
 Main content
*******************************************************************************/

.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-content p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/*******************************************************************************
 Forms (general)
*******************************************************************************/

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group .label-counter {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/*******************************************************************************
 Form input fields
*******************************************************************************/

input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

.file-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: var(--color-bg-light);
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-area.hidden {
    display: none !important;
}

.file-upload-area:hover {
    border-color: var(--color-primary);
    background: #f5f5f5;
}

.file-upload-area.dragover {
    border-color: var(--color-primary);
    background: #eeeeee;
}

.file-upload-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.file-upload-text {
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.file-upload-hint {
    color: var(--color-text-lighter);
}

input[type="file"] {
    display: none;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    min-height: 150px;
}

.image-preview-container.hidden {
    display: none;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    border: 2px dashed #ccc;
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 48px;
    color: var(--color-primary);
    font-weight: 300;
}

.image-placeholder:hover {
    border-color: var(--color-primary);
    background: #f5f5f5;
}

.image-placeholder.dragover {
    border-color: var(--color-primary);
    background: #eeeeee;
}

/*******************************************************************************
 Form buttons
*******************************************************************************/

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/*******************************************************************************
 Messages
*******************************************************************************/

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/*******************************************************************************
 Success screen
*******************************************************************************/

.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-screen.hidden {
    display: none;
}

.success-icon > .material-icons {
    font-size: 48px;
    color: rgb(75, 79, 88);
    margin-bottom: 20px;
}

.success-screen h2 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 28px;
}

.success-message {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.7rem;
}

/*******************************************************************************
 Login form
*******************************************************************************/

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-width: 320px;
    width: 100%;
    margin: auto;
    text-align: center;
}

.login-box > a {
    display: block;
    background: var(--color-primary);
    margin-bottom: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 20px 20px 20px;
}

.login-box form input {
    width: 100%;
    padding: 4px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    transition: border-color 0.3s;
    outline: none;
}

.login-box form button {
    width: 100%;
    padding: 4px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

/*******************************************************************************
 Responsive styling
*******************************************************************************/

@media (min-width: 750px) {

    .hero {
        padding: 150px 20px;
    }
    .hero h1 {
        font-size: 48px;
    }

    .footer {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .footer-links {
        gap: 5px;
    }
}