/* ============================================================
   SUE Behavioural Design — Download Page Template CSS
   Used by: nl/download/*/index.html, en/download/*/index.html

   HOW TO USE:
   1. Copy the download page template HTML
   2. Fill in: title, subtitle, bullets, pdf path, cover image path
   3. Done — all styling is handled here
   ============================================================ */

:root {
    --coral:       #FF5A5F;
    --coral-dark:  #e54e53;
    --coral-light: #fff0f0;
    --black:       #1a1a1a;
    --grey:        #5a5a5a;
    --grey-light:  #9a9a9a;
    --bg:          #F6F3EE;
    --white:       #FFFFFF;
    --border:      #e2ddd6;
    --green:       #2E7D32;
    --green-bg:    #E8F5E9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ─────────────────────────────────────── */

.dl-page {
    min-height: 100vh;
    padding: 100px 24px 80px;
}

.dl-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ── Layout variant: no visual (title + bullets left) ── */

.dl-inner--novisual {
    grid-template-columns: 1.15fr 1fr;
    gap: 100px;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.dl-content {
    padding-top: 4px;
}

/* Bullet list (James Clear style) */
.dl-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dl-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.dl-bullet-item:last-child {
    margin-bottom: 0;
}

.dl-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.dl-check img {
    width: 32px;
    height: 32px;
    display: block;
}

.dl-bullet-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--grey);
}

.dl-bullet-text strong {
    color: var(--black);
    font-weight: 700;
    font-style: normal;
    font-family: Georgia, 'Times New Roman', serif;
}

.dl-bullet-text em {
    font-style: normal;
}

/* Standalone form column (no mockup variant) */
.dl-form-col--standalone {
    padding-top: 120px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dl-form-col--standalone .dl-field label {
    display: none;
}

.dl-form-col--standalone .dl-field {
    margin-bottom: 0;
}

.dl-form-col--standalone #downloadForm {
    width: 100%;
    max-width: 100%;
}

.dl-form-col--standalone .dl-field input {
    border: 2px solid #FF5A5F !important;
    border-bottom: none !important;
    border-radius: 4px 4px 0 0;
    background: #FFFFFF !important;
    font-size: 1rem;
    padding: 16px 18px;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.dl-form-col--standalone .dl-field input:focus {
    border-color: #FF5A5F !important;
    box-shadow: none !important;
    outline: none;
}

.dl-form-col--standalone .dl-submit {
    margin-top: 0;
    border-radius: 0 0 4px 4px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    padding: 16px 24px;
}

.dl-form-col--standalone .dl-privacy {
    display: block;
    font-size: 0.72rem;
    color: #999999;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.dl-form-col--standalone .dl-privacy a {
    color: #666666;
    text-decoration: underline;
}

.dl-form-col--standalone .dl-trust {
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
}

@media (max-width: 860px) {
    .dl-inner--novisual {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: unset;
    }

    .dl-form-col--standalone {
        padding-top: 0 !important;
    }
}

/* ── LEFT: Mockup column ──────────────────────────────── */

.dl-visual {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3D tilt effect */
.dl-mockup-wrap {
    perspective: 1400px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dl-mockup {
    position: relative;
    display: inline-block;
    transform: perspective(1400px) rotateY(-18deg) rotateX(3deg) rotate(1deg);
    transform-origin: center center;
    transition: transform 0.4s ease;
    filter: drop-shadow(24px 28px 48px rgba(0,0,0,0.22))
            drop-shadow(4px 6px 12px rgba(0,0,0,0.10));
}

.dl-mockup:hover {
    transform: perspective(1400px) rotateY(-10deg) rotateX(2deg) rotate(0.5deg);
}

.dl-mockup img {
    display: block;
    width: 100%;
    max-width: 320px;
    border-radius: 4px;
}

/* Page count spine: subtle left edge */
.dl-mockup::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -6px;
    bottom: 2px;
    width: 6px;
    background: linear-gradient(to right, rgba(0,0,0,0.18), rgba(0,0,0,0.05));
    border-radius: 2px 0 0 2px;
    transform: scaleX(1) skewY(-1deg);
}

/* "Bevat:" list under mockup */
.dl-contains {
    width: 100%;
    max-width: 320px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid var(--border);
}

.dl-contains-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey-light);
    margin-bottom: 14px;
    display: block;
}

.dl-contains ul {
    list-style: none;
    padding: 0;
}

.dl-contains li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--grey);
    margin-bottom: 10px;
}

.dl-contains li:last-child {
    margin-bottom: 0;
}

.dl-contains li .check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.dl-contains li .check svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Page count badge */
.dl-page-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.78rem;
    color: var(--grey-light);
    font-weight: 500;
}

.dl-page-count svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ── RIGHT: Form column ───────────────────────────────── */

.dl-form-col {
    padding-top: 8px;
}

.dl-overline {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FF5A5F !important;
    margin-bottom: 16px;
}

.dl-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 18px;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.dl-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    color: var(--grey);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 440px;
}

/* Form box */
.dl-form-box {
    background: #FFFFFF !important;
    border-radius: 16px;
    padding: 64px 56px 56px;
    border: 1.5px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dl-form-overline {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FF5A5F;
    text-align: center;
    margin-bottom: 10px;
}

.dl-form-box-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
    text-align: center;
}

.dl-form-box-sub {
    display: none;
}

/* Two-column field row (voornaam + achternaam) */
.dl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.dl-form-row .dl-field {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .dl-form-row {
        grid-template-columns: 1fr;
    }
}

/* Form fields */
.dl-field {
    margin-bottom: 14px;
}

.dl-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.dl-field input {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--black);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-field input::placeholder {
    color: #999999;
}

.dl-field input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    background: var(--white);
}

.dl-field input.error {
    border-color: var(--coral);
}

.dl-field-error {
    display: none;
    font-size: 0.78rem;
    color: var(--coral);
    margin-top: 5px;
}

.dl-field-error.visible {
    display: block;
}

.dl-submit {
    width: 100%;
    padding: 15px 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: #FF5A5F !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(255,90,95,0.3);
}

.dl-submit:hover {
    background: #e54e53 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,90,95,0.35);
}

.dl-submit:active {
    transform: translateY(0);
}

/* Loading state */
.dl-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

.dl-privacy {
    font-size: 0.75rem;
    color: var(--grey-light);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.dl-privacy a {
    color: var(--grey-light);
    text-decoration: underline;
}

/* ── SUCCESS STATE ────────────────────────────────────── */

.dl-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.dl-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.dl-success h2 {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 10px;
}

.dl-success p {
    font-size: 0.95rem;
    color: var(--grey);
    margin-bottom: 28px;
    line-height: 1.6;
}

.dl-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--coral);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(255,90,95,0.3);
}

.dl-success-btn:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
}

/* ── TRUST BADGES ─────────────────────────────────────── */

.dl-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.dl-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #666666;
}

.dl-trust-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 860px) {
    .dl-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .dl-visual {
        position: static;
        flex-direction: row;
        align-items: flex-start;
        gap: 28px;
    }

    .dl-mockup-wrap {
        margin-bottom: 0;
        flex-shrink: 0;
        width: auto;
    }

    .dl-mockup img {
        max-width: 180px;
    }

    .dl-contains {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .dl-page {
        padding: 80px 20px 60px;
    }

    .dl-visual {
        flex-direction: column;
        align-items: center;
    }

    .dl-mockup img {
        max-width: 220px;
    }

    .dl-title {
        font-size: 1.7rem;
    }

    .dl-form-box {
        padding: 28px 24px;
    }

    .dl-trust {
        flex-direction: column;
        gap: 12px;
    }
}
