/* XO Create Quiz Styles — Card Edition */
:root {
    --purple:       #3B1F6E;
    --gold:         #C9970C;
    --light-purple: #EDE8F5;
    --light-gold:   #FDF3D8;
    --dark:         #1A1A1A;
    --white:        #ffffff;
    --mid-grey:     #666666;
    --border:       #e0d5f0;
}

/* ── BASE WRAP ── */
.xo-quiz-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: 'Georgia', serif;
    color: var(--dark);
}

/* ══════════════════════════════════════════════════
   INTRO SECTION
══════════════════════════════════════════════════ */
.xo-intro-header {
    background: var(--purple);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 36px;
}
.xo-intro-header h1 {
    color: var(--white);
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: bold;
}
.xo-intro-tagline {
    color: var(--gold);
    font-style: italic;
    margin: 0;
    font-size: 15px;
}

.xo-intro-body {
    margin-bottom: 36px;
}
.xo-intro-body h2 {
    color: var(--purple);
    font-size: 20px;
    margin-bottom: 14px;
}
.xo-intro-body p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 14px;
}
.xo-intro-italic  { font-style: italic; color: #555; }
.xo-intro-bold    { font-weight: bold; color: var(--purple); }
.xo-intro-gold    { font-style: italic; color: var(--gold); }
.xo-intro-center  { text-align: center; }
.xo-intro-sig     { color: var(--purple); font-size: 15px; }
.xo-intro-sig span { color: var(--gold); font-size: 13px; display: block; margin-top: 2px; }

.xo-divider {
    border: none;
    border-top: 2px solid var(--gold);
    opacity: 0.4;
    margin: 36px 0;
}

.xo-quote-block {
    background: var(--light-purple);
    border-left: 4px solid var(--purple);
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.xo-quote-block p {
    font-style: italic;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Love table */
.xo-love-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}
.xo-love-table th {
    background: var(--purple);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
}
.xo-love-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}
.xo-love-table tr.alt td { background: var(--light-purple); }
.xo-love-table td strong { color: var(--purple); }

/* How it works */
.xo-how-it-works {
    background: var(--light-gold);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 32px;
}
.xo-how-it-works h2 {
    color: var(--purple);
    font-size: 18px;
    margin-bottom: 20px;
}
.xo-steps { display: flex; flex-direction: column; gap: 16px; }
.xo-step  { display: flex; gap: 14px; align-items: flex-start; }
.xo-step-num {
    background: var(--purple);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    font-family: 'Georgia', serif;
}
.xo-step-text {
    font-size: 14px;
    line-height: 1.7;
    padding-top: 4px;
}
.xo-ready-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 6px;
    font-size: 14px;
    color: var(--purple);
    font-style: italic;
    text-align: center;
}
.xo-ready-note p { margin: 0; }

.xo-intro-start {
    text-align: center;
    padding: 20px 0 10px;
}

/* ══════════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════════ */
.xo-progress-wrap {
    margin-bottom: 20px;
}
.xo-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}
#xo-card-label {
    color: var(--purple);
    font-weight: bold;
}
.xo-sel-count {
    font-size: 13px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}
