/* =========================================================
   DARK TOOL TEXTAREAS
========================================================= */

.tool-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    box-sizing: border-box;
    resize: vertical;
    appearance: none;
    -webkit-appearance: none;
    background: #0a1116;
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: var(--radius-md);
    color: #aab5bd;
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.65;
    outline: none;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .25);
    transition:
        border-color .2s var(--ease),
        box-shadow .2s var(--ease),
        background .2s var(--ease);
}

.tool-textarea::placeholder {
    color: #737f89;
    opacity: 1;
}

.tool-textarea:hover {
    border-color: rgba(52, 211, 153, .42);
}

.tool-textarea:focus {
    background: #080e13;
    border-color: var(--green-1);
    box-shadow:
        0 0 0 2px rgba(52, 211, 153, .08),
        inset 0 0 18px rgba(0, 0, 0, .3);
}

/* =========================================================
   STAGE TYPOGRAPHY — QUESTIONS & INSTRUCTIONS
========================================================= */

.stage-title {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.stage-instruction {
    width: 100%;
    max-width: 670px;
    min-width: 0;
    margin: 0 auto 20px;
    padding-bottom: 14px;
    font-family: var(--font);
    font-size: clamp(.9rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: -.01em;
    line-height: 1.55;
    color: var(--muted);
    text-align: left;
    border-bottom: 1px solid rgba(167, 139, 250, .10);
    overflow-wrap: anywhere;
    word-break: normal;
}

.field-label {
    display: block;
    margin: 7px 0 3px 0;
    color: var(--text);
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

/* =========================================================
   FINAL REFLECTION — SUMMARY READABILITY
========================================================= */

#summary-content .summary-section > h3 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    color: var(--green-1);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid rgba(52, 211, 153, 0.20);
}

#summary-content .summary-section p strong {
    display: block;
    margin-bottom: 5px;
    color: var(--purple-1);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.015em;
}

#summary-content .summary-section p {
    margin: 0 0 16px;
    color: #aab5bd;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#summary-content .summary-section {
    margin: 0 0 24px;
    padding: 20px;
    background: rgba(10, 17, 22, 0.55);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green-1);
    border-radius: var(--radius-md);
}

#summary-content .summary-section p:last-child {
    margin-bottom: 0;
}

#summary-content .summary-section p.highlight {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(167, 139, 250, 0.07);
    border-left: 2px solid var(--purple-1);
    border-radius: 6px;
}

#summary-content .summary-section p.highlight strong {
    color: var(--green-2);
}

@media (max-width: 480px) {
    #summary-content .summary-section {
        padding: 16px 14px;
        margin-bottom: 18px;
    }

    #summary-content .summary-section > h3 {
        font-size: 0.98rem;
    }

    #summary-content .summary-section p {
        font-size: 0.88rem;
        line-height: 1.7;
    }
}


#stage1 .tool-cards.ow-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
}

#stage1 .tool-cards.ow-cards > .ow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 14px 8px;
    gap: 8px;
    text-align: center;
}

#stage1 .ow-card strong {
    font-size: clamp(10px, 1.5vw, 16px);
    font-weight: 700;
}

#stage1 .ow-card span {
    font-size: clamp(9px, 1.3vw, 14px);
    font-style: italic;
    color: var(--green-2);
}

#stage1 .ow-card small {
    font-size: clamp(8px, 1.1vw, 12px);
    line-height: 1.45;
    color: var(--muted);
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    #stage1 .tool-cards.ow-cards {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #stage1 .tool-cards.ow-cards {
        gap: 6px;
    }

    #stage1 .tool-cards.ow-cards > .ow-card {
        padding: 10px 4px;
    }

    #stage1 .ow-card strong { font-size: 10px; }
    #stage1 .ow-card span { font-size: 9px; }
    #stage1 .ow-card small { font-size: 8px; line-height: 1.35; }
}

/* Fade animation */
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Responsive adjustments */
@media (max-width:768px) {
    .stage { padding:20px 25px; }
    .stage-actions { flex-direction:column; align-items:stretch; }
    .btn-next, .btn-goback { width:100%; text-align:center; margin:5px 0; }
    .progress-step { width:35px; height:35px; font-size:0.85rem; }
    .progress-connector { width:40px; }
}
