body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url('../images/optie/background.jpg');
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    background-size: 100% 100%, cover;
}
/*abn hide*/
.input-hidden {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.gift-icon {
    font-size: 1.8rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.lang-switch {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.flag-nl,
.flag-en {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.flag-nl { background-image: url('https://flagcdn.com/w40/nl.png'); }
.flag-en { background-image: url('https://flagcdn.com/w40/gb.png'); }

.flag-nl:hover,
.flag-en:hover {
    transform: scale(1.1);
}

/* Responsive header */
@media (max-width: 576px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }
    .logo-block {
        justify-content: center;
    }
    .lang-switch {
        justify-content: center;
    }
}

.form-container {
    max-width: 600px;
    margin: 11rem auto 3rem;
    padding: 2rem;
    background: rgba(0,0,0,0.75);
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

p {
    margin-bottom: 2rem;
    color: #ddd;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: background 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.field-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    font-style: italic;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.send-button {
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(#388e3c, #2e7d32);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.send-button:hover {
    background: linear-gradient(#2e7d32, #1b5e20);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
    transform: scale(1.02);
}

input.error,
textarea.error {
    border: 2px solid #ff4d4d;
    outline: none;
}

input.error:focus,
textarea.error:focus {
    border-color: #ff9999;
}

.error-message {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #ff9999;
    display: none;
    text-align: left;
}

input.error + .error-message,
textarea.error + .error-message {
    display: block;
}

.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #c62828;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    animation: fadeInOut 3s ease forwards;
    z-index: 9999;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

.form-error {
    background: #c62828;
    color: black;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#fileupload {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
    color: #fff;
    font-style: italic;
}

#fileupload.dz-drag-hover {
    border-color: #4caf50;
    background: rgba(0, 0, 0, 0.6);
}

#fileupload .dz-message {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    padding: 20px 10px;
    pointer-events: none;
}

#fileupload.dz-drag-hover .dz-message {
    color: #4caf50;
    font-style: normal;
}

.honeypot {
    display: none;
    visibility: hidden;
}

:focus {
    outline: none;
}

body.useristabbing :focus {
    outline: 3px solid #4caf50 !important;
    outline-offset: 3px;
    border-radius: 0.5rem;
}

.dropzone-button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
}

.dropzone-button:focus {
    outline: 3px solid #4caf50;
    outline-offset: 3px;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
    .background {
        background-size: cover;
        background-position: center top;
        background-attachment: scroll;
    }
}


@media screen and (max-width: 480px) {
    .background {
        background-position: center center;
        background-size: contain;
        background-color: #000;
    }
}