/* ============================================
   Interview Readiness Assessment
   ============================================ */
.readiness {
    padding: 90px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.rd-subtitle {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.82;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

#readiness-app {
    max-width: 820px;
    margin: 0 auto;
}

.rd-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.09));
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.rd-h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.6rem; }
.rd-muted { opacity: 0.7; }

/* ---- Start screen ---- */
.rd-start-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

.rd-start p.rd-muted { font-size: 0.98rem; line-height: 1.6; margin: 0 0 1.5rem; }

.rd-field { margin-bottom: 1.4rem; }

.rd-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
    margin-bottom: 0.6rem;
}

.rd-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.rd-pill {
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    transition: all 0.18s;
}
.rd-pill:hover { border-color: rgba(99, 102, 241, 0.5); }
.rd-pill.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

.rd-start-btn { margin-top: 0.5rem; }

.rd-fineprint { font-size: 0.8rem; opacity: 0.55; margin: 0.9rem 0 0; }

.rd-start-aside {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    padding: 1.4rem;
}
.rd-aside-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.85rem; }
.rd-aside-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.rd-chip {
    padding: 0.3rem 0.65rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
}
.rd-aside-note { font-size: 0.85rem; line-height: 1.5; opacity: 0.82; }

/* ---- Quiz ---- */
.rd-progress { margin-bottom: 1.6rem; }
.rd-progress-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.6rem;
}
.rd-qcount { font-size: 0.95rem; font-weight: 700; }
.rd-qtag {
    font-size: 0.8rem; font-weight: 600;
    padding: 0.25rem 0.7rem;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 100px;
}
.rd-bar {
    height: 8px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.rd-bar-fill {
    height: 100%; border-radius: 100px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transition: width 0.3s ease;
}

.rd-question {
    font-size: 1.3rem; font-weight: 700; line-height: 1.4;
    margin: 0 0 1.4rem;
}

.rd-options { display: flex; flex-direction: column; gap: 0.7rem; }

.rd-option {
    display: flex; align-items: center; gap: 0.85rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    color: inherit;
    font-size: 0.98rem;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.16s;
}
.rd-option:hover {
    border-color: rgba(99, 102, 241, 0.55);
    transform: translateX(3px);
}
.rd-option.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.12);
}
.rd-option-key {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 700; font-size: 0.85rem;
}
.rd-option.selected .rd-option-key {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent; color: #fff;
}

.rd-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 1.5rem;
}
.rd-back {
    background: none; border: none; color: inherit;
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
    opacity: 0.8; padding: 0.4rem 0;
}
.rd-back:disabled { opacity: 0.3; cursor: default; }
.rd-skip-hint { font-size: 0.85rem; }

/* ---- Results ---- */
.rd-result-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
}
.rd-score-hero { text-align: center; }
.rd-score-ring {
    width: 170px; height: 170px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 10px solid var(--ring, #6366f1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 40px -8px var(--ring, #6366f1);
}
.rd-score-num { font-size: 3rem; font-weight: 800; line-height: 1; }
.rd-score-pct { font-size: 1.4rem; opacity: 0.7; }
.rd-score-sub { display: block; font-size: 0.85rem; opacity: 0.65; margin-top: 0.35rem; }
.rd-band { font-size: 1.15rem; font-weight: 800; }

.rd-radar-wrap { display: flex; justify-content: center; }
.rd-radar-svg { width: 100%; max-width: 330px; height: auto; }

.rd-verdict {
    padding: 1.4rem 1.5rem;
    background: rgba(99, 102, 241, 0.07);
    border-left: 4px solid #6366f1;
    border-radius: 10px;
    margin-bottom: 2rem;
}
.rd-verdict-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; }
.rd-verdict p { margin: 0; font-size: 1rem; line-height: 1.6; }

.rd-skills-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.rd-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.5rem;
    margin-bottom: 2rem;
}
.rd-skill-head {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem;
}
.rd-skill-score { opacity: 0.65; }
.rd-skill-bar {
    height: 7px; border-radius: 100px;
    background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.rd-skill-fill { height: 100%; border-radius: 100px; transition: width 0.5s ease; }
.rd-skill-fill.good { background: linear-gradient(90deg, #22c55e, #84cc16); }
.rd-skill-fill.mid  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.rd-skill-fill.low  { background: linear-gradient(90deg, #ef4444, #f97316); }

.rd-cta-box {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.28);
    border-radius: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.rd-cta-text { flex: 1; min-width: 240px; }
.rd-cta-text h3 { font-size: 1.2rem; font-weight: 800; margin: 0 0 0.5rem; }
.rd-cta-text p { font-size: 0.95rem; line-height: 1.55; opacity: 0.88; margin: 0; }
.rd-cta-btn { white-space: nowrap; }

.rd-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.rd-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 100px;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem; font-weight: 600;
    color: inherit; text-decoration: none; cursor: pointer;
    transition: all 0.18s;
}
.rd-ghost:hover { border-color: rgba(99, 102, 241, 0.5); transform: translateY(-2px); }

.rd-review { border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)); padding-top: 1.25rem; }
.rd-review > summary {
    cursor: pointer; font-weight: 700; font-size: 1rem;
    list-style: none; text-align: center; opacity: 0.85;
}
.rd-review > summary::-webkit-details-marker { display: none; }
.rd-review-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

.rd-review-item {
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 0.85rem 1rem;
}
.rd-review-item.ok { border-left: 3px solid #22c55e; }
.rd-review-item.no { border-left: 3px solid #ef4444; }
.rd-review-item summary {
    cursor: pointer; font-size: 0.92rem; font-weight: 600;
    line-height: 1.4; list-style: none;
}
.rd-review-item summary::-webkit-details-marker { display: none; }
.rd-review-mark { font-weight: 800; margin-right: 0.4rem; }
.rd-review-item.ok .rd-review-mark { color: #22c55e; }
.rd-review-item.no .rd-review-mark { color: #ef4444; }
.rd-review-body { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.55; }
.rd-review-body p { margin: 0 0 0.4rem; }
.rd-review-explain { opacity: 0.72; }

/* ---- Shake (validation) ---- */
.rd-shake { animation: rdShake 0.4s ease; }
@keyframes rdShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    75% { transform: translateX(7px); }
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .rd-card { padding: 1.5rem; }
    .rd-start-grid { grid-template-columns: 1fr; }
    .rd-result-top { grid-template-columns: 1fr; }
    .rd-skills { grid-template-columns: 1fr; }
    .rd-question { font-size: 1.15rem; }
    .rd-cta-box { flex-direction: column; align-items: stretch; text-align: center; }
    .rd-cta-btn { width: 100%; justify-content: center; }
}
