/* ═══════════════════════════════════════════
   MindMatch Assessment — v1.0.0
   ═══════════════════════════════════════════ */

.mma-wrap {
        max-width: 680px;
        margin: 0 auto;
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif !important;
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 8px 48px rgba(26,68,68,0.10), 0 2px 8px rgba(26,68,68,0.05);
        overflow: hidden;
        position: relative;
}

.mma-wrap::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2bb5ba 0%, #1a4444 100%);
        z-index: 1;
}

/* ── Condition bar (questions screen header) ── */
.mma-q-condition-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #e8f8f8 0%, #d0f0f0 100%);
        border-radius: 12px;
        padding: 0.65rem 1rem;
        margin-bottom: 1.25rem;
}
.mma-q-condition-icon {
        font-size: 1.3rem;
        line-height: 1;
}
.mma-q-condition-name {
        font-weight: 700;
        font-size: 0.95rem;
        color: #1a4444;
        flex: 1;
}
.mma-q-condition-tag {
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        background: #2bb5ba;
        color: #fff;
        border-radius: 20px;
        padding: 2px 10px;
}

/* ── Screens ── */
.mma-screen {
        display: none;
        padding: 2.5rem 2rem 2rem;
}
.mma-screen--active { display: block; }

/* Slide animations */
.mma-slide-in  { animation: mma-in  0.3s ease forwards; }
.mma-slide-out { animation: mma-out 0.3s ease forwards; }
@keyframes mma-in  { from { opacity:0; transform:translateX(30px); }  to { opacity:1; transform:none; } }
@keyframes mma-out { to   { opacity:0; transform:translateX(-30px); } }

/* ── Header ── */
.mma-header { text-align: center; margin-bottom: 1.75rem; }
.mma-icon-tile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px; height: 64px;
        border-radius: 18px;
        background: linear-gradient(135deg, #e8f8f8 0%, #d0f0f0 100%);
        font-size: 2rem;
        margin-bottom: 0.85rem;
}
.mma-title {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
        color: #1a4444 !important;
        margin: 0 0 0.35rem !important;
        padding: 0 !important;
        border: none !important;
        letter-spacing: -0.02em !important;
        line-height: 1.2 !important;
}
.mma-sub {
        font-size: 0.9rem;
        color: #6a9898;
        margin: 0;
        font-weight: 500;
}

/* ── Dropdown variant (screen 1) ── */
.mma-dd-field {
        margin: 1.5rem 0 1.75rem;
}
.mma-dd-field label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: #1a4444;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: .04em;
}
.mma-dd-select {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 40px 12px 16px !important;
        border: 2px solid #cbd5e1 !important;
        border-radius: 10px !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        height: auto !important;
        min-height: 48px !important;
        overflow: visible !important;
        color: #1a4444 !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232bb5ba' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 14px center !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        cursor: pointer !important;
        transition: border-color .2s;
        vertical-align: middle !important;
}
.mma-dd-select:focus {
        outline: none !important;
        border-color: #2bb5ba !important;
}
.mma-dd-select option {
        color: #1a4444 !important;
        background: #fff !important;
        line-height: 1.5 !important;
        padding: 6px 0 !important;
}
.mma-dd-select option[value=""] {
        color: #64748b !important;
}
.mma-dd-start {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
}
.mma-dd-start:disabled {
        opacity: .45;
        cursor: not-allowed;
}

