/* ============================================
   Afspraak Popup — Globale multi-stap popup
   v3.0 — Lomero Media
   Past bij de bestaande style.css stijl
   ============================================ */

/* ── Shortcode knop ───────────────────────── */
.agp-sc-btn {
    display: inline-block;
    background: linear-gradient(143deg, rgb(221,193,142) 0%, rgb(179,148,95) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.agp-sc-btn:hover        { opacity: 0.88; transform: translateY(-1px); }
.agp-sc-btn:focus-visible { outline: 3px solid #b8965a; outline-offset: 3px; }

/* ── Overlay ──────────────────────────────── */
.agp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 60px;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
    overflow-y: auto;
    box-sizing: border-box;
}
.agp-overlay[hidden]   { display: none !important; }
.agp-overlay.agp-open  {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Dialog card ──────────────────────────── */
.agp-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: auto 0;
    box-sizing: border-box;
}
.agp-overlay.agp-open .agp-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.agp-overlay.agp-closing .agp-dialog {
    transform: translateY(16px) scale(0.97);
    opacity: 0;
}

/* ── Sluitknop ────────────────────────────── */
.agp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 8px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
}
.agp-close:hover        { color: #333; background: #f0f0f0; }
.agp-close:focus-visible { outline: 3px solid #b8965a; outline-offset: 2px; }

/* ── Popup titel ──────────────────────────── */
.agp-popup-titel {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.3;
}

/* ── Subtitels ────────────────────────────── */
.agp-subtitel {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

/* ── Vestiging badge (stap 2) ─────────────── */
.agp-vestiging-badge {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #fdf9f4;
    border: 1px solid #e8e0d4;
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b8965a;
    margin-bottom: 14px;
    box-sizing: border-box;
}

/* ── Terug-knop ───────────────────────────── */
.agp-terug {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 0.83rem;
    font-family: inherit;
    padding: 0;
    margin-bottom: 14px;
    transition: color 0.15s;
}
.agp-terug:hover        { color: #444; }
.agp-terug:focus-visible { outline: 3px solid #b8965a; outline-offset: 2px; border-radius: 3px; }

/* ── Keuze-grid ───────────────────────────── */
.agp-keuzes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Keuzekaart (gedeeld) ─────────────────── */
.agp-keuze {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #e8e0d4;
    border-radius: 12px;
    background: none;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    box-sizing: border-box;
}
.agp-keuze:hover        { border-color: #b8965a; background: #fdf9f4; transform: translateX(3px); }
.agp-keuze:focus-visible { outline: 3px solid #b8965a; outline-offset: 2px; }

/* Vestiging kaart — geen icon, naam centraal */
.agp-keuze--vestiging {
    justify-content: space-between;
}
.agp-keuze--vestiging .agp-keuze__tekst strong {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Klant kaart — met icon */
.agp-keuze__icon {
    flex-shrink: 0;
    color: #b8965a;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agp-keuze__tekst {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.agp-keuze__tekst strong { font-size: 0.97rem; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.agp-keuze__tekst span   { font-size: 0.82rem; color: #888; line-height: 1.4; }
.agp-keuze__pijl {
    flex-shrink: 0;
    color: #b8965a;
    font-size: 1.1rem;
    transition: transform 0.2s;
}
.agp-keuze:hover .agp-keuze__pijl { transform: translateX(4px); }

/* ── Stap animatie ────────────────────────── */
@keyframes agp-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes agp-uit {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-18px); }
}
.agp-slide-in  { animation: agp-in  0.24s ease forwards; }
.agp-slide-uit { animation: agp-uit 0.24s ease forwards; }

/* ── Mobiel ───────────────────────────────── */
@media ( max-width: 540px ) {
    .agp-overlay { padding: 16px 12px 40px; }
    .agp-dialog  { padding: 32px 18px 24px; border-radius: 12px; }
    .agp-popup-titel { font-size: 1.15rem; }
    .agp-keuze   { padding: 13px 14px; }
}

/* ── Stap 3: video + voorwaarden (zelfde stijl als Gutenberg block) ── */
.agp-popover__titel {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-align: center;
    line-height: 1.3;
}

.agp-stap2__subtitel {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    margin: 0 0 18px;
    line-height: 1.5;
}

.agp-stap2__video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 18px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.agp-stap2__video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.agp-stap2__tekst {
    background: #f8f5f0;
    border: 1px solid #e8e0d4;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.6;
}
.agp-stap2__tekst p  { margin: 0 0 8px; font-weight: 600; color: #1a1a1a; }
.agp-stap2__tekst ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.agp-stap2__tekst li { padding-left: 16px; position: relative; }
.agp-stap2__tekst li::before { content: '\2022'; color: #b8965a; font-weight: 700; position: absolute; left: 0; }

.agp-stap2__akkoord { margin-bottom: 18px; }
.agp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.4;
}
.agp-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #b8965a;
    cursor: pointer;
}

@keyframes agp-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.agp-checkbox-label.shake { animation: agp-shake 0.45s ease; }

.agp-stap2__footer { display: flex; justify-content: center; }

.agp-btn--verder {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: #d0c0a0;
    color: #fff;
    cursor: not-allowed;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    font-family: inherit;
}
.agp-btn--verder.is-actief {
    background: linear-gradient(143deg, rgb(221,193,142) 0%, rgb(179,148,95) 100%);
    cursor: pointer;
}
.agp-btn--verder.is-actief:hover { opacity: 0.88; transform: translateY(-1px); }