.xo-sel-low  { background: #fff3cd; color: #856404; }
.xo-sel-mid  { background: var(--light-gold); color: #7a5c00; }
.xo-sel-good { background: #d4edda; color: #155724; }

.xo-progress-bar-track {
    height: 8px;
    background: #e8e0f0;
    border-radius: 4px;
    overflow: hidden;
}
.xo-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ══════════════════════════════════════════════════
   CARD INSTRUCTION
══════════════════════════════════════════════════ */
.xo-card-instruction {
    background: var(--light-purple);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-left: 4px solid var(--purple);
}
.xo-card-instruction p {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
    font-style: italic;
    line-height: 1.6;
    text-align: center !important;
}

/* ══════════════════════════════════════════════════
   QUALITIES LIST (single column, card style)
══════════════════════════════════════════════════ */
.xo-qualities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.xo-quality-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.4;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.xo-quality-item:hover {
    background: var(--light-purple);
    border-color: var(--purple);
}

.xo-quality-item.selected {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.xo-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--purple);
    cursor: pointer;
}

.xo-quality-text {
    flex: 1;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   NAVIGATION BUTTONS
══════════════════════════════════════════════════ */
.xo-nav-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.xo-nav-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 0 0 20px;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.xo-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-weight: normal;
}
.xo-btn-primary {
    background: var(--purple);
    color: var(--white);
}
.xo-btn-primary:hover:not(:disabled) {
    background: #2d1755;
    color: var(--white);
}
.xo-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.xo-btn-secondary {
    background: var(--white);
    color: var(--purple);
    border: 1.5px solid var(--purple);
}
.xo-btn-secondary:hover {
    background: var(--light-purple);
}

/* ══════════════════════════════════════════════════
   SUBMIT AREA
══════════════════════════════════════════════════ */
.xo-submit-wrap {
    text-align: center;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 2px solid var(--light-purple);
}
.xo-submit-note {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}
.xo-warning {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #fff8e8;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: #6b4c00;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* ══════════════════════════════════════════════════
   LOADING OVERLAY
══════════════════════════════════════════════════ */
.xo-loading-overlay {
    text-align: center;
    padding: 60px 20px;
}
.xo-loading-inner p {
    color: var(--purple);
    font-style: italic;
    font-size: 16px;
    margin-top: 20px;
}
.xo-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--light-purple);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: xo-spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes xo-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════
   RESULTS (unchanged from original)
══════════════════════════════════════════════════ */
.xo-results-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', serif;
}
.xo-results-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gold);
}
.xo-results-title    { font-size: 36px; color: var(--purple); margin-bottom: 8px; }
.xo-results-subtitle { font-size: 18px; color: var(--gold); font-style: italic; margin-bottom: 16px; }
.xo-results-intro    { font-size: 15px; color: #555; font-style: italic; line-height: 1.6; }

.xo-value-card {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--purple);
}
.xo-value-rank     { font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.xo-value-name     { font-size: 32px; color: var(--purple); margin-bottom: 6px; }
.xo-value-subtitle { font-size: 16px; color: #666; font-style: italic; margin-bottom: 20px; }

.xo-quote {
    background: var(--light-gold);
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}
.xo-quote p    { font-style: italic; color: var(--purple); font-size: 15px; margin: 0 0 6px; }
.xo-quote cite { font-size: 13px; color: var(--gold); }

.xo-value-description { font-size: 15px; line-height: 1.8; color: var(--dark); margin: 20px 0; }

.xo-reflection-box {
    background: #f5f5f5;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.7;
}
.xo-reflection-box strong {
    display: block;
    color: var(--purple);
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.xo-commitment-box {
    background: var(--light-purple);
    padding: 16px 20px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
}
.xo-commitment-box strong {
    display: block;
    color: var(--purple);
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-style: normal;
}

.xo-results-footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid var(--gold);
    margin-top: 40px;
}
.xo-foundation { font-size: 20px; color: var(--gold); font-style: italic; margin-bottom: 12px; }
.xo-card-note  { font-size: 14px; color: #666; font-style: italic; }

/* ══════════════════════════════════════════════════
   HOLDING / ERROR
══════════════════════════════════════════════════ */
.xo-holding, .xo-error {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Georgia', serif;
    max-width: 680px;
    margin: 0 auto;
}
.xo-holding-logo { margin-bottom: 24px; }
.xo-holding-logo img { max-width: 160px; height: auto; }
.xo-holding-title    { font-size: 42px; color: var(--purple); margin-bottom: 8px; font-weight: 700; }
.xo-holding-tagline  { font-size: 20px; color: var(--gold); font-style: italic; margin-bottom: 28px; }
.xo-holding-desc     { font-size: 16px; color: var(--dark); line-height: 1.8; margin-bottom: 16px; }
.xo-holding-subdesc  { font-size: 15px; color: var(--purple); margin-bottom: 32px; line-height: 1.6; }
.xo-holding-btn {
    display: inline-block;
    background: var(--purple);
    color: white !important;
    padding: 16px 48px;
    font-family: 'Georgia', serif;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none !important;
    margin-bottom: 20px;
    transition: background 0.2s ease;
}
.xo-holding-btn:hover { background: #2d1755; color: white !important; }
.xo-holding-note { font-size: 13px; color: #888; font-style: italic; margin-top: 16px; }
.xo-error p { color: #c00; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — tablets and up get slightly wider items
══════════════════════════════════════════════════ */
@media (min-width: 600px) {
    .xo-quiz-wrap { padding: 24px 20px; }
    .xo-quality-item { font-size: 15px; padding: 15px 20px; }
    .xo-intro-header h1 { font-size: 34px; }
}

@media (min-width: 780px) {
    .xo-quiz-wrap { padding: 30px 20px; }
}
/* ══════════════════════════════════════════════════
   MOBILE SPECIFICITY FIX (Astra override)
══════════════════════════════════════════════════ */
.xo-progress-wrap .xo-progress-text {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.xo-progress-wrap .xo-progress-bar-track {
    display: block !important;
    height: 8px !important;
}
.xo-progress-wrap .xo-sel-count {
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
}
.xo-card-instruction {
    background: #EDE8F5 !important;
    border-left: 4px solid #3B1F6E !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
}
/* ══════════════════════════════════════════════════
   INSTRUCTION MODAL
══════════════════════════════════════════════════ */
.xo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 20, 50, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.xo-modal-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    font-family: 'Georgia', serif;
    box-shadow: 0 8px 32px rgba(59, 31, 110, 0.3);
    border-top: 4px solid #3B1F6E;
}
.xo-modal-box h2 {
    color: #3B1F6E;
    font-size: 20px;
    margin: 0 0 18px;
}
.xo-modal-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #1A1A1A;
    margin: 0 0 14px;
}
.xo-modal-box strong {
    color: #3B1F6E;
}
.xo-modal-box .xo-modal-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
}
.xo-modal-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    background: #3B1F6E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.xo-modal-btn:hover {
    background: #2d1755;
}