/* assets/player.css - COMPLETE VERSIE */

.iv-player-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.iv-player {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none; /* Geen schaduw meer */
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Verberg schaduw tijdens video playback */
.iv-player.playing {
    box-shadow: none;
}

.iv-player.video-active {
    box-shadow: none;
}

/* Video Container */
.iv-video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    z-index: auto !important;
    overflow: hidden !important; /* Changed from visible to hidden */
    border-radius: 12px; /* Expliciete border-radius */
}

/* Responsive border-radius voor video container */
@media (max-width: 768px) {
    .iv-video-container {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .iv-video-container {
        border-radius: 6px;
    }
}

.iv-poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.iv-poster-image.hidden {
    display: none;
}

/* Watermark (Promotional CTA with Logo) */
.iv-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 60;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

.iv-watermark:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.iv-watermark-logo {
    height: 28px !important;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.iv-watermark:hover .iv-watermark-logo {
    opacity: 1;
}

.iv-watermark span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2px;
}

.iv-watermark:hover span {
    color: #fff;
}

/* Responsive watermark */
@media (max-width: 768px) {
    .iv-watermark {
        bottom: 6px;
        right: 6px;
        padding: 3px 6px;
        gap: 4px;
        font-size: 9px;
    }
    
    .iv-watermark-logo {
        height: 7px;
    }
    
    .iv-watermark span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .iv-watermark {
        bottom: 5px;
        right: 5px;
        padding: 3px 5px;
        gap: 3px;
        font-size: 8px;
    }
    
    .iv-watermark-logo {
        height: 6px;
    }
    
    .iv-watermark span {
        font-size: 8px;
    }
}

.iv-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: none !important;
    z-index: 50 !important; /* Above iframe (5) but below overlays when they're active */
    background: #000 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    mask: none !important;
    border-radius: 12px !important; /* Expliciete waarde voor desktop met !important */
}

.iv-video[style*="display: block"] {
    display: block !important;
    z-index: 50 !important; /* Super high when explicitly set to block */
    border-radius: 12px !important; /* Behoud ronde hoeken tijdens playback */
}

.iv-video.playing {
    z-index: 50 !important; /* Above everything when actually playing */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 12px !important; /* Behoud ronde hoeken tijdens playback */
}

/* Responsive border-radius voor video */
@media (max-width: 768px) {
    .iv-video,
    .iv-video[style*="display: block"],
    .iv-video.playing {
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .iv-video,
    .iv-video[style*="display: block"],
    .iv-video.playing {
        border-radius: 6px !important;
    }
}

.iv-video::-webkit-media-controls,
.iv-video::-webkit-media-controls-enclosure,
.iv-video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
}

.iv-video::-moz-media-controls {
    display: none !important;
}

.iv-video[controls]::-webkit-media-controls {
    display: flex !important;
    opacity: 1 !important;
}

.iv-video[controls]::-webkit-media-controls-enclosure {
    display: flex !important;
}

.iv-video[controls]::-webkit-media-controls-panel {
    display: flex !important;
}

/* Iframe Container voor YouTube/Vimeo */
.iv-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 5;
    border-radius: 12px; /* Expliciete waarde */
    overflow: hidden; /* Zorgt dat iframe binnen border-radius blijft */
}

.iv-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

/* Responsive border-radius voor iframe */
@media (max-width: 768px) {
    .iv-iframe-container {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .iv-iframe-container {
        border-radius: 6px;
    }
}

/* Hide controls during overlays */
.iv-player.has-overlay .iv-video {
    pointer-events: none;
}

.iv-player.has-overlay .iv-video::-webkit-media-controls {
    display: none !important;
}

.iv-player.has-overlay .iv-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.iv-player.has-overlay .iv-iframe-container {
    pointer-events: none;
}

.iv-player.has-overlay .iv-iframe-container iframe {
    pointer-events: none;
}

/* Play Overlay */
.iv-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 51;
}

.iv-play-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.iv-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #fff;
    transition: transform 0.2s ease;
}

.iv-play-btn:hover {
    transform: scale(1.1);
}

.iv-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.iv-play-btn span {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* YouTube Play Overlay (voor embedded videos) */
.iv-youtube-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 101;
}

.iv-youtube-play-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.iv-youtube-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #fff;
    transition: transform 0.2s ease;
}

.iv-youtube-play-btn:hover {
    transform: scale(1.1);
}

.iv-youtube-play-btn svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.iv-youtube-play-btn span {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Question Overlay */
.iv-question-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
    padding: clamp(12px, 2vw, 25px) clamp(10px, 1.5vw, 18px);
    box-sizing: border-box;
}

