/* ═══════════════════════════════════════════════
   GRIB INSCHRIJFFORMULIER (embed)
   Gebruikt op de proeflespagina's. Het formulier wordt geladen door grib-embed.js
   in een <div data-grib-registration> binnen een element met class "grib-card".
═══════════════════════════════════════════════ */

.grib-card { scroll-margin-top: 84px; }

/* losse sectie met kaart (pagina's zonder eigen formulierkaart) */
.grib-section { background: var(--bg); padding: 80px 0; }
.grib-section .grib-card {
  max-width: 600px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius-lg); padding: 40px 36px;
  box-shadow: 0 12px 40px rgba(20,31,92,.10); border-top: 4px solid var(--orange);
}
.grib-section .grib-card > h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 8px; }
.grib-section .grib-card > p { font-size: .95rem; color: var(--text); margin-bottom: 24px; line-height: 1.6; }

/* huisregels boven het formulier */
.grib-rules { background: var(--bg); border: 1px solid rgba(20,31,92,.08); border-left: 3px solid var(--orange); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 24px; text-align: left; }
.grib-section .grib-rules { background: #f7f8fb; }
.grib-rules h4 { font-size: .95rem; margin-bottom: 10px; }
.grib-rules ul { list-style: none; display: grid; gap: 6px; margin: 0 0 10px; padding: 0; }
.grib-rules li { position: relative; padding-left: 20px; font-size: .85rem; line-height: 1.45; color: var(--navy); }
.grib-rules li::before { content: '!'; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.grib-rules a { font-size: .8rem; color: var(--navy); text-decoration: underline; }

/* placeholder tot het formulier geladen is */
.grib-slot { min-height: 420px; }
.grib-card .grib-slot p { margin-bottom: 0; }
.grib-skeleton { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.grib-skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef0f6 25%, #f7f8fb 50%, #eef0f6 75%); background-size: 200% 100%; animation: gribShimmer 1.4s infinite linear; }
.grib-skeleton span.tall { height: 46px; border-radius: var(--radius-md); }
.grib-skeleton span.short { width: 55%; }
.grib-skeleton small { font-size: .8rem; color: #999; text-align: center; margin-top: 6px; }
@keyframes gribShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Grib-formulier in huisstijl */
.grib-card .grib-reg-embed { text-align: left; }
.grib-card .grib-reg-embed .header-logo { display: none !important; }
.grib-card .grib-reg-embed .header-wrapper { padding-top: 0 !important; }
.grib-card .grib-reg-embed .steps-wrapper { overflow: visible !important; }
.grib-card .grib-reg-embed .step-item { width: auto !important; min-width: 0; flex: 1 1 0; }
.grib-card .grib-reg-embed .btn { background: var(--orange) !important; color: var(--navy) !important; border: 0 !important; font-family: var(--font-head) !important; text-transform: uppercase; letter-spacing: .06em; border-radius: 50px !important; }
.grib-card .grib-reg-embed .btn:hover { filter: brightness(1.05); }
.grib-card .grib-reg-embed .grib-hint { display: block; margin-top: 3px; font-size: .78rem; font-weight: 400; color: #6b7280; line-height: 1.35; }

/* proefles: er is maar één product, dus de productstap wordt overgeslagen (zie grib-embed.js) */
.grib-card .grib-trial:not(.grib-ready) .clubSelect-area { visibility: hidden; }
.grib-card .grib-trial.grib-ready .header,
.grib-card .grib-trial.grib-ready .registration-info > :not(.back-link),
.grib-card .grib-trial.grib-ready:has(.step-item:nth-child(2).checked) .clubSelect-left { display: none !important; }
.grib-card .grib-trial.grib-ready .clubSelect-left { background: none !important; padding: 0 !important; min-height: 0 !important; }

/* inlogvenster van Grib ("Heb je een club-account?") binnen de kaart houden i.p.v. over de hele pagina */
.grib-card .grib-slot { position: relative; }
.grib-card .grib-reg-embed .modal-overlay { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; align-items: flex-start !important; justify-content: center; padding-top: 8px; background: rgba(255,255,255,.92) !important; z-index: 5 !important; }
.grib-card .grib-reg-embed .modal-overlay .modal { width: 100% !important; max-width: 420px; box-shadow: 0 8px 30px rgba(20,31,92,.15); }
.grib-card .grib-reg-embed .modal .languageSelector { display: none !important; }

/* kortingscode is niet verplicht */
.grib-card .grib-reg-embed [translate="REGISTRATIONFORM.BODY.DISCOUNTCODE"]::after { content: 'Optioneel'; margin-left: 8px; font-size: .75rem; font-weight: 400; color: #6b7280; }
.grib-card .grib-slot[data-locale="en"] [translate="REGISTRATIONFORM.BODY.DISCOUNTCODE"]::after { content: 'Optional'; }

/* gekozen product boven het formulier (abonnementen) */
.grib-choice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--bg); border: 1px solid rgba(20,31,92,.08); border-left: 3px solid var(--orange); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px; text-align: left; }
.grib-choice-kicker { width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; font-family: var(--font-head); }
.grib-choice strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.grib-choice-price { font-size: .9rem; color: var(--text); }
.grib-choice-change { margin-left: auto; font-size: .82rem; color: var(--navy); text-decoration: underline; }
[data-grib-pick].is-picked { outline: 2px solid var(--orange); outline-offset: 3px; }

.grib-fallback { display: block; text-align: center; font-size: .8rem; color: #888; margin-top: 18px; line-height: 1.5; }
.grib-fallback a { color: var(--navy); text-decoration: underline; }

/* veiligheidsregels met icoontjes + verplicht vinkje (data-grib-consent, zie grib-embed.js) */
.grib-rules-consent { border-left-color: #c0392b; }
.grib-rules .grib-rules-sub { font-size: .82rem; color: var(--text); margin: -4px 0 12px; line-height: 1.45; }
.grib-rules ul.grib-rules-icons { gap: 8px; margin-bottom: 14px; }
.grib-rules ul.grib-rules-icons li { min-height: 30px; padding: 5px 0 5px 40px; }
.grib-rules ul.grib-rules-icons li::before { content: ''; left: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background: var(--navy); }
.grib-rules ul.grib-rules-icons li::after { content: ''; position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; background: var(--orange); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.grib-rules ul.grib-rules-icons li:not([data-icon])::after { content: none; }
.grib-rules ul.grib-rules-icons strong { font-weight: 700; }
.grib-rules-icons li[data-icon="nails"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10v7a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 7h10'/%3E%3C/svg%3E"); }
.grib-rules-icons li[data-icon="jewelry"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.7 5.7 12.6 12.6'/%3E%3C/svg%3E"); }
.grib-rules-icons li[data-icon="slippers"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3c2.5 0 3.5 2 3.5 5v9a3.5 3.5 0 0 1-7 0V8c0-3 1-5 3.5-5z'/%3E%3Cpath d='M4.5 10h7'/%3E%3Cpath d='M16.5 6c2 0 3 1.6 3 4v7a3 3 0 0 1-6 0v-7c0-2.4 1-4 3-4z'/%3E%3Cpath d='M13.5 12h6'/%3E%3C/svg%3E"); }
.grib-rules-icons li[data-icon="clock"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.grib-rules-icons li[data-icon="shirt"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 3 6l2 5 2-1v11h10V10l2 1 2-5-5-3a4 4 0 0 1-8 0z'/%3E%3C/svg%3E"); }
.grib-rules-icons li[data-icon="shorts"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16l1 15h-7l-2-8-2 8H3z'/%3E%3Cpath d='M4 8h16'/%3E%3C/svg%3E"); }
.grib-consent { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 2px solid var(--orange); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; cursor: pointer; font-size: .86rem; line-height: 1.5; color: var(--navy); font-weight: 500; transition: background .2s, border-color .2s; }
.grib-consent input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.grib-consent.is-checked { background: #eef8f1; border-color: #2e9d5b; }
.grib-consent.is-flash { animation: gribFlash .9s ease 2; }
@keyframes gribFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,163,37,0); } 50% { box-shadow: 0 0 0 6px rgba(232,163,37,.45); } }

.grib-lock { position: relative; }
.grib-lock .grib-slot { transition: opacity .3s, filter .3s; }
.grib-lock.is-locked .grib-slot { opacity: .35; filter: blur(1.5px) grayscale(.4); pointer-events: none; user-select: none; }
.grib-lock-msg { display: none; position: absolute; inset: 0; z-index: 6; justify-content: center; align-items: flex-start; padding-top: 56px; cursor: pointer; }
.grib-lock.is-locked .grib-lock-msg { display: flex; }
.grib-lock-box { background: #fff; border-radius: var(--radius-md); box-shadow: 0 8px 30px rgba(20,31,92,.15); padding: 22px 24px; max-width: 320px; text-align: center; }
.grib-lock-box svg { width: 28px; height: 28px; color: var(--navy); margin-bottom: 8px; }
.grib-lock-box p { font-family: var(--font-head); color: var(--navy); font-size: 1rem; line-height: 1.35; margin: 0 0 14px !important; }
.grib-lock-box .btn { font-size: .85rem; padding: 12px 22px; }

@media (max-width: 560px) {
  .grib-section { padding: 56px 0; }
  .grib-section .grib-card { padding: 28px 20px; }
  .grib-card .grib-reg-embed .step-item .text { font-size: .8rem; }
}
