/* Bryze Intake Form — public styling */
.bin-wrap {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}
.bin-header { text-align: center; margin-bottom: 32px; }
.bin-header h1 { font-size: 2rem; font-weight: 700; margin: 0 0 8px; }
.bin-lead { color: #666; font-size: 1rem; line-height: 1.5; }

.bin-error { background: #fee; border-left: 4px solid #c00; padding: 12px 16px; margin-bottom: 20px; border-radius: 4px; color: #800; }
.bin-notice { background: #fff8e1; border-left: 4px solid #f0b849; padding: 16px 20px; border-radius: 4px; }

/* Auto-save tooltip in header */
.bin-tip { background: #eef6ff; border-left: 3px solid #4a90e2; padding: 10px 14px; border-radius: 4px; font-size: 13px; color: #1e40af; margin-top: 12px; line-height: 1.5; }

/* Draft-resume banner */
.bin-draft-banner { background: #d1fae5; border-left: 3px solid #059669; padding: 10px 14px; border-radius: 4px; font-size: 13px; color: #065f46; margin-bottom: 16px; }

/* Floating save indicator (rechtsonder) */
.bin-save-indicator {
    position: fixed; bottom: 20px; right: 20px; z-index: 100;
    background: #1a1a2e; color: #fff; padding: 10px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 500; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.bin-save-indicator.bin-show { opacity: 1; transform: translateY(0); }
.bin-save-indicator.bin-save-err { background: #dc2626; }

.bin-glass .bin-tip { background: rgba(74,144,226,0.1); color: rgba(255,255,255,0.85); border-left-color: #60a5fa; }
.bin-glass .bin-draft-banner { background: rgba(5,150,105,0.15); color: #6ee7b7; border-left-color: #10b981; }

/* Step indicator */
.bin-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding: 12px; background: #f8f8f8; border-radius: 8px; }
.bin-step-pill { padding: 6px 12px; font-size: 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 16px; cursor: pointer; transition: all 0.2s; user-select: none; }
.bin-step-pill.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.bin-step-pill.done { background: #5fa624; color: #fff; border-color: #5fa624; }
.bin-step-pill.done::before { content: "✓ "; }

/* Required / optional badges */
.bin-step-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 8px; vertical-align: middle; }
.bin-step-badge.bin-req { background: #dc3545; color: #fff; }
.bin-step-badge.bin-opt { background: #e0e0e0; color: #666; }
.bin-step h2 .bin-step-badge { font-size: 11px; padding: 3px 10px; margin-left: 12px; vertical-align: 4px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.bin-glass .bin-step-badge.bin-opt { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.bin-glass .bin-step-badge.bin-req { background: var(--glass-accent, #ff4d4d); }

/* Skip button (text-link style) */
.bin-btn-text { background: transparent; color: #888; padding: 10px 12px; border: none; font-weight: 500; }
.bin-btn-text:hover { color: #1a1a2e; text-decoration: underline; }
.bin-glass .bin-btn-text { color: rgba(255,255,255,0.6); }
.bin-glass .bin-btn-text:hover { color: #fff; }

/* Steps */
.bin-step { display: none; }
.bin-step.active { display: block; animation: binFadeIn 0.3s ease; }
@keyframes binFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bin-step h2 { font-size: 1.4rem; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid #1a1a2e; }

/* Field */
.bin-field { margin-bottom: 18px; }
.bin-field.bin-hidden { display: none; }
.bin-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.bin-field input[type=text],
.bin-field input[type=email],
.bin-field input[type=tel],
.bin-field input[type=url],
.bin-field textarea,
.bin-field select {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; font-family: inherit;
    background: #fff; box-sizing: border-box; transition: border-color 0.2s;
}
.bin-field input:focus, .bin-field textarea:focus, .bin-field select:focus { border-color: #1a1a2e; outline: none; }
.bin-field small { display: block; margin-top: 4px; color: #888; font-size: 12px; }

/* Image field */
.bin-image-field input[type=file] { padding: 8px; background: #f8f8f8; border: 1px dashed #ccc; }
.bin-image-field input[type=url] { margin-top: 8px; }
.bin-image-preview { margin-top: 10px; }
.bin-image-preview img { max-width: 200px; max-height: 120px; border-radius: 6px; border: 1px solid #e0e0e0; }

/* Repeater */
.bin-repeater { border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; background: #fafafa; }
.bin-repeater-row { display: grid; grid-template-columns: 1fr 1fr 1fr 30px; gap: 8px; align-items: end; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #e0e0e0; }
.bin-repeater-row:last-of-type { border-bottom: none; }
.bin-repeater-cell label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.bin-repeater-cell textarea { min-height: 50px; }
.bin-repeater-remove { width: 30px; height: 30px; border: 1px solid #ccc; border-radius: 50%; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; color: #c00; }
.bin-repeater-remove:hover { background: #fee; }
.bin-repeater-add { margin-top: 4px; }

/* Buttons */
.bin-btn { padding: 10px 22px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; border: none; transition: all 0.2s; }
.bin-btn-primary { background: #1a1a2e; color: #fff; }
.bin-btn-primary:hover { background: #16213e; }
.bin-btn-secondary { background: #fff; color: #1a1a2e; border: 1px solid #1a1a2e; }
.bin-btn-secondary:hover { background: #f0f0f0; }

.bin-step-nav { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.bin-step-nav .bin-prev { margin-right: auto; }
.bin-step-nav .bin-next, .bin-step-nav button[type=submit] { margin-left: auto; }

/* Thanks page */
.bin-thanks { text-align: center; padding: 60px 20px; }
.bin-thanks h1 { font-size: 2.4rem; margin-bottom: 16px; }
.bin-thanks p { font-size: 1.1rem; color: #666; max-width: 500px; margin: 0 auto 16px; }

/* Responsive */
@media (max-width: 640px) {
    .bin-repeater-row { grid-template-columns: 1fr; }
    .bin-step h2 { font-size: 1.2rem; }
    .bin-header h1 { font-size: 1.6rem; }
}

/* === Glass-thema variant — wordt toegepast wanneer pagina-template = Easy Homepage en site-template = glass === */
.bin-glass { color: #f0f0f0; }
.bin-glass .bin-header h1 { color: #fff; }
.bin-glass .bin-lead { color: rgba(255,255,255,0.75); }
.bin-glass .bin-steps { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.bin-glass .bin-step-pill { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }
.bin-glass .bin-step-pill.active { background: var(--glass-accent, #ff4d4d); color: #fff; border-color: var(--glass-accent, #ff4d4d); }
.bin-glass .bin-step-pill.done { background: rgba(95,166,36,0.5); border-color: rgba(95,166,36,0.7); color: #fff; }
.bin-glass .bin-step h2 { color: #fff; border-bottom-color: var(--glass-accent, #ff4d4d); }
.bin-glass .bin-field label { color: #fff; }
.bin-glass .bin-field input[type=text],
.bin-glass .bin-field input[type=email],
.bin-glass .bin-field input[type=tel],
.bin-glass .bin-field input[type=url],
.bin-glass .bin-field textarea,
.bin-glass .bin-field select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.bin-glass .bin-field input::placeholder,
.bin-glass .bin-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.bin-glass .bin-field input:focus,
.bin-glass .bin-field textarea:focus,
.bin-glass .bin-field select:focus { border-color: var(--glass-accent, #ff4d4d); background: rgba(255,255,255,0.08); }
.bin-glass .bin-field small { color: rgba(255,255,255,0.5); }
.bin-glass .bin-field select option { background: #1a1a2e; color: #fff; }
.bin-glass .bin-image-field input[type=file] { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15); color: #fff; }

.bin-glass .bin-repeater { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.bin-glass .bin-repeater-row { border-bottom-color: rgba(255,255,255,0.08); }
.bin-glass .bin-repeater-cell label { color: rgba(255,255,255,0.5); }
.bin-glass .bin-repeater-remove { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: #ff8585; }
.bin-glass .bin-repeater-remove:hover { background: rgba(255,77,77,0.2); }

.bin-glass .bin-btn-primary { background: var(--glass-accent, #ff4d4d); color: #fff; }
.bin-glass .bin-btn-primary:hover { background: #ff6b6b; }
.bin-glass .bin-btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.bin-glass .bin-btn-secondary:hover { background: rgba(255,255,255,0.1); }

.bin-glass .bin-step-nav { border-top-color: rgba(255,255,255,0.1); }
.bin-glass .bin-error { background: rgba(220,53,69,0.15); border-left-color: #ff6b6b; color: #ffb3b3; }
.bin-glass .bin-thanks p { color: rgba(255,255,255,0.7); }
