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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #f0f6ff 0, #f4f4f8 40%, #eceff4 100%);
    color: #111827;
}

/* Pagina layout */
.pagina-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}

.header h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.header p {
    max-width: 560px;
    margin: 0 auto;
    color: #4b5563;
}

.main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Kaart / panel stijl */
.kaart {
    background: #ffffffcc;
    backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Formulier */
#foto-formulier {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-groep {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.checkbox-groep {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-groep label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

input[type="file"],
select {
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background-color: #f9fafb;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="file"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
    background-color: #ffffff;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

/* Knoppen */
button, a.primary-button, a.secondary-button {
    border: none;
    cursor: pointer;
    font-size: 0.98rem;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    text-decoration: none;
}


.primary-button {
    align-self: flex-start;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
}

.secondary-button {
    margin-top: 1rem;
    background: #e5e7eb;
    color: #111827;
}

.secondary-button:hover {
    background: #d1d5db;
}

/* Laden / spinner sectie */
.laden-sectie {
    text-align: center;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner-container p {
    color: #4b5563;
    font-size: 0.98rem;
}

/* CSS Spinner */
.spinner {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 4px solid rgba(148, 163, 184, 0.4);
    border-top-color: #2563eb;
    animation: spinner-draai 0.8s linear infinite;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.02);
}

@keyframes spinner-draai {
    to {
        transform: rotate(360deg);
    }
}

/* Resultaat */
.resultaat-sectie h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
/* knop onder de afbeelding (download) krijgt iets extra ruimte */
.resultaat-sectie a.primary-button {
    margin-top: 1rem;
}

.resultaat-sectie p {
    margin-top: 0;
    color: #4b5563;
}

.resultaat-afbeelding-wrapper {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Afbeelding moet netjes passen */
#flyerAfbeelding {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    background: #020617;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsief */
@media (min-width: 768px) {
    .kaart {
        padding: 1.9rem 2.1rem;
    }

    #foto-formulier {
        max-width: 520px;
    }
}