.iv-question-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.iv-question-content {
    max-width: min(600px, 90vw);
    max-height: 82vh;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar Styling */
.iv-question-content::-webkit-scrollbar,
.iv-result-content::-webkit-scrollbar {
    width: 8px;
}

.iv-question-content::-webkit-scrollbar-track,
.iv-result-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.iv-question-content::-webkit-scrollbar-thumb,
.iv-result-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.iv-question-content::-webkit-scrollbar-thumb:hover,
.iv-result-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Firefox scrollbar */
.iv-question-content,
.iv-result-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(255,255,255,0.1);
}

/* Scroll indicator verwijderd - veroorzaakte lelijke balk */

.iv-question-text {
    color: #fff;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    margin: 0 0 clamp(10px, 1.5vw, 16px) 0;
    line-height: 1.3;
    padding: 0;
}

/* Wrapper voor vraag en opties om spacing te controleren */
.iv-question-content > * {
    padding: 0 10px; /* Alleen horizontale padding binnen content */
}

.iv-question-content > *:first-child {
    padding-top: 0;
}

.iv-question-content > *:last-child {
    padding-bottom: 0;
}

.iv-question-options {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5vw, 14px);
    margin: 0;
    padding: 0;
    width: 100%;
}

/* GRID LAYOUT: When 5+ options, switch to grid for better space usage */
.iv-question-options[data-option-count="5"],
.iv-question-options[data-option-count="6"],
.iv-question-options[data-option-count="7"],
.iv-question-options[data-option-count="8"],
.iv-question-options[data-option-count="9"],
.iv-question-options[data-option-count="10"],
.iv-question-options[data-option-count="11"],
.iv-question-options[data-option-count="12"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* For exactly 9 options: 3x3 grid */
.iv-question-options[data-option-count="9"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .iv-question-options[data-option-count="5"],
    .iv-question-options[data-option-count="6"],
    .iv-question-options[data-option-count="7"],
    .iv-question-options[data-option-count="8"],
    .iv-question-options[data-option-count="9"],
    .iv-question-options[data-option-count="10"],
    .iv-question-options[data-option-count="11"],
    .iv-question-options[data-option-count="12"] {
        grid-template-columns: repeat(2, 1fr);
        max-height: 65vh;
    }
}

@media (max-width: 480px) {
    .iv-question-options[data-option-count="5"],
    .iv-question-options[data-option-count="6"],
    .iv-question-options[data-option-count="7"],
    .iv-question-options[data-option-count="8"],
    .iv-question-options[data-option-count="9"],
    .iv-question-options[data-option-count="10"],
    .iv-question-options[data-option-count="11"],
    .iv-question-options[data-option-count="12"] {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        max-height: 60vh;
    }
}

.iv-question-option {
    margin: 0; /* Geen margin */
}

.iv-question-option:last-child {
    margin-bottom: 0 !important; /* Zeker geen marge bij laatste button */
}

.iv-question-option {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 20px);
    border-radius: 8px;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: none; /* Geen schaduw onder buttons */
    min-height: 48px; /* Minimum height for better touch targets */
    display: flex;
    align-items: center;
    justify-content: center;
}

.iv-question-option:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: none; /* Ook geen schaduw bij hover */
}

/* Result Overlay */
.iv-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.95) 0%, rgba(118,75,162,0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
    padding: clamp(12px, 2vw, 25px) clamp(10px, 1.5vw, 18px);
    box-sizing: border-box;
}

.iv-result-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.iv-result-content {
    max-width: min(700px, 90vw);
    max-height: 80vh;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px 0 0; /* Alleen rechts padding voor scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.iv-result-title {
    color: #fff;
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 800;
    margin: 0 0 clamp(10px, 1.5vw, 16px) 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.iv-result-body {
    color: rgba(255,255,255,0.95);
    font-size: clamp(13px, 1.6vw, 16px);
    line-height: 1.5;
    margin: 0 0 clamp(12px, 2vw, 20px) 0;
}

.iv-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.iv-result-cta {
    background: #fff;
    color: #667eea;
    padding: clamp(10px, 1.5vw, 13px) clamp(18px, 2.5vw, 24px);
    border-radius: 8px;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: inline-block;
}

.iv-result-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Error Overlay */
.iv-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(220,50,50,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
    padding: clamp(20px, 4vw, 40px) clamp(15px, 3vw, 20px);
    box-sizing: border-box;
}

.iv-error-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.iv-error-content {
    text-align: center;
    color: #fff;
}

.iv-error-content .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.iv-error-message {
    font-size: 18px;
    font-weight: 600;
}

/* Breadcrumb - SIMPEL */
.iv-breadcrumb {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--iv-breadcrumb-bg, rgba(0,0,0,0.3));
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.iv-breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.iv-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: clamp(4px, 1vw, 6px) clamp(8px, 1.5vw, 12px);
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: clamp(12px, 1.8vw, 16px);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    white-space: nowrap;
}

