
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* ==========================================
   ALGEMENE INSTELLINGEN
========================================== */

:root {
    --green: #203b32;
    --green-dark: #172d26;
    --cream: #f7f5ef;
    --paper: #fffefa;
    --gold: #b69a61;
    --gold-light: #e4d7b9;
    --text: #28332e;
    --muted: #777d75;
    --border: #e5e1d7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

/* ==========================================
   HEADER
========================================== */

.site-header {
    background: var(--green);
    color: white;
    padding: 24px 30px;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-subtitle {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 3px;
}

/* ==========================================
   PAGINA EN INTRODUCTIE
========================================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 55px 25px 80px;
}

.intro {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

h1 {
    color: var(--green);
    font-size: clamp(38px, 6vw, 54px);
    line-height: 1.15;
    margin: 12px 0 18px;
}

.intro p {
    color: var(--muted);
    font-size: 15px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   FORMULIERSECTIES
========================================== */

.form-section {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 32px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(30, 45, 37, 0.025);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 28px;
}

.section-number {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    line-height: 1.2;
}

.section-heading h2 {
    color: var(--green);
    font-size: 25px;
    margin: 0 0 3px;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* ==========================================
   INVOERVELDEN
========================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-items: center;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    text-align: center;
}

.form-grid .field {
    width: 100%;
}

.field label,
.subheading {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

input[type="text"],
input[type="date"],
input[type="email"],
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
    outline: none;
    text-align: center;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(182, 154, 97, 0.12);
}

textarea {
    resize: vertical;
}

.subheading {
    margin: 0 0 16px;
}

/* ==========================================
   FOTOBOOTHS
========================================== */

.booth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    justify-items: center;
}

.image-card,
.print-image-card,
.template-card {
    position: relative;
    display: block;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.image-card input,
.print-image-card input,
.template-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.image-wrap,
.print-image-wrap {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: #f1eee6;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrap {
    height: 210px;
    padding: 10px;
}

.image-wrap img,
.print-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.image-card input:checked + .image-wrap,
.print-image-card input:checked + .print-image-wrap {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(182, 154, 97, .16);
}

.checkmark,
.print-check,
.template-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    opacity: 0;
    font-style: normal;
}

.image-card input:checked + .image-wrap .checkmark,
.print-image-card input:checked + .print-image-wrap .print-check {
    opacity: 1;
}

.image-caption,
.print-caption,
.template-caption {
    display: block;
    text-align: center;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    padding-top: 10px;
}

.subsection-divider {
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* ==========================================
   AFDRUKFORMATEN
========================================== */

.print-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    justify-items: center;
}

.print-image-wrap {
    height: 280px;
    padding: 12px;
}

/* ==========================================
   TEMPLATES
========================================== */

.template-prompt {
    padding: 18px;
    border: 1px dashed var(--gold);
    border-radius: 4px;
    color: var(--muted);
    background: #fbfaf6;
    text-align: center;
    margin-bottom: 22px;
}

.template-prompt[hidden],
.template-group[hidden],
.theme-section[hidden] {
    display: none !important;
}

.template-group {
    margin-bottom: 28px;
}

.template-group-title {
    color: var(--green);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 16px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    justify-items: center;
}

.template-preview {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: linear-gradient(145deg, #f5f1e8, #e8e2d4);
    color: var(--green);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.template-preview span {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 48px);
    color: var(--gold);
}

.template-preview small {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--green);
}

.template-card:hover .template-preview {
    transform: translateY(-2px);
}

.template-card input:checked + .template-preview {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(182, 154, 97, .16);
}

.template-card input:checked + .template-preview .template-check {
    opacity: 1;
}

.template-check {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
}

/* ==========================================
   TEMPLATE AFBEELDINGEN
========================================== */

.template-image-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eeeae0;
}

.template-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.template-image-preview .template-check {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ==========================================
   EIGEN ONTWERP
========================================== */

.own-design-option {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.own-design-card {
    max-width: 180px;
    margin: 0 auto;
}

.own-preview {
    background: var(--green);
}

.own-preview span,
.own-preview small {
    color: var(--gold-light);
}

.notes-field {
    margin-top: 28px;
    margin-bottom: 0;
}

/* ==========================================
   MIRRORBOOTH THEMA'S
========================================== */

.theme-section {
    margin-top: 35px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.theme-section .template-group-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    text-align: center;
    margin-bottom: 10px;
}

.theme-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    text-align: center;
    margin: 0 0 24px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.theme-card {
    display: block;
    cursor: pointer;
    text-align: center;
}

.theme-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--paper);
    transition: 0.2s ease;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-card input:checked + .theme-image {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-light);
}

.theme-check {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
}

.theme-card input:checked + .theme-image .theme-check {
    display: block;
}

.theme-card .template-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* ==========================================
   LOGO UPLOAD
========================================== */

.upload-area {
    padding: 18px;
    border: 1px dashed var(--gold);
    border-radius: 4px;
    background: #fbfaf6;
    text-align: center;
}

.upload-area input {
    display: none;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.upload-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 24px;
}

.upload-label strong,
.upload-label small {
    display: block;
}

.upload-label strong {
    color: var(--green);
    font-size: 13px;
}

.upload-label small,
.file-name {
    color: var(--muted);
    font-size: 11px;
}

.file-name {
    display: block;
    margin-top: 12px;
    text-align: center;
}

/* ==========================================
   AANVRAAG AFRONDEN
========================================== */

.final-section {
    background: var(--green);
    color: white;
}

.final-section .section-heading h2 {
    color: white;
}

.final-section .section-heading p {
    color: #d0d9d2;
}

.submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    border: 0;
    border-radius: 3px;
    padding: 17px 20px;
    background: var(--gold);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.submit-button:hover {
    background: #a88b50;
}

.submit-button:disabled {
    opacity: .7;
    cursor: wait;
}

.submit-button span {
    font-size: 22px;
}

.privacy-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.final-section .privacy-note {
    color: #d0d9d2;
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px max(25px, calc((100% - 950px) / 2));
    background: var(--green-dark);
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 2px;
    text-align: center;
}

/* ==========================================
   E-MAILADRES
========================================== */

.field input[type="email"] {
    display: block;
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

.field input[type="email"]::placeholder {
    color: var(--muted);
    opacity: 1;
}

.field input[type="email"]:focus {
    border-color: var(--gold);
}

/* ==========================================
   BEDANK POP-UP
========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 35px;
    width: 100%;
    max-width: 470px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalAppear 0.3s ease;
}

.modal-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e7f6ed;
    color: #219653;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
}

.modal-box h2 {
    font-size: 26px;
    color: #183e35;
    margin-bottom: 15px;
}

.modal-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.modal-box .modal-subtext {
    font-size: 13px;
    color: #777;
}

.modal-button {
    background: #183e35;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.modal-button:hover {
    background: #245b4d;
}

.modal-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   MOBIELE WEERGAVE
========================================== */

@media (max-width: 700px) {
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .container {
        padding: 35px 15px 55px;
    }

    .form-section {
        padding: 22px 17px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .booth-grid {
        gap: 12px;
    }

    .print-image-grid {
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .image-wrap {
        height: 155px;
    }

    .print-image-wrap {
        height: 210px;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 35px 22px;
    }

    .modal-box h2 {
        font-size: 22px;
    }
}
