/* Voorkomt een lay-outverschuiving (layout shift) door compensatie voor het verdwijnen van de scrollbalk van de body wanneer een modaal open is. */
body.modal-open {
    padding-right: 15px; /* Pas deze waarde aan indien nodig */
}

.pixelated-image {
    /* This property gives the image a pixelated look */
    image-rendering: pixelated; /* Standard property */
    /* The 'contain' value scales the image to fit within the container
       without distorting its aspect ratio. */
    object-fit: contain;
}

.hero-section {
    /* Fallback for older browsers without image-set() support */
    background-image: url("/images/cat_embroidery.jpg");
    /* Deliver optimized decorative background image per modern-web-guidance */
    background-image: image-set(
        url("/images/cat_embroidery.webp") type("image/webp") 1x,
        url("/images/cat_embroidery.jpg") type("image/jpeg") 1x
    );
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.90) 0%, rgba(139, 92, 246, 0.84) 52%, rgba(236, 72, 153, 0.80) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2; /* Make sure the content is on top of the overlay */
}

/* Hero visual transformation showcase (Photo -> Embroidery Hoop) */
.hero-showcase-composition {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 0.5rem 1.75rem 1.5rem;
}

.hero-hoop-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 0.65rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
    position: relative;
}

.hero-showcase-composition:hover .hero-hoop-card {
    transform: rotate(0deg) scale(1.01);
}

.hero-hoop-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1.1rem;
    display: block;
}

.hero-result-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    color: #5b21b6;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-original-card {
    position: absolute;
    top: -0.25rem;
    left: 0;
    width: 155px;
    background: #ffffff;
    padding: 0.45rem;
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
    transform: rotate(-6deg);
    z-index: 4;
    transition: transform 0.35s ease;
}

.hero-showcase-composition:hover .hero-original-card {
    transform: rotate(-2deg) scale(1.04);
}

.hero-original-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.7rem;
    display: block;
}

.hero-original-label {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-transform-arrow {
    position: absolute;
    top: 4.5rem;
    left: 8.6rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary-purple), var(--bs-secondary-pink));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    border: 2px solid #ffffff;
    z-index: 5;
    font-size: 0.95rem;
}

.hero-specs-pill {
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1f2937;
    border-radius: 9999px;
    padding: 0.5rem 1.1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 4;
}

.thread-swatch-dots {
    display: inline-flex;
    align-items: center;
}

.thread-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.thread-swatch-dot:first-child {
    margin-left: 0;
}

/* Upload area visual thumbnails */
.upload-visual-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.upload-thumb-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.3rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    text-align: center;
    width: 92px;
}

.upload-thumb-img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.upload-thumb-caption {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #374151;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.upload-arrow-circle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

/* 3-Step Visual Cards */
.step-visual-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.step-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.step-card:hover .step-visual-img {
    transform: scale(1.05);
}

.step-number-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--bs-primary-purple);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffffff;
}

.step-visual-tag {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Embroidery Before & After Showcase Cards */
.embroidery-showcase-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(139, 92, 246, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.embroidery-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.16);
}

.showcase-media-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f9fafb;
}

.showcase-after-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.embroidery-showcase-card:hover .showcase-after-img {
    transform: scale(1.04);
}

.showcase-before-pip {
    position: absolute;
    bottom: 0.85rem;
    left: 0.85rem;
    width: 108px;
    background: #ffffff;
    padding: 0.3rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    z-index: 3;
    transition: transform 0.3s ease;
}

.embroidery-showcase-card:hover .showcase-before-pip {
    transform: scale(1.06);
}

.showcase-before-img {
    width: 100%;
    height: 76px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

.showcase-before-caption {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.showcase-pip-arrow {
    position: absolute;
    bottom: 2.8rem;
    left: 7.1rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--bs-primary-purple);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    z-index: 4;
}

.showcase-after-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(255, 255, 255, 0.94);
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    z-index: 3;
}

.showcase-spec-pill {
    background: var(--bs-light-purple);
    color: #4c1d95;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Brand logos strip */
.brand-logo-badge {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.brand-logo-badge img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .hero-showcase-composition {
        padding: 1rem 0.25rem 1.5rem 0.75rem;
    }
    .hero-original-card {
        width: 120px;
    }
    .hero-transform-arrow {
        top: 3.4rem;
        left: 6.7rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    .hero-specs-pill {
        font-size: 0.74rem;
        padding: 0.4rem 0.85rem;
    }
}

.bg-gradient-feminine {
    background: linear-gradient(to right, var(--bs-primary-purple), var(--bs-secondary-pink));
}

/* Upload area specifieke styling */
/* CSS for the pulsing glow animation on the upload area */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 10px 15px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
}

#upload-area {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem 3rem; /* p-8 sm:p-12 lg:p-16 */
    max-width: 48rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    position: relative;
    animation: pulse-glow 2.5s infinite ease-in-out;
    transition: all 0.3s ease-in-out;
}

#upload-area:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#upload-area.active-drag {
    /* Stop the pulsing animation when an item is being dragged */
    animation: none;
    box-shadow: 0 0 20px 5px #8B5CF6; /* Example color, you can adjust this */
}
#file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Area hover feedback: ensure the button scales when any part of the label is hovered. */
#upload-area:hover .transform-hover-scale {
    transform: translateY(-2px) scale(1.02);
}
/* Toegevoegde stijl voor de upload-spinner */
#upload-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    max-width: 48rem;
    margin: auto;
    min-height: 19rem; /* Zorgt ervoor dat de hoogte vergelijkbaar is met de upload-area */
}

/* Native HTML details & summary FAQ accordion */
.faq-accordion-group {
    border: 0;
}

.faq-details {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.faq-details:first-of-type {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.faq-details:last-of-type {
    border-bottom: 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #212529;
    user-select: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::marker {
    display: none;
    content: "";
}

.faq-summary:hover {
    color: var(--bs-primary-purple, #6c5ce7);
    background-color: rgba(108, 92, 231, 0.03);
}

.faq-details[open] > .faq-summary {
    color: var(--bs-primary-purple, #6c5ce7);
    background-color: rgba(108, 92, 231, 0.05);
}

.faq-icon-chevron {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #6c757d;
}

.faq-details[open] .faq-icon-chevron {
    transform: rotate(180deg);
    color: var(--bs-primary-purple, #6c5ce7);
}

.faq-answer {
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    color: #6c757d;
    line-height: 1.8;
}