.iv-breadcrumb-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    margin-right: 2px;
    color: #fff;
}

/* Bezochte items */
.iv-breadcrumb-item.visited {
    opacity: 0.6;
}

/* Actief item - gebruikt primaire/secundaire kleuren */
.iv-breadcrumb-item.active {
    background: linear-gradient(135deg, var(--iv-primary-color, #667eea) 0%, var(--iv-secondary-color, #764ba2) 100%);
    color: var(--iv-text-color, #fff);
    font-weight: 700;
    cursor: default;
}

.iv-breadcrumb-item.active .iv-breadcrumb-number {
    background: rgba(255,255,255,0.3);
}

/* Hover */
.iv-breadcrumb-item:not(.active):hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.iv-breadcrumb-separator {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 600;
}

/* Theme Variations - breadcrumb kleuren worden overgenomen uit instellingen */
[data-theme="light"] .iv-player {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .iv-player {
        border-radius: 8px; /* Kleinere border radius op mobiel */
        box-shadow: none; /* Geen schaduw op mobiel */
    }
    
    .iv-question-overlay,
    .iv-result-overlay {
        padding: 5px; /* Minimale symmetrische padding op mobiel */
    }
    
    .iv-question-content,
    .iv-result-content {
        max-height: 80vh; /* Meer ruimte */
    }
    
    .iv-question-content > * {
        padding: 0 8px; /* Minder horizontale padding op mobiel */
    }
    
    .iv-question-text {
        margin-bottom: 8px; /* Vaste kleine marge op mobiel */
    }
    
    .iv-question-options {
        gap: 8px; /* Vaste gap op mobiel */
    }
    
    .iv-question-option:hover {
        transform: translateX(4px); /* Kleinere hover effect op mobile */
    }
    
    .iv-result-actions {
        flex-direction: column;
    }
    
    .iv-result-cta {
        width: 100%;
    }
    
    .iv-breadcrumb-items {
        gap: 6px;
    }
    
    .iv-breadcrumb-item {
        gap: 4px;
    }
    
    /* Extra ruimte voor formulier op mobiel */
    .iv-result-form {
        margin-bottom: 20px;
    }
    
    .iv-form-textarea {
        min-height: 60px; /* Kleiner op mobiel */
    }
}

/* Extra kleine schermen */
@media (max-width: 480px) {
    .iv-player {
        border-radius: 6px; /* Nog kleinere radius */
        box-shadow: none; /* Geen schaduw op klein scherm */
    }
    
    .iv-question-overlay,
    .iv-result-overlay {
        padding: 3px; /* Absolute minimum op kleine schermen */
    }
    
    .iv-question-content,
    .iv-result-content {
        max-height: 82vh; /* Maximale ruimte */
    }
    
    .iv-question-content > * {
        padding: 0 5px; /* Minimale horizontale padding */
    }
    
    .iv-question-text {
        margin-bottom: 6px; /* Extra compact op klein scherm */
    }
    
    .iv-question-options {
        gap: 6px; /* Kleinere gap tussen buttons */
    }
    
    .iv-result-form {
        margin-bottom: 30px; /* Extra ruimte onderaan voor submit button */
    }
}
/* Lead Capture Form Styling */
.iv-result-form {
    margin-top: clamp(12px, 1.5vw, 16px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vw, 8px);
    width: 100%;
    max-width: min(500px, 90vw);
    margin-left: auto;
    margin-right: auto;
}

.iv-form-input,
.iv-form-textarea {
    padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.5vw, 14px);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: clamp(13px, 1.5vw, 14px);
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.iv-form-input::placeholder,
.iv-form-textarea::placeholder {
    color: rgba(255,255,255,0.85);
}

.iv-form-input:focus,
.iv-form-textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.35);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.iv-form-textarea {
    min-height: clamp(70px, 10vw, 100px);
    resize: vertical;
    line-height: 1.4;
}

.iv-form-submit {
    margin-top: 6px !important;
    padding: clamp(10px, 1.5vw, 13px) clamp(18px, 2.5vw, 24px) !important;
    font-size: clamp(14px, 1.6vw, 16px) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iv-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.iv-form-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.iv-form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid rgba(239, 68, 68, 1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease;
}

.iv-form-success {
    padding: 24px;
    background: rgba(16, 185, 129, 0.9);
    border: 2px solid rgba(16, 185, 129, 1);
    border-radius: 12px;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    animation: successPop 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .iv-result-form {
        max-width: 100%;
        padding-bottom: 10px; /* Extra ruimte onderaan */
    }
    
    .iv-form-textarea {
        min-height: clamp(60px, 12vw, 100px);
    }
    
    /* Zorg dat inputs niet zoomen op iOS */
    .iv-form-input,
    .iv-form-textarea {
        font-size: 16px; /* Voorkom zoom op iOS */
    }
}

@media (max-width: 480px) {
    .iv-result-form {
        padding-bottom: 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .iv-form-input,
    .iv-form-textarea {
        border-color: rgba(255,255,255,0.35);
        background: rgba(255,255,255,0.2);
    }
    
    .iv-form-input:focus,
    .iv-form-textarea:focus {
        border-color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.3);
    }
}
/* ========================================
   EXTENDED FORMS STYLING
   ======================================== */

/* Form Row (voor datum/tijd naast elkaar) */
.iv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Checkboxes Container */
.iv-form-checkboxes {
    margin: 16px 0;
}

.iv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

.iv-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.iv-checkbox-label span {
    flex: 1;
}

/* Rating Container (voor Survey form) */
.iv-rating-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.iv-rating-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.95);
}

.iv-rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    margin: 12px 0;
}

