@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/GreatVibes-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/CormorantGaramond-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/CormorantGaramond-Italic.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --creme:       #faf0dc;
    --goud:        #b8860b;
    --goud-licht:  #d4a843;
    --goud-donker: #8b6914;
    --tekst:       #3a2f1e;
    --tekst-zacht: #6b5740;
    --border:      #e8d9c0;
    --wit:         #ffffff;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--creme);
    color: var(--tekst);
    min-height: 100vh;
}

h1, h2, .wedding-date {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 2.5rem 1.5rem 1.75rem;
    background: var(--wit);
    border-bottom: 1px solid var(--border);
}

.hero-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
}

.hero-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--goud);
    display: block;
}

.hero-photo-fallback {
    display: none;
}

/* Fallback wanneer foto niet gevonden */
.hero-photo-wrap.no-photo .hero-photo {
    display: none;
}

.hero-photo-wrap.no-photo .hero-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--goud);
    background: var(--border);
    font-size: 3.5rem;
}

.hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--goud);
    letter-spacing: 0.01em;
}

.wedding-date {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--goud-donker);
    margin-top: 0.3rem;
}

/* ===== UPLOAD SECTIE ===== */
.upload-section {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.upload-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.subtitle {
    color: var(--tekst-zacht);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* Verberg de native file input */
#fileInput {
    display: none;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    background: var(--goud);
    color: var(--wit);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.03em;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.upload-btn:hover {
    background: var(--goud-licht);
}

.upload-btn:active {
    background: var(--goud-donker);
}

/* ===== PREVIEW GRID ===== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 1.25rem;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border);
    position: relative;
}

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

.preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
}

.done-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 100, 30, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--wit);
}

/* ===== BERICHTJE ===== */
.bericht-sectie {
    margin-bottom: 1.25rem;
}

.btn-bericht {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    background: transparent;
    color: var(--goud);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    border: 2px solid var(--goud);
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-bericht:hover {
    background: var(--goud);
    color: var(--wit);
}

.bericht-form {
    margin-top: 0.75rem;
    background: var(--wit);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.bericht-naam {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--tekst);
    background: var(--creme);
    outline: none;
    margin-bottom: 0.6rem;
    transition: border-color 0.15s ease;
}

.bericht-naam:focus {
    border-color: var(--goud);
}

.bericht-tekst {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--tekst);
    background: var(--creme);
    resize: vertical;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.15s ease;
}

.bericht-tekst:focus {
    border-color: var(--goud);
}

.bericht-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
}

.bericht-teller {
    font-size: 0.8rem;
    color: var(--tekst-zacht);
}

.btn-verstuur {
    background: var(--goud);
    color: var(--wit);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-verstuur:hover {
    opacity: 0.85;
}

.btn-verstuur:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bericht-bevestiging {
    margin-top: 0.75rem;
    color: var(--goud-donker);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    text-align: center;
}

/* ===== KNOP (bedankt-pagina) ===== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 1.25rem;
    background: var(--tekst);
    color: var(--creme);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    opacity: 0.82;
}

/* ===== VOORTGANGSBALKEN ===== */
.progress-section {
    margin-top: 1.5rem;
    text-align: left;
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-label {
    font-size: 0.82rem;
    color: var(--tekst-zacht);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bar-wrap {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--goud);
    border-radius: 4px;
    width: 0%;
    transition: width 0.25s ease;
}

/* ===== FOUTMELDING ===== */
.error-msg {
    color: #c0392b;
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: #fdf0ee;
    border-radius: 8px;
    border: 1px solid #f5c6c0;
}

/* ===== BEDANKT PAGINA ===== */
.bedankt-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--creme);
}

.bedankt-card {
    text-align: center;
    max-width: 360px;
}

.bedankt-card .heart {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.bedankt-card h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.bedankt-card p {
    color: var(--tekst-zacht);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}
