/* ==========================================================================
   Coaching Snapshot Assessment — Public Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
.ccs-wrap,
.ccs-result-wrap {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.ccs-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 56px 0 48px;
    text-align: center;
    color: #fff;
}
.ccs-hero-inner {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}
.ccs-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    color: #fff;
}
.ccs-subtitle {
    font-size: 1rem;
    opacity: .85;
    margin: 0 0 36px;
}

/* ── Scale bar (desktop) ─────────────────────────────────────────────────── */
.ccs-scale-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
}
.ccs-scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 60px;
    max-width: 90px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 10px 6px 14px;
    transition: background .2s;
    box-sizing: border-box;
}
.ccs-scale-item:hover { background: rgba(255,255,255,.15); }
.ccs-scale-num {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.ccs-scale-label {
    font-size: .62rem;
    opacity: .75;
    text-align: center;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .2px;
    line-height: 1.35;
}

/* ── Sticky progress bar ──────────────────────────────────────────────────── */
.ccs-progress-sticky {
    position: sticky;
    top: 0;
    z-index: 10;     /* stay BELOW the site nav/menu drawer (which is 999+) */
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ccs-progress-inner {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ccs-progress-label {
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.ccs-progress-track {
    flex: 1;
    height: 6px;
    background: #e8eaf0;
    border-radius: 99px;
    overflow: hidden;
}
.ccs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 99px;
    transition: width .4s ease;
}
.ccs-progress-pct {
    font-size: .8rem;
    font-weight: 600;
    color: #3b82f6;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.ccs-form {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 60px;
}

/* Name row */
.ccs-name-row {
    padding: 36px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ccs-name-label {
    font-weight: 600;
    font-size: .9rem;
    color: #374151;
}
.ccs-name-label .ccs-required { color: #ef4444; }
.ccs-name-input {
    max-width: 400px;
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ccs-name-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Section header */
.ccs-section { margin-top: 28px; padding-top: 4px; }
/* Section titles removed in this plugin: questions flow as one continuous list */
.ccs-section + .ccs-section { margin-top: 0; padding-top: 0; }
.ccs-section + .ccs-section .ccs-question:first-child { border-top: 1px solid #e8eaf0; }
.ccs-section-header {
    background: linear-gradient(135deg, #0f3460, #1a4a7a);
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.ccs-section-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

/* Question card */
.ccs-question {
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    border-radius: 0;
    padding: 18px 0;
    margin-bottom: 0;
    transition: background .15s;
}
.ccs-question:last-child { border-bottom: none; }
.ccs-question.ccs-answered { background: #f8fffe; }
.ccs-question-text {
    font-size: .92rem;
    font-weight: 700;
    color: #0f3460;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Options — flat inline radio style */
.ccs-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
}
.ccs-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 0;
    border: none;
    border-radius: 0;
    background: none;
    position: relative;
    white-space: nowrap;
    transition: color .15s;
}
.ccs-option input[type="radio"] {
    position: static;
    opacity: 1;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #0f3460;
    flex-shrink: 0;
}
.ccs-option-num { display: none; }
.ccs-option-label {
    font-size: .82rem;
    font-weight: 500;
    color: #374151;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
}
.ccs-option:hover .ccs-option-label { color: #0f3460; }
.ccs-option.ccs-selected .ccs-option-label { color: #0f3460; font-weight: 700; }

/* Submit row */
.ccs-submit-row { text-align: center; padding-top: 32px; }
.ccs-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .9rem;
}
.ccs-btn-submit {
    background: linear-gradient(135deg, #0f3460, #3b82f6);
    color: #fff;
    border: none;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: .5px;
    transition: opacity .2s, transform .1s;
}
.ccs-btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.ccs-btn-submit:active { transform: translateY(0); }
.ccs-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Overlay */
.ccs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,52,96,.75);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 20px;
}
.ccs-overlay p { font-size: 1.1rem; font-weight: 600; }
.ccs-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ccs-spin .8s linear infinite;
}
@keyframes ccs-spin { to { transform: rotate(360deg); } }

/* ── Result Page ──────────────────────────────────────────────────────────── */
.ccs-result-wrap {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 80px;
}
.ccs-result-header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
    padding: 52px 36px;
    border-radius: 14px;
    margin-bottom: 28px;
    margin-top: 36px;
}
.ccs-result-header h1 { font-size: 2rem; margin: 0 0 12px; color: #fff; }
.ccs-result-intro { font-size: .95rem; opacity: .85; margin: 0; max-width: 620px; line-height: 1.65; }

/* Overall score card */
.ccs-overall-card {
    background: #fff;
    border: 1.5px solid #e8eaf0;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.ccs-overall-score {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.ccs-score-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.ccs-score-circle.ccs-bar-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ccs-score-circle.ccs-bar-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ccs-score-circle.ccs-bar-red    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.ccs-score-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.ccs-score-denom { font-size: .7rem; opacity: .8; }
.ccs-score-meta h2 { margin: 0 0 4px; font-size: 1.1rem; color: #1e293b; }
.ccs-pct { font-size: 2rem; font-weight: 800; color: #3b82f6; margin: 0; }

.ccs-section-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
.ccs-pill {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    border-radius: 10px;
    min-width: 140px;
    flex: 1;
}
.ccs-pill.ccs-bar-green  { background: #f0fdf4; border: 1.5px solid #86efac; }
.ccs-pill.ccs-bar-yellow { background: #fffbeb; border: 1.5px solid #fde68a; }
.ccs-pill.ccs-bar-red    { background: #fef2f2; border: 1.5px solid #fecaca; }
.ccs-pill-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; }
.ccs-pill-score { font-size: 1.4rem; font-weight: 800; }
.ccs-bar-green  .ccs-pill-score { color: #16a34a; }
.ccs-bar-yellow .ccs-pill-score { color: #d97706; }
.ccs-bar-red    .ccs-pill-score { color: #dc2626; }

/* Detailed table */
.ccs-section-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0f3460;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eaf0;
}
.ccs-table-scroll { overflow-x: auto; }
.ccs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ccs-table th {
    background: #0f3460;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ccs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.ccs-table tr:hover td { background: #f8fafc; }
.ccs-competency-cell {
    font-weight: 700;
    color: #0f3460;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    vertical-align: top !important;
    padding-top: 16px !important;
    white-space: nowrap;
}
.ccs-score-cell { font-weight: 700; text-align: center; width: 60px; }
.ccs-bar-cell { width: 200px; min-width: 140px; }
.ccs-bar-track { height: 10px; background: #e8eaf0; border-radius: 99px; overflow: hidden; }
.ccs-bar-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.ccs-bar-fill.ccs-bar-green  { background: linear-gradient(90deg, #22c55e, #16a34a); }
.ccs-bar-fill.ccs-bar-yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ccs-bar-fill.ccs-bar-red    { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Legend table */
.ccs-legend-wrap { margin-top: 32px; }
.ccs-legend-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ccs-legend-table th {
    background: #f8fafc;
    color: #374151;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}
.ccs-legend-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}
.ccs-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.ccs-dot.ccs-bar-green  { background: #22c55e; }
.ccs-dot.ccs-bar-yellow { background: #f59e0b; }
.ccs-dot.ccs-bar-red    { background: #ef4444; }

/* Notice */
.ccs-notice {
    background: #fef9c3;
    border: 1px solid #fde047;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .95rem;
    color: #713f12;
    margin: 24px 0;
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE  ≤ 640px
   Scale bar: numbers-only compact row + legend strip below.
   Labels hidden inside cards (too long to fit); shown in a clean
   legend row underneath so the user still sees what each number means.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ── Hero ── */
    .ccs-hero { padding: 28px 0 20px; }
    .ccs-hero-inner { padding: 0 14px; }
    .ccs-title { font-size: 1.4rem; letter-spacing: -.2px; }
    .ccs-subtitle { font-size: .84rem; margin-bottom: 18px; line-height: 1.55; }

    /* Scale bar: 4 cards row 1, 3 cards row 2 — labels inside each card */
    .ccs-scale-bar {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    .ccs-scale-item {
        flex: 0 0 calc(25% - 5px);
        min-width: 0;
        max-width: none;
        padding: 10px 6px 12px;
        border-radius: 8px;
        align-items: center;
        justify-content: flex-start;
    }
    .ccs-scale-item:nth-child(5),
    .ccs-scale-item:nth-child(6),
    .ccs-scale-item:nth-child(7) {
        flex: 0 0 calc(33.333% - 5px);
    }
    .ccs-scale-num {
        font-size: 1.3rem;
        font-weight: 700;
    }
    .ccs-scale-label {
        display: block;
        font-size: .6rem;
        line-height: 1.3;
        margin-top: 5px;
        letter-spacing: .2px;
        hyphens: none;
        word-break: normal;
    }


    /* ── Progress bar ── */
    .ccs-progress-inner { padding: 0 14px; }
    .ccs-progress-label { font-size: .67rem; }
    .ccs-progress-pct { font-size: .75rem; min-width: 44px; }

    /* ── Form ── */
    .ccs-form { padding: 0 14px 60px; }
    .ccs-name-row { padding: 22px 0 16px; }
    .ccs-name-input { max-width: 100%; font-size: .9rem; }
    .ccs-section { margin-top: 20px; }
    .ccs-section-header { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; }
    .ccs-section-header h2 { font-size: .84rem; letter-spacing: .8px; }
    .ccs-question { padding: 14px 0; }
    .ccs-question-text { font-size: .83rem; margin-bottom: 10px; line-height: 1.5; }

    /* Radio options — wrap cleanly, readable size */
    .ccs-options { gap: 6px 14px; flex-wrap: wrap; align-items: center; }
    .ccs-option { white-space: normal; padding: 3px 0; }
    .ccs-option input[type="radio"] { width: 15px; height: 15px; }
    .ccs-option-label { font-size: .78rem; }

    .ccs-btn-submit { width: 100%; font-size: .92rem; padding: 14px 24px; }

    /* ── Result page ── */
    .ccs-result-wrap { padding: 0 14px 60px; }
    .ccs-result-header { padding: 26px 16px; border-radius: 10px; margin-top: 18px; margin-bottom: 16px; }
    .ccs-result-header h1 { font-size: 1.35rem; margin-bottom: 8px; }
    .ccs-result-intro { font-size: .82rem; }
    .ccs-overall-card { flex-direction: column; padding: 18px 14px; gap: 16px; border-radius: 10px; margin-bottom: 20px; }
    .ccs-score-circle { width: 76px; height: 76px; }
    .ccs-score-num { font-size: 1.4rem; }
    .ccs-pct { font-size: 1.55rem; }
    .ccs-score-meta h2 { font-size: .92rem; }
    .ccs-section-pills { gap: 8px; }
    .ccs-pill { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); padding: 10px 12px; }
    .ccs-pill-label { font-size: .62rem; }
    .ccs-pill-score { font-size: 1.2rem; }
    .ccs-section-heading { font-size: .85rem; margin: 20px 0 10px; }
    .ccs-table-scroll { -webkit-overflow-scrolling: touch; }
    .ccs-table { font-size: .76rem; }
    .ccs-table th { padding: 9px 8px; font-size: .68rem; }
    .ccs-table td { padding: 9px 8px; }
    .ccs-competency-cell { font-size: .68rem; white-space: normal; }
    .ccs-bar-cell { min-width: 90px; width: 90px; }
    .ccs-legend-wrap { margin-top: 18px; }
    .ccs-legend-table { font-size: .76rem; }
    .ccs-legend-table th { padding: 8px; font-size: .68rem; }
    .ccs-legend-table td { padding: 9px 8px; }
}

/* Legend strip hidden on desktop */

/* ── Result Header: flex row for title + PDF button ──────────────────────── */
.ccs-result-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.ccs-result-header-text { flex: 1; min-width: 0; }

/* ── Download Your Report Button ─────────────────────────────────────────── */
.ccs-pdf-btn-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
}
.ccs-btn-pdf {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px 13px 20px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: .2px;
    box-shadow: 0 4px 16px rgba(211,84,0,.40), 0 1px 4px rgba(0,0,0,.15);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
.ccs-btn-pdf::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: rgba(255,255,255,.10);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}
.ccs-btn-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    flex-shrink: 0;
    transition: background .15s ease;
}
.ccs-btn-pdf-icon svg { display: block; transition: transform .2s ease; }
.ccs-btn-pdf-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.ccs-btn-pdf-label { font-size: .72rem; font-weight: 500; opacity: .82; text-transform: uppercase; letter-spacing: .6px; }
.ccs-btn-pdf-title { font-size: .95rem; font-weight: 800; letter-spacing: .1px; }
.ccs-btn-pdf:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211,84,0,.45), 0 2px 6px rgba(0,0,0,.18);
    text-decoration: none;
    color: #ffffff;
}
.ccs-btn-pdf:hover .ccs-btn-pdf-icon { background: rgba(255,255,255,.28); }
.ccs-btn-pdf:hover .ccs-btn-pdf-icon svg { transform: translateY(2px); }
.ccs-btn-pdf:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(211,84,0,.35); }

/* ── Mobile — PDF button ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ccs-result-header-inner { flex-direction: column; gap: 18px; }
    .ccs-pdf-btn-wrap { width: 100%; }
    .ccs-btn-pdf { width: 100%; justify-content: center; padding: 14px 10px; }
}
