:root {
    /* --- COLORS --- */
    --navy: #0A2540;
    --teal: #00D4FF;
    --white: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.15);

    /* ================================================== */
    /* 🟢 SIZES */
    /* ================================================== */
    --size-age: 220px;
    --size-gender: 350px;
    --size-goal: 220px;
    --size-risk: 200px;
    --size-cond: 200px;
    --size-surg: 190px;
    --img-scale: 65%;
}

.quiz-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Hiding original wp-content/plugins/nexus-core override if any */

/* HEADER */
.quiz-header { 
    text-align: center; 
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}
.quiz-logo { 
    max-width: 200px; 
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.quiz-main-heading { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.quiz-sub-heading { font-size: 22px; color: rgba(255,255,255,0.8); margin-bottom: 15px; }
.quiz-privacy { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.4; max-width: 450px; margin: 0 auto; }

/* PROGRESS BAR */
.progress-container {
    width: 100%; height: 4px; background: rgba(255,255,255,0.1);
    border-radius: 10px; margin-bottom: 40px; position: relative;
}
.progress-fill {
    height: 100%; background: var(--teal); border-radius: 10px;
    transition: width 0.5s ease; box-shadow: 0 0 10px var(--teal);
}

/* QUESTION CARDS */
.question-card {
    text-align: center; width: 100%; opacity: 0;
    transform: translateY(20px); transition: all 0.4s ease; display: none;
}
.question-card.active { display: block; opacity: 1; transform: translateY(0); }
.q-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; margin-bottom: 25px; font-weight: 600; }

/* GRID & CARDS */
.image-options-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px;
}
.image-options-grid.four-col { grid-template-columns: 1fr 1fr; } 
@media (min-width: 768px) { .image-options-grid.four-col { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.image-option-card {
    background: transparent; border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 15px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    position: relative; overflow: visible;
    min-height: 180px; 
}

.set-age .image-option-card { min-height: var(--size-age); }
.set-gender .image-option-card { min-height: var(--size-gender); }
.set-goal .image-option-card { min-height: var(--size-goal); }
.set-risk .image-option-card { min-height: var(--size-risk); }
.set-cond .image-option-card { min-height: var(--size-cond); }
.set-surg .image-option-card { min-height: var(--size-surg); }

.card-image-wrapper {
    position: absolute; top: 15px; width: 90%; 
    height: var(--img-scale); 
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease; 
}
.card-image-wrapper img {
    max-height: 100%; max-width: 100%; object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}
.image-option-card span {
    font-size: 16px; font-weight: 500; z-index: 2;
    text-align: center; margin-top: auto;
    transition: color 0.3s ease;
}

/* HOVER EFFECTS */
.image-option-card:hover {
    border-color: var(--teal); 
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2) inset;
    transform: translateY(-8px) scale(1.03);
    background: rgba(0, 212, 255, 0.05);
}
.image-option-card:hover span { color: var(--teal); font-weight: 700; }
.image-option-card:hover .card-image-wrapper img {
    transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

/* FORM & SPINNER */
.input-group { margin-bottom: 15px; text-align: left; }
.quiz-input { width: 100%; padding: 12px; background: transparent; border: 1px solid var(--glass-border); border-radius: 8px; color: white; }
.submit-btn { width: 100%; padding: 15px; background: var(--teal); color: var(--navy); font-weight: 800; border: none; border-radius: 8px; cursor: pointer; margin-top: 10px; transition: all 0.3s ease; }
.submit-btn:disabled { background: #555; cursor: not-allowed; color: #aaa; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(0, 212, 255, 0.3); border-radius: 50%; border-top-color: var(--teal); animation: spin 1s infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* INTL TEL INPUT OVERRIDES */
.iti { width: 100%; }
.iti__flag-container { z-index: 10; }
.iti__selected-flag { background: rgba(255,255,255,0.1); }
.iti__country-list { background-color: #0A2540; border: 1px solid #00D4FF; color: white; }
.iti__country.iti__highlight { background-color: #00D4FF; color: #0A2540; }