/* ── Condition grid ── */
.mma-condition-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        margin-bottom: 1.5rem;
}
.mma-condition-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        padding: 1.25rem 1rem;
        border-radius: 16px;
        border: 2px solid #e0eded;
        background: #fff;
        cursor: pointer;
        transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
        font-family: inherit;
        text-align: center;
}
.mma-condition-card:hover {
        border-color: #2bb5ba;
        background: #f0fafa;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(43,181,186,0.12);
}
.mma-condition-card__icon { font-size: 1.75rem; line-height: 1; }
.mma-condition-card strong { font-size: 0.95rem; color: #1a4444; font-weight: 700; display: block; }
.mma-condition-card span   { font-size: 0.78rem; color: #6a9898; line-height: 1.4; }

/* ── Progress ── */
.mma-progress-wrap {
        height: 5px;
        background: #e0f0f0;
        border-radius: 99px;
        margin-bottom: 0.6rem;
        overflow: hidden;
}
.mma-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #2bb5ba, #1a4444);
        border-radius: 99px;
        transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.mma-step-counter {
        font-size: 0.75rem;
        color: #8aabab;
        text-align: right;
        margin-bottom: 1.5rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
}

/* ── Question area ── */
.mma-question-block { animation: mma-in 0.28s ease; }
.mma-question-text {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #1a4444 !important;
        margin: 0 0 1.25rem !important;
        padding: 0 !important;
        border: none !important;
        line-height: 1.4 !important;
}
.mma-answer-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
}
.mma-answer-btn {
        width: 100%;
        padding: 0.75rem 1.1rem;
        border-radius: 12px;
        border: 2px solid #e0eded;
        background: #f7fbfb;
        color: #3a6868;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.1s;
}
.mma-answer-btn:hover {
        border-color: #2bb5ba;
        background: #f0fafa;
        color: #1a4444;
}
.mma-answer-btn--selected {
        border-color: #2bb5ba;
        background: #2bb5ba;
        color: #fff;
}
.mma-answer-btn--selected::before { content: '✓  '; font-weight: 900; }

/* ── Nav ── */
.mma-q-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
}
.mma-next-btn {
        padding: 0.875rem 2.25rem;
        background: linear-gradient(135deg, #2bb5ba 0%, #1a4444 100%);
        color: #fff;
        border: none;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
        display: inline-block;
        transition: opacity 0.2s, transform 0.18s, box-shadow 0.2s;
        box-shadow: 0 6px 22px rgba(26,68,68,0.2);
        letter-spacing: -0.01em;
}
.mma-next-btn:hover {
        opacity: 0.88;
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(43,181,186,0.32);
}
.mma-next-btn--submit { width: 100%; text-align: center; margin-top: 0.5rem; }
.mma-next-btn:disabled { background: #e0eded; box-shadow: none; cursor: default; color: #8aabab; }

.mma-back-btn {
        background: none;
        border: none;
        color: #8aabab;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        padding: 0;
        transition: color 0.18s;
}
.mma-back-btn:hover { color: #1a4444; }

/* ── Lead capture form ── */
.mma-capture-form { max-width: 400px; margin: 0 auto; }
.mma-field {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
}
.mma-field label {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1a4444;
}
.mma-required { color: #e05050; }
.mma-field input[type="text"],
.mma-field input[type="email"] {
        padding: 0.75rem 1rem;
        border: 2px solid #deeaea;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        color: #1a2a2a;
        background: #f7fbfb;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
}
.mma-field input:focus {
        border-color: #2bb5ba;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(43,181,186,0.15);
}
.mma-gdpr-label {
        display: flex;
        gap: 0.6rem;
        align-items: flex-start;
        font-size: 0.82rem;
        color: #6a9898;
        cursor: pointer;
        margin-bottom: 1.25rem;
        line-height: 1.5;
}
.mma-gdpr-label input { margin-top: 2px; flex-shrink: 0; }
.mma-gdpr-label a { color: #2bb5ba; }
.mma-error {
        background: #fff0f0;
        border: 1px solid #f0c0c0;
        border-radius: 8px;
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
        color: #c04040;
        margin-bottom: 0.75rem;
}
#mma-capture-back { margin-top: 1rem; display: block; }

/* ── Results ── */
.mma-results-header {
        text-align: center;
        padding: 1rem 0 1.5rem;
}
.mma-score-ring-wrap {
        position: relative;
        width: 140px;
        height: 140px;
        margin: 0 auto 1rem;
}
.mma-score-ring {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
}
.mma-score-ring__track {
        fill: none;
        stroke: #e0f0f0;
        stroke-width: 8;
}
.mma-score-ring__fill {
        fill: none;
        stroke: #2bb5ba;
        stroke-width: 8;
        stroke-linecap: round;
        stroke-dasharray: 314;
        stroke-dashoffset: 314;
        transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1), stroke 0.6s;
}
.mma-score-ring__fill--high   { stroke: #e05050; }
.mma-score-ring__fill--medium { stroke: #f0a040; }
.mma-score-ring__fill--low    { stroke: #2bb5ba; }
.mma-score-label {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        font-weight: 900;
        color: #1a4444;
}
.mma-results-condition {
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        color: #1a4444 !important;
        margin: 0 0 0.6rem !important;
        padding: 0 !important;
        border: none !important;
        letter-spacing: -0.02em !important;
}
.mma-threshold-badge {
        display: inline-block;
        padding: 0.35rem 1rem;
        border-radius: 50px;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
}
.mma-threshold-badge--low    { background: #e8f8f8; color: #2bb5ba; }
.mma-threshold-badge--medium { background: #fff4e0; color: #c07010; }
.mma-threshold-badge--high   { background: #fff0f0; color: #c03030; }

.mma-advice-box {
        background: linear-gradient(135deg, #f0fafa 0%, #e8f4f4 100%);
        border-left: 4px solid #2bb5ba;
        border-radius: 12px;
        padding: 1.25rem 1.5rem;
        margin: 0 0 1.5rem;
        font-size: 0.95rem;
        color: #2a5050;
        line-height: 1.6;
}

.mma-cta-wrap { text-align: center; margin-bottom: 1.5rem; }

.mma-section-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: #1a4444 !important;
        margin: 0 0 1rem !important;
        padding: 0 !important;
        border: none !important;
}
.mma-therapist-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
}
.mma-therapist-card {
        border: 2px solid #e0eded;
        border-radius: 16px;
        padding: 1rem;
        text-align: center;
        text-decoration: none;
        display: block;
        transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.mma-therapist-card:hover {
        border-color: #2bb5ba;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(43,181,186,0.12);
}
.mma-therapist-card img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0.5rem;
}
.mma-therapist-card__name  { font-size: 0.9rem; font-weight: 700; color: #1a4444; display: block; margin-bottom: 0.25rem; }
.mma-therapist-card__tag   { font-size: 0.78rem; color: #6a9898; display: block; margin-bottom: 0.35rem; line-height: 1.3; }
.mma-therapist-card__loc   { font-size: 0.75rem; color: #8aabab; display: block; }
.mma-therapist-card__badge {
        display: inline-block;
        background: #e8f8f8;
        color: #2bb5ba;
        font-size: 0.7rem;
        font-weight: 700;
        border-radius: 50px;
        padding: 0.15rem 0.5rem;
        margin-top: 0.35rem;
}

.mma-disclaimer {
        font-size: 0.78rem;
        color: #8aabab;
        text-align: center;
        margin: 0 0 1rem;
        line-height: 1.5;
}
.mma-disclaimer--results {
        border-top: 1px solid #f0f0f0;
        padding-top: 1.25rem;
        margin-top: 1.5rem;
}

.mma-restart-btn {
        display: block;
        width: 100%;
        background: none;
        border: 2px solid #e0eded;
        border-radius: 50px;
        color: #6a9898;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        padding: 0.75rem;
        margin-top: 0.75rem;
        transition: border-color 0.18s, color 0.18s;
}
.mma-restart-btn:hover { border-color: #2bb5ba; color: #1a4444; }

/* ── Responsive ── */
@media (max-width: 500px) {
        .mma-screen { padding: 1.75rem 1.25rem 1.5rem; }
        .mma-condition-grid { grid-template-columns: 1fr; }
        .mma-therapist-cards { grid-template-columns: 1fr 1fr; }
}