.iv-star {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    filter: grayscale(100%);
    opacity: 0.4;
}

.iv-star:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
    opacity: 1;
}

.iv-star.active {
    filter: grayscale(0%);
    opacity: 1;
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Download Info Box */
.iv-download-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.iv-download-info p {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Select Dropdown Styling */
.iv-form-input[type="date"],
.iv-form-input[type="time"],
select.iv-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.8)' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.iv-form-input[type="date"]::-webkit-calendar-picker-indicator,
.iv-form-input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

/* Form Error Styling */
.iv-form-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Success Styling */
.iv-form-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Adjustments voor Extended Forms */
@media (max-width: 768px) {
    .iv-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .iv-rating-stars {
        font-size: 28px;
        gap: 6px;
    }
    
    .iv-rating-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .iv-rating-stars {
        font-size: 24px;
        gap: 4px;
    }
    
    .iv-checkbox-label {
        font-size: 13px;
    }
    
    .iv-download-info {
        padding: 12px;
    }
    
    .iv-download-info p {
        font-size: 14px;
    }
}

/* Dark Mode Adjustments voor Extended Forms */
@media (prefers-color-scheme: dark) {
    .iv-rating-container {
        background: rgba(255,255,255,0.08);
    }
    
    .iv-download-info {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
    }
    
    .iv-form-error {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
    }
    
    .iv-form-success {
        background: rgba(34, 197, 94, 0.2);
        border-color: rgba(34, 197, 94, 0.4);
    }
}

/* Loading State voor Submit Button */
.iv-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Focus States voor Better Accessibility */
.iv-star:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 4px;
    border-radius: 4px;
}

.iv-checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 2px;
}

/* Improved Select Styling */
select.iv-form-input option {
    background: #1e293b;
    color: white;
    padding: 8px;
}

/* ========================================
   CRITICAL FIX: Force Select Visibility
   ======================================== */

.iv-result-form select#iv-form-time-pref,
.iv-result-form select#iv-form-appt-type,
.iv-result-form select#iv-form-service,
.iv-result-form select#iv-form-budget,
.iv-result-overlay select.iv-form-input,
div.iv-result-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 36px 12px 16px !important;
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    
    /* Custom dropdown arrow */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
}

/* Override ANY hiding */
select[id^="iv-form-"] {
    visibility: visible !important;
    display: block !important;
}
/* MOBILE FIX: Prevent content from appearing in front of video */
@media (max-width: 768px) {
    .iv-player-wrapper {
        position: relative;
        z-index: 1;
        /* isolation: isolate REMOVED - breaks z-index with replacement video */
    }
    
    .iv-player {
        position: relative;
        z-index: 10;
    }
    
    .iv-video-container {
        z-index: 5 !important;
    }
    
    /* Ensure all overlays are above video */
    .iv-play-overlay,
    .iv-question-overlay,
    .iv-result-overlay,
    .iv-lead-gate-overlay {
        z-index: 100 !important; /* Verhoogd naar 100 zodat het ALTIJD boven replacement video komt */
    }
    
    /* CRITICAL: Force hide overlays when not active on mobile */
    .iv-question-overlay:not(.active),
    .iv-result-overlay:not(.active),
    .iv-lead-gate-overlay:not(.active) {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}
