/* =====================================================================
   LimeDesk — Retourbeleid-generator (NL/EN)
   Gedeeld door retourbeleid-generator.html en en/return-policy-generator.html.
   Bouwt voort op de .aks-*-stijl van de landingspagina's.
   ===================================================================== */

/* ---------- Sectie + raster ---------- */
.rg-section { padding: 8px 40px 72px; background: #ffffff; }
.rg-anchor { scroll-margin-top: 96px; }
.rg-app {
    max-width: 1180px; margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: 28px; align-items: start;
}

/* ---------- Formulier ---------- */
.rg-form {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 30px 30px 28px;
    font-family: 'Inter', -apple-system, sans-serif;
}
.rg-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rg-group + .rg-group { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(15,23,42,0.08); }
.rg-legend {
    display: flex; align-items: center; gap: 10px;
    padding: 0; margin: 0 0 16px;
    font-family: 'General Sans', 'Inter', sans-serif;
    font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: #0a0a0a;
    float: left; width: 100%; /* zwevend: geen 'legend in de rand' */
}
.rg-legend + * { clear: both; }
.rg-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: #0f172a; color: #ffffff;
    font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.rg-field { margin-bottom: 18px; }
.rg-field:last-child { margin-bottom: 0; }
.rg-field > label,
.rg-label {
    display: block; margin-bottom: 8px;
    font-size: 14px; font-weight: 600; color: #0f172a;
}
.rg-opt { font-weight: 500; color: #94a3b8; }

.rg-input {
    display: block; width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px; color: #0f172a;
    background: #ffffff;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none; appearance: none;
}
.rg-input::placeholder { color: #94a3b8; }
.rg-input:focus { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.rg-days { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #64748b; }
.rg-days .rg-input { width: 78px; text-align: center; padding-left: 8px; padding-right: 8px; -moz-appearance: textfield; }
.rg-days .rg-input::-webkit-outer-spin-button,
.rg-days .rg-input::-webkit-inner-spin-button { margin: 0; }

/* Keuzepillen (radio) */
.rg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-chip { position: relative; cursor: pointer; }
.rg-chip input {
    position: absolute; top: 0; left: 0;
    width: 1px; height: 1px; opacity: 0; margin: 0;
}
.rg-chip span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 15px; border-radius: 100px;
    background: #ffffff; border: 1.5px solid #e2e8f0;
    font-size: 14px; font-weight: 600; color: #0f172a; line-height: 1.25;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rg-chip:hover span { border-color: #cbd5e1; }
.rg-chip input:checked + span { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.rg-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34,197,94,0.35); }
.rg-chip small { font-size: 12px; font-weight: 500; opacity: 0.7; }

/* Vinkjes */
.rg-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 0 0 10px; cursor: pointer;
    font-size: 14.5px; font-weight: 500; color: #0f172a; line-height: 1.45;
}
.rg-check:last-child { margin-bottom: 0; }
.rg-form .rg-check input[type="checkbox"] {
    width: 18px; height: 18px; flex: 0 0 18px;
    margin: 1px 0 0; accent-color: #16a34a; cursor: pointer;
}
.rg-hint { margin-top: 8px; font-size: 13px; line-height: 1.55; color: #64748b; }
.rg-hint a { color: #0f172a; text-decoration: underline; }
.rg-hint strong { color: #0f172a; font-weight: 600; }
.rg-row[hidden] { display: none; }

.rg-jump {
    display: none;
    margin-top: 24px;
    align-items: center; gap: 6px;
    font-size: 15px; font-weight: 600; color: #0f172a; text-decoration: none;
}
.rg-jump:hover { text-decoration: underline; }

/* ---------- Voorbeeld ---------- */
.rg-preview {
    position: sticky; top: 104px;
    display: flex; flex-direction: column;
    max-height: calc(100vh - 128px);
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.04);
    overflow: hidden;
}
.rg-preview-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f3;
    background: #ffffff;
}
.rg-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 100px; background: #f1f5f9; }
.rg-tab {
    border: 0; background: transparent; cursor: pointer;
    padding: 7px 12px; border-radius: 100px;
    font-size: 13.5px; font-weight: 600; color: #64748b; white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.rg-tab:hover { color: #0f172a; }
.rg-tab.is-active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.rg-tab:focus-visible { outline: 2px solid #22c55e; outline-offset: 1px; }
.rg-actions { display: flex; gap: 6px; }
.rg-act {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 11px; border-radius: 100px; cursor: pointer;
    background: #ffffff; border: 1px solid #e2e8f0; color: #0f172a;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.rg-act:hover { border-color: #0f172a; }
.rg-act svg { width: 15px; height: 15px; flex-shrink: 0; }
.rg-act--primary { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.rg-act--primary:hover { background: #1e293b; }
.rg-act:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; }

.rg-doc {
    flex: 1 1 auto; min-height: 0; overflow: auto;
    padding: 26px 32px 34px;
    color: #0f172a;
    overscroll-behavior: contain;
}
.rg-doc:focus-visible { outline: 2px solid #22c55e; outline-offset: -2px; }
.rg-d-h1 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: #0a0a0a; margin: 0 0 4px; overflow-wrap: anywhere; }
.rg-d-h1:not(:first-child) { margin-top: 34px; padding-top: 28px; border-top: 1px dashed #e2e8f0; }
.rg-d-meta { font-size: 13px; color: #94a3b8; margin: 0 0 16px; }
.rg-d-h2,
.rg-d-q { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #0a0a0a; margin: 22px 0 6px; line-height: 1.35; }
.rg-d-q { margin-top: 18px; }
.rg-d-p { font-size: 15px; line-height: 1.65; color: #334155; margin: 0 0 10px; overflow-wrap: anywhere; }
.rg-d-list { margin: 0 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.6; color: #334155; }
.rg-d-list li { margin-bottom: 6px; overflow-wrap: anywhere; }
.rg-ph,
.rg-disclaimer mark { background: #fef9c3; color: #854d0e; border-radius: 3px; padding: 0 1px; }
.rg-ph { white-space: nowrap; }

.rg-status {
    position: absolute; left: 50%; bottom: 16px;
    transform: translate(-50%, 8px);
    max-width: calc(100% - 32px);
    padding: 9px 16px; border-radius: 100px;
    background: #0f172a; color: #ffffff;
    font-size: 13.5px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.rg-status.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Disclaimer + checklist ---------- */
.rg-disclaimer {
    max-width: 1180px; margin: 28px auto 0;
    display: flex; gap: 14px;
    padding: 20px 24px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 18px;
    font-size: 14.5px; line-height: 1.6; color: #422006;
}
.rg-disc-icon {
    flex: 0 0 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: #f59e0b; color: #ffffff;
    font-size: 15px; font-weight: 700;
}
.rg-disclaimer strong { color: #0f172a; }
.rg-disclaimer ul { margin: 8px 0 0; padding-left: 18px; }
.rg-disclaimer li { margin-bottom: 4px; font-size: 14.5px; }
.rg-disclaimer a { color: #0f172a; text-decoration: underline; }

/* ---------- Bronnen onder "De regels" ---------- */
.rg-sources { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: 14px; line-height: 1.6; color: #64748b; }
.rg-sources a { color: #0f172a; text-decoration: underline; }

/* ---------- Responsief ---------- */
@media (max-width: 980px) {
    .rg-app { grid-template-columns: 1fr; }
    .rg-preview { position: relative; top: auto; max-height: 78vh; scroll-margin-top: 100px; }
    .rg-jump { display: inline-flex; }
}
@media (max-width: 720px) {
    .rg-section { padding: 0 16px 56px; }
    .rg-form { padding: 22px 18px 24px; border-radius: 20px; }
    .rg-legend { font-size: 18px; }
    .rg-preview { border-radius: 20px; }
    .rg-preview-head { padding: 12px; }
    .rg-tabs { width: 100%; }
    .rg-tab { flex: 1 1 0; padding: 7px 8px; }
    .rg-actions { width: 100%; }
    .rg-act { flex: 1 1 0; }
    .rg-doc { padding: 20px 18px 28px; }
    .rg-d-h1 { font-size: 21px; }
    .rg-disclaimer { margin: 20px 0 0; padding: 16px; gap: 12px; }
    .rg-input { font-size: 16px; } /* geen iOS-zoom */
}
/* De gekloonde dropshipping-CSS geeft de hero op telefoons extra ruimte voor zwevende app-tegels;
   die tegels staan niet op deze pagina, dus terug naar de normale hero-ruimte. */
@media (max-width: 760px) {
    .aks-hero { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .rg-status, .rg-chip span, .rg-input { transition: none; }
}
