/* =========================================================================
   Bel me terug · Frontend
   Wned huisstijl
   ========================================================================= */

:root {
    --wned-blue:        #0b6ba5;
    --wned-blue-dark:   #08527e;
    --wned-blue-light:  #e8f3fa;
    --wned-accent:      #1a8fd6;
    --success:          #28a745;
    --success-dark:     #1e7e34;
    --danger:           #dc3545;
    --warn:             #f39c12;
    --text:             #2d3748;
    --text-muted:       #718096;
    --border:           #e2e8f0;
    --bg:               #f4f6f9;
    --card:             #ffffff;
    --shadow-sm:        0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md:        0 4px 12px rgba(11, 107, 165, 0.10);
    --shadow-lg:        0 20px 40px rgba(0, 0, 0, 0.18);
    --radius:           10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.muted { color: var(--text-muted); font-weight: normal; font-size: 0.9em; }

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}
.hero-sub { color: var(--text-muted); margin-top: 18px; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--wned-blue) 0%, var(--wned-blue-dark) 100%);
    color: #fff;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(11, 107, 165, 0.35);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11, 107, 165, 0.45); }
.cta-btn:active { transform: translateY(0); }
.cta-icon { font-size: 22px; }

/* ---- Popup ---- */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(11, 32, 56, 0.45);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.popup:not([hidden]) { display: flex; }
.popup-content {
    background: var(--card);
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    animation: pop 0.22s ease-out;
}
@keyframes pop {
    from { transform: translateY(15px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.popup-header { margin-bottom: 18px; }
.popup-header h2 { margin: 0 0 4px; color: var(--wned-blue); font-size: 1.5em; }

.close {
    position: absolute;
    right: 14px; top: 12px;
    width: 36px; height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.15s;
}
.close:hover { background: var(--bg); color: var(--text); }

/* ---- Form ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 460px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-top: 14px; }
.field:first-child { margin-top: 0; }

label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}

input[type=text], input[type=tel], input[type=email],
input[type=date], input[type=time], input[type=url], input[type=number],
select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--wned-blue);
    box-shadow: 0 0 0 3px var(--wned-blue-light);
}
textarea { min-height: 90px; resize: vertical; }

.char-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.history-box {
    background: var(--wned-blue-light);
    padding: 14px;
    border-radius: 8px;
    margin-top: 14px;
    border: 1px solid #c7e1f1;
}
.history-box label { color: var(--wned-blue-dark); margin-bottom: 8px; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    font-size: 14px;
}
.consent-row input { width: auto; margin-top: 3px; }
.consent-row label { margin: 0; font-weight: normal; cursor: pointer; }

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(40, 167, 69, 0.3); }
.primary-btn:disabled { background: #c7cdd4; cursor: not-allowed; }
.primary-btn.danger { background: linear-gradient(135deg, var(--danger) 0%, #b02a37 100%); }

.form-message {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}
.form-message.ok  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.err { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- Honeypot (verborgen) ---- */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ---- Cancel pagina ---- */
.centered-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.card-center {
    background: #fff;
    padding: 36px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    max-width: 460px;
    width: 100%;
    text-align: center;
}
.card-center h1 { color: var(--wned-blue); margin-top: 0; }
.meta-box {
    background: var(--bg);
    padding: 16px;
    border-radius: 8px;
    text-align: left;
    margin: 18px 0;
}
.meta-box p { margin: 4px 0; }
.status-msg { padding: 14px; border-radius: 8px; margin: 18px 0; font-weight: 500; }
.status-ok      { background: #d4edda; color: #155724; }
.status-info    { background: var(--wned-blue-light); color: var(--wned-blue-dark); }
.status-error   { background: #f8d7da; color: #721c24; }
.status-confirm { background: #fff3cd; color: #856404; }
.link-back { display: inline-block; margin-top: 12px; color: var(--text-muted); text-decoration: none; }
.link-back:hover { text-decoration: underline; }

/* ---- intl-tel-input override ---- */
.iti { width: 100%; }
.iti__country-list { font-size: 14px; }
