/* === slaapstoornissen — Figma-look (rEDS webinar) === */

/* ─── Zelf-gehoste, gelicentieerde fonts ─── */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/montserrat-italic-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Didot LT Headline';
    src: url('/assets/fonts/didot-headline.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Didot LT Headline';
    src: url('/assets/fonts/didot-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Biro Script';
    src: url('/assets/fonts/biro-script.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --sl-wine: #a7434b;
    --sl-red: #df0e36;
    --sl-red-dark: #a91e33;
    --sl-grey-bg: #ebebeb;
    --sl-text: #1a1a1a;
    --sl-muted: #565656;
    --sl-border: #e5e5e5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--sl-text);
    background: #fff;
    line-height: 1.5;
}
.frame-wrap { max-width: 1920px; margin: 0 auto; overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.sl-req { color: var(--sl-red); }

/* ─── Knop met rood verloop ─── */
.sl-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(90deg, var(--sl-red-dark) 0%, var(--sl-red) 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 28px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.sl-btn:hover { filter: brightness(1.08); }
.sl-btn--lg { padding: 14px 28px; font-size: 17px; align-self: flex-start; }

/* ─── HERO ─── */
.sl-hero {
    background: var(--sl-wine);
    color: #fff;
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}
.sl-hero::after {
    /* Figma Ellipse 3: felrode cirkel (#DF0E36, r=536px) met 300px gaussian blur,
       center op (50% + 297.5px, 50% - 84.5px) */
    content: '';
    position: absolute;
    left: calc(50% + 297.5px);
    top: calc(50% - 84.5px);
    width: 1073px;
    height: 1073px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223,14,54,0.9) 0%, rgba(223,14,54,0.45) 45%, rgba(223,14,54,0) 72%);
    filter: blur(100px);
    pointer-events: none;
}
.sl-hero-inner {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.sl-hero-text { flex: 1; max-width: 825px; }
.sl-hero-overline {
    font-family: 'Biro Script', cursive;
    font-size: 48px;
    line-height: 1;
    margin: 0 0 30px;
    color: #fff;
    font-weight: 400;
}
.sl-hero-title {
    font-family: 'Didot LT Headline', serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.8vw, 60px);
    line-height: 1.15;
    margin: 0 0 30px;
    color: #fff;
}
.sl-hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 10px;
}
.sl-hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 40px;
}
.sl-hero-accreditation {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    margin-top: 40px;
}
.sl-hero-acc-bar {
    display: block;
    width: 3px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.4);
    align-self: stretch;
    min-height: 66px;
}

/* ─── Save the date kaartje ─── */
.sl-std-card {
    background: #fff;
    color: var(--sl-text);
    padding: 50px;
    width: 505px;
    height: 510px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* content onderaan, zoals Figma */
    align-items: flex-start;
    gap: 30px;
    flex-shrink: 0;
    align-self: center;
}
.sl-std-label {
    font-family: 'Biro Script', cursive;
    font-size: 48px;
    line-height: 1;
    color: var(--sl-wine);
    margin: 0 0 20px;
    font-weight: 400;
}
.sl-std-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

/* ─── Information sectie (sprekers + agenda) ─── */
.sl-info-section {
    padding: 100px 0;
    background: #fff;
}
.sl-info-section + .sl-info-section { padding-top: 0; }
.sl-info-inner {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}
.sl-info-inner--single { display: block; }
.sl-info-col { flex: 1; }
.sl-info-col--sprekers { width: 470px; flex: none; max-width: 470px; }
.sl-info-col--agenda { flex: 1 0 0; }
.sl-info-heading {
    font-family: 'Didot LT Headline', serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 30px;
    letter-spacing: 0.02em;
    color: #000;
}
.sl-info-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 30px;
}

/* ─── Sprekers cards ─── */
.sl-spreker-list { display: flex; flex-direction: column; gap: 16px; }
.sl-spreker {
    background: linear-gradient(90deg, rgba(235,235,235,0) 30%, rgba(235,235,235,0.4) 100%);
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 20px;
}
.sl-spreker-avatar {
    width: 100px;
    height: 100px;
    margin: 10px 20px 10px 0;
    /* Foto's zijn vrijstaand (transparant): rood verloop schijnt erdoorheen zoals Figma */
    background: linear-gradient(90deg, var(--sl-red-dark), var(--sl-red));
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.sl-spreker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.sl-spreker-info { display: flex; flex-direction: column; gap: 6px; }
.sl-spreker-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
    margin: 0;
}
.sl-spreker-role {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    color: var(--sl-red);
    margin: 0;
}

/* ─── Agenda bullets ─── */
.sl-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
}
.sl-agenda-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8d8d8;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
}
.sl-agenda-item:last-child { border-bottom: none; }
.sl-marker {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sl-red);
    flex-shrink: 0;
}

