/* ========== DECK & SMOKE AREA ========== */
.deck {
    display: block;
    position: relative;
    width: 300px;
    height: 500px;
    margin: auto;
    top: 20px;
}

.card {
    position: absolute;
    background: transparent;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .deck {
        max-width: 80%;
    }
}

#smoke-canvas {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    z-index: 3000;
    pointer-events: none;
}

#smoke-canvas.fade-out {
    animation: fadeOutSmoke 0.5s forwards;
}

@keyframes fadeOutSmoke {
    to {
        opacity: 0;
    }
}

#flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* ========== GETROKKEN KAARTEN ========== */
#chosen-cards {
    border-radius: 8px;
    max-width: 800px;
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 4;
    flex-wrap: nowrap;
    position: relative;
    margin: auto;
}

#chosen-cards.shown {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

#chosen-cards .tarot-card {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 3/5;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chosen-cards .tarot-card:not(:last-child) {
    margin-right: 15px;
}


#chosen-cards .tarot-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    #chosen-cards {
        flex-direction: row;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    #chosen-cards .tarot-card {
        max-width: 30vw;
    }
}

/* ========== HEADING ========== */
#draw h1,
.draw-heading {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #FFE084;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin: 2rem auto 1rem auto;
    position: relative;
    z-index: 10;
}

/*  Glassmorphic form‑kaart  */
.form-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

/* Voor schermen kleiner dan 600px */
@media (max-width: 600px) {
    .form-card {
        width: 100%; /* Zorgt ervoor dat de form card 90% van de breedte is */
        padding: 1rem; /* Vermindert de padding voor kleinere schermen */
    }
}

/* Voor schermen groter dan 600px */
@media (min-width: 601px) {
    .form-card {
        width: 650px;
    }
}

/*  Gouden CTA  */
.btn-gold{
    background:linear-gradient(180deg,#ffe599 0%,#ffd966 100%);
    border:none;color:#2e1d5c;font-weight:600;
}
.btn-gold:hover{background:#ffd966;color:#2e1d5c;}

/*  Tarot‑kaart placeholders  */
.tarot-cards{margin-top:3rem;}
.tarot-card{
    width:216px;height:360px;border:2px solid var(--gold);border-radius:8px;background:none;position:relative;
    transform:rotate(-6deg);
}
.tarot-card:nth-child(2){transform:rotate(0deg);}  /* middelste recht */
.tarot-card:nth-child(3){transform:rotate(6deg);}  /* derde de andere kant op */
.tarot-card:not(:first-child){margin-left:-40px;}
.tarot-card::before{
    content:"";position:absolute;inset:8px;border:2px solid var(--gold);border-radius:6px;opacity:.4;
}

@media (max-width:576px){
    .tarot-cards{justify-content:center!important;}
    .tarot-card:not(:first-child){margin-left:-20px;}
    .tarot-card{width:110px;height:180px;border:2px solid var(--gold);border-radius:8px;background:none;position:relative;
    transform:rotate(-6deg);}
    .reading-text {max-width:95%}
    }
}

/* ==== RESULT LAYOUT ==== */
.reading-wrapper{max-width:100%;margin:20px 10px;padding:2rem 1rem;text-align:center;}

.reading-card{
  aspect-ratio:3/5;width:100%;border-radius:10px;
  box-shadow:var(--shadow-lg);
  transform-origin:center bottom;
  border:3px solid rgba(255,245,210,.8);
  background-size:cover;background-position:center;
}
.card-1{transform:rotate(-8deg);z-index:1;}
.card-2{transform:scale(1.05);margin:0 -1rem;z-index:2;}
.card-3{transform:rotate(7deg);z-index:1;}

.reading-text{max-width:750px;margin:0 auto 3rem;line-height:1.6;font-size:1.15rem;}



.reading-text{max-width:750px;margin:0 auto 3rem;line-height:1.8;font-size:1.5rem;}

@keyframes twinkle{from{opacity:.2;}to{opacity:.6;}}

/*  ======= FORM & INPUT FIX =======  */
.form-control, .form-select{
  background:rgba(255,255,255,.06);
  color:var(--text-light);
  border:1px solid rgba(255,255,255,.25);
}
.form-control::placeholder{color:rgba(253,247,229,.7);} /* lichter goud */
.form-select option{color:#1a112f;} /* donkere tekst in dropdown list */
.form-control:focus,.form-select:focus{
  border-color:var(--gold-500);
  box-shadow:0 0 0 0.25rem rgba(255,217,102,.25);
}
/* Toon/verborgen logica blijft in JS; hier alleen een nette fade-in */
#upsell-same-intent.d-none { display:none; }
#upsell-same-intent.fade-in { animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