/* ─── Form sectie ─── */
.sl-form-section {
    background: var(--sl-grey-bg);
    padding: 120px 0;
    overflow: hidden;
}
.sl-form-inner {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    align-items: stretch;
}
.sl-form-side {
    width: 470px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sl-form-decor {
    height: 600px;
    width: 100%;
    border-top-right-radius: 800px;
    background: linear-gradient(90deg, var(--sl-red-dark), var(--sl-red));
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
.sl-form-decor::after {
    /* Figma: rectangle-47 met multiply over rood verloop, onderkant uitgelijnd */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/figma/rectangle-47.png');
    background-size: cover;
    background-position: bottom center;
    mix-blend-mode: multiply;
    opacity: 0.8;
    border-top-right-radius: 800px;
}
.sl-form-main {
    flex: 1;
}
.sl-form-card {
    background: #fff;
    padding: 80px;
    width: 100%;
    max-width: 860px;
}
.sl-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sl-form-field { display: flex; flex-direction: column; gap: 8px; }
.sl-form-field label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
}
.sl-form-field input {
    border: 1px solid var(--sl-border);
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #000;
    background: #fff;
    line-height: 1.6;
}
.sl-form-field input::placeholder { color: var(--sl-muted); font-weight: 500; }
.sl-form-field input:focus { outline: 2px solid var(--sl-red); outline-offset: -2px; border-color: var(--sl-red); }
.sl-form-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: var(--sl-muted);
}
.sl-form-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sl-form-checkbox a { text-decoration: underline; }
.sl-captcha label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #000;
    display: block;
    margin-bottom: 8px;
}
.sl-captcha input[type="number"] {
    border: 1px solid var(--sl-border);
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    width: 100%;
    background: #fff;
}
.sl-captcha input[type="number"]:focus { outline: 2px solid var(--sl-red); outline-offset: -2px; }
.sl-form-msg {
    padding: 16px 20px;
    font-size: 16px;
    line-height: 1.4;
    background: #fee2e2;
    color: #b91c1c;
    border-left: 3px solid #df0e36;
}
.sl-form-msg[data-success="1"] {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.sl-hero-btn { margin-top: 30px; }

/* ─── Juridische pagina's (privacy/disclaimer) ─── */
.sl-legal {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 40px 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--sl-text);
}
.sl-legal h2 {
    font-family: 'Didot LT Headline', serif;
    font-weight: 500;
    font-size: 26px;
    margin: 40px 0 14px;
    color: #000;
}
.sl-legal p { margin: 0 0 16px; }
.sl-legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.sl-legal li { margin-bottom: 6px; }
.sl-legal a { color: var(--sl-red); text-decoration: underline; }
.sl-legal em { color: var(--sl-muted); }

/* Hero zonder kaartje (juridische pagina's): compacter */
.sl-hero-inner:not(:has(.sl-std-card)) { padding-top: 0; padding-bottom: 0; }
.sl-hero:not(:has(.sl-std-card)) { padding: 70px 0; }

/* ─── Footer ─── */
.sl-footer {
    background: #000;
    color: #fff;
    /* Figma: logo raakt bovenrand; alleen onderaan 20px ruimte */
    padding: 0 0 20px;
}
.sl-footer-inner {
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;   /* alles start bovenaan; logo raakt top van footer */
    gap: 40px;
    flex-wrap: wrap;
}
.sl-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    align-self: center;   /* verticaal gecentreerd in footer-hoogte */
}
.sl-footer-academie {
    font-family: 'Didot LT Headline', serif;
    font-size: 18px;
    font-weight: 500;
}
.sl-footer-logo { height: 38px; width: auto; }
.sl-footer-site-info {
    /* Figma: tekstkolom + Bioprojet-logo samen, bottom-aligned, 20px gap */
    display: flex;
    gap: 20px;
    align-items: flex-end;
    padding-top: 28px;   /* wat lucht boven de bovenste regel, niet strak op de rand */
}
.sl-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.sl-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}
.sl-footer-links a { text-decoration: none; color: #fff; }
.sl-footer-links a:hover { text-decoration: underline; }
.sl-footer-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
}
.sl-footer-sponsor, .sl-footer-bottom {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}
.sl-footer-sponsor-logo {
    max-height: 76px;
    align-self: flex-start;   /* logo vast aan bovenkant footer (Figma) */
}
.sl-footer-site-info .sl-footer-right { align-self: center; }   /* tekst verticaal gecentreerd naast logo */

/* ─── Cookie-banner: neutraal zwart/wit (geen accent-kleur op deze rode site) ─── */
.cb-bar { border-top-color: #1a1a1a !important; }
.cb-btn--primary {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}
.cb-btn--primary:hover {
    background: #000 !important;
    border-color: #000 !important;
}
.cb-btn--secondary {
    background: #fff !important;
    color: #1a1a1a !important;
    border-color: rgba(0,0,0,0.25) !important;
}
.cb-btn--secondary:hover { border-color: #1a1a1a !important; }
.cb-btn--outline {
    color: #1a1a1a !important;
    border-color: rgba(0,0,0,0.2) !important;
}
.cb-btn--outline:hover {
    border-color: #1a1a1a !important;
    color: #000 !important;
}
.cb-link { color: #1a1a1a !important; }
.cb-toggle__input:checked + .cb-toggle__dot { background: #1a1a1a !important; }

/* ─── Responsief ─── */
@media (max-width: 1200px) {
    .sl-hero { padding: 80px 0; }
    .sl-hero-inner { gap: 40px; padding: 0 30px; }
    .sl-hero-title { font-size: 44px; }
    .sl-std-card { width: 380px; padding: 30px; min-height: auto; }
    .sl-info-section { padding: 70px 0; }
    .sl-info-inner { padding: 0 30px; gap: 50px; }
    .sl-form-section { padding: 70px 0; }
    .sl-form-card { padding: 40px; }
    .sl-form-inner { padding: 0 30px; gap: 40px; }
    .sl-form-side { width: 320px; }
    .sl-form-decor { height: 400px; }
}
@media (max-width: 900px) {
    .sl-hero-inner, .sl-info-inner, .sl-form-inner { flex-direction: column; }
    .sl-hero-title { font-size: 34px; }
    .sl-hero-subtitle { font-size: 22px; }
    .sl-hero-desc { font-size: 16px; }
    .sl-std-card { width: 100%; }
    .sl-info-col--sprekers, .sl-form-side { width: 100%; max-width: 100%; }
    .sl-form-side { order: 2; }
    .sl-form-card { padding: 30px; }
    .sl-form-decor { display: none; }
    .sl-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sl-footer-right { align-items: flex-start; }
    .sl-footer-site-info { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-end; }
}
