/* Intake Form Simplified Header */
.intake-container {
    min-height: calc(100vh - 74px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f5 100%);
    padding: 2.5rem 1rem 3rem;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.intake-container::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(77, 212, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.intake-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.intake-progress {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 20rem;
    margin: 0 auto;
}

.progress-step {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.step-bar {
    height: 4px;
    width: 100%;
    background: #d4e4f0;
    position: relative;
}

.progress-step.completed .step-bar {
    background: var(--color-primary);
}

.progress-step.active .step-bar {
    background: var(--color-primary);
}

.step-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #d4e4f0;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.progress-step.completed .step-number {
    background: var(--color-primary);
    color: white;
}

.progress-step.active .step-number {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(44, 83, 100, 0.1);
}

.progress-step:first-child .step-bar {
    border-radius: 4px 0 0 4px;
}

.progress-step:last-child .step-bar {
    border-radius: 0 4px 4px 0;
}

.intake-card {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(44, 83, 100, 0.08);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.intake-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(44, 83, 100, 0.1);
}

.intake-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.intake-subtitle {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.6;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: -0.5rem;
}

.form-help-text {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(44, 83, 100, 0.06);
}

.form-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.5;
    margin-top: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 0.25rem;
    font-style: italic;
    line-height: 1.4;
}

.question-number {
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 700;
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: #f8fafb;
    border: 1px solid #d4e4f0;
    border-radius: 8px;
    box-sizing: border-box;
}

select.form-input {
    appearance: none;
    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='%236b8fa3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface);
}

.form-input::placeholder {
    color: var(--color-muted);
    opacity: 0.7;
}

.form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: #f8fafb;
    border: 1px solid #d4e4f0;
    border-radius: 8px;
    resize: vertical;
    min-height: 3rem;
    box-sizing: border-box;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.form-textarea::placeholder {
    color: var(--color-muted);
    opacity: 0.7;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 12rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: #f8fafb;
    border: 2px solid #d4e4f0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.radio-option:hover {
    background: #f0f6fa;
    border-color: #b8d4e8;
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: var(--color-primary);
}

.radio-option:has(input:checked) {
    background: #e8f4f8;
    border-color: var(--color-primary);
}

.radio-label {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
    cursor: pointer;
}

.conditional-field {
    margin-top: 0.75rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 83, 100, 0.08);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: 24px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: #516b81;
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border-color: #d4e4f0;
}

.btn-secondary:hover {
    background: #f8fafb;
    border-color: #b8d4e8;
}

.btn-icon {
    font-size: 16px;
}

.privacy-notice {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-primary);
    border-radius: 12px;
    color: white;
}

.privacy-icon {
    flex-shrink: 0;
    color: var(--color-accent-teal);
}

.privacy-content {
    flex: 1;
}

.privacy-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.privacy-text {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .intake-container {
        padding: 1.5rem 0.75rem 2rem;
    }

    .intake-card {
        padding: 1.5rem 1.25rem;
        border-radius: 8px;
    }

    .intake-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .intake-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .intake-subtitle {
        font-size: 13px;
    }

    .form-label {
        font-size: 14px;
        line-height: 1.4;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-option {
        min-width: 100%;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .radio-label {
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.85rem 1rem;
        white-space: normal;
        text-align: center;
    }

    .btn-icon {
        display: none;
    }

    .privacy-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .privacy-icon {
        margin: 0 auto;
    }

    .privacy-title {
        font-size: 15px;
    }

    .privacy-text {
        font-size: 12px;
    }
}

/* Loading state */
.prefill-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(44, 83, 100, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.prefill-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #c0392b;
    font-size: 14px;
    text-align: center;
}

/* Pre-fill summary card */
.prefill-card {
    background: var(--color-surface);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(44, 83, 100, 0.07);
    margin-bottom: 1rem;
    overflow: hidden;
}

.prefill-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: rgba(44, 83, 100, 0.04);
    border: none;
    border-bottom: 1px solid rgba(44, 83, 100, 0.08);
    cursor: pointer;
    text-align: left;
    gap: 0.75rem;
}

.prefill-card-header:hover {
    background: rgba(44, 83, 100, 0.07);
}

.prefill-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.prefill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1a7a5e;
    background: #e6f6f0;
    border: 1px solid #b2e0d0;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.prefill-header-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.prefill-toggle-icon {
    color: var(--color-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.prefill-card-body {
    display: none;
    padding: 1.1rem 1.25rem;
}

.prefill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.prefill-section {
    background: #f8fafb;
    border: 1px solid #e8f0f5;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.prefill-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.prefill-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 13px;
}

.prefill-key {
    color: var(--color-muted);
    flex-shrink: 0;
}

.prefill-value {
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
}

.prefill-med-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.prefill-onfile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #1a7a5e;
    font-weight: 500;
}

/* Full-width section inside the summary */
.prefill-section-full {
    grid-column: 1 / -1;
}

/* Q&A rows within a section */
.prefill-qa-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.prefill-qa-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
}

.prefill-qa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 13px;
}

.prefill-qa-label {
    color: var(--color-muted);
    flex: 1;
}

.prefill-qa-detail {
    display: none;
    font-size: 12px;
    color: var(--color-primary);
    background: rgba(44, 83, 100, 0.05);
    border-left: 2px solid var(--color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0.25rem;
}

/* Yes / No / N/A answer badges */
.prefill-badge-answer {
    font-size: 11px;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--color-muted);
}

.badge-yes {
    color: #1a7a5e;
    background: #e6f6f0;
    border: 1px solid #b2e0d0;
}

.badge-no {
    color: #4a6278;
    background: #eef3f7;
    border: 1px solid #d4e4f0;
}

.badge-na {
    color: #7a6a4a;
    background: #faf5e6;
    border: 1px solid #e0d4b2;
}

@media (max-width: 540px) {
    .prefill-grid {
        grid-template-columns: 1fr;
    }

    .prefill-qa-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Full-width submit button */
.btn-submit-full {
    flex: none;
    width: 100%;
    justify-content: center;
}

/* Section headers within steps */
.section-header {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--color-primary);
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    background: rgba(44, 83, 100, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
    margin-top: 1.25rem;
    margin-bottom: 0.85rem;
}

/* Smaller label for "If yes" prompts */
.form-label-sm {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
}

/* Inline hint text beside label */
.form-hint-inline {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-muted);
    font-style: italic;
}

/* Checkbox group — mirrors radio-group layout */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: #f8fafb;
    border: 2px solid #d4e4f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
    transition: background 0.15s, border-color 0.15s;
}

.checkbox-option:hover {
    background: #f0f6fa;
    border-color: #b8d4e8;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-option:has(input:checked) {
    background: #e8f4f8;
    border-color: var(--color-primary);
}

.checkbox-other-option {
    grid-column: span 2;
    flex-wrap: wrap;
}

.checkbox-label {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
}

.other-text-input {
    display: none;
    flex: 1;
    min-width: 120px;
    padding: 0.3rem 0.6rem;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid #b8d4e8;
    border-radius: 6px;
    margin-left: 0.25rem;
}

.other-text-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Dynamic table for medications / allergies */
.dynamic-table-wrapper {
    overflow-x: auto;
    padding-top: 0.25rem;
}

.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dynamic-table th {
    text-align: left;
    padding: 0.65rem 0.85rem;
    background: rgba(44, 83, 100, 0.06);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #d4e4f0;
}

.dynamic-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #eef3f7;
    vertical-align: middle;
}

.dynamic-table td:last-child {
    width: 2rem;
    text-align: center;
}

.table-input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 13px;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #f8fafb;
    border: 1px solid #d4e4f0;
    border-radius: 6px;
    box-sizing: border-box;
}

.table-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

.btn-add-row {
    margin-top: 0.6rem;
    padding: 0.45rem 1rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    border: 1.5px dashed var(--color-primary);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.8;
}

.btn-add-row:hover {
    opacity: 1;
    background: rgba(44, 83, 100, 0.04);
}

.btn-remove-row {
    padding: 0.2rem 0.45rem;
    font-size: 12px;
    color: #c0392b;
    background: transparent;
    border: 1px solid #e8c3be;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.btn-remove-row:hover {
    background: #fdecea;
}

/* Sub-questions for safety screening */
.sub-question-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f8fafb;
    border: 1px solid #d4e4f0;
    border-radius: 10px;
    overflow: hidden;
}

.sub-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(44, 83, 100, 0.07);
}

.sub-question:last-child {
    border-bottom: none;
}

.sub-question-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    min-width: 180px;
}

.radio-group-inline {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.radio-group-inline .radio-option {
    min-width: auto;
    padding: 0.4rem 0.85rem;
    flex: none;
}

/* Stacked radio options (symptom duration) */
.radio-group-stacked {
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group-stacked .radio-option {
    min-width: 100%;
}

@media (max-width: 640px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .checkbox-other-option {
        grid-column: span 1;
    }

    .sub-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .radio-group-inline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .intake-container {
        padding: 1rem 0.5rem;
    }

    .intake-card {
        padding: 1.1rem 1rem;
        border-radius: 8px;
    }

    .intake-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }

    .intake-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .intake-subtitle {
        font-size: 12px;
    }

    .form-label {
        font-size: 13px;
        margin-top: 0.75rem;
    }

    .form-hint {
        font-size: 11px;
    }

    .form-input,
    .form-textarea {
        font-size: 13px;
        padding: 0.65rem 0.85rem;
    }

    .question-number {
        display: block;
        margin-bottom: 0.25rem;
    }

    .radio-option {
        padding: 0.65rem 0.85rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 0.75rem 1rem;
    }

    .progress-label {
        font-size: 10px;
    }

    .step-number {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 10px;
    }
}

/* ─── 3-Step Review Wizard ──────────────────────────────────────────────── */

/* Step 1 — Personal Info grid */
.review-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.review-info-card {
    background: #f8fafb;
    border: 1px solid #d4e4f0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-info-card-highlight {
    background: rgba(44, 83, 100, 0.05);
    border-color: var(--color-primary);
    grid-column: span 2;
}

.review-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-muted);
}

.review-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    word-break: break-word;
}

.review-info-med {
    font-size: 18px;
}

/* Step 2 — Questionnaire review sections */
.review-section {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(44, 83, 100, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section-header {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(44, 83, 100, 0.06);
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(44, 83, 100, 0.1);
}

.review-qa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(44, 83, 100, 0.06);
    min-height: 2.5rem;
}

.review-qa-item:last-child {
    border-bottom: none;
}

.review-qa-sub {
    padding-left: 1.75rem;
    background: rgba(44, 83, 100, 0.015);
}

.review-qa-label {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.4;
    flex: 1;
}

.review-qa-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: right;
    max-width: 55%;
    word-break: break-word;
}

.review-qa-detail {
    font-size: 13px;
    color: var(--color-primary);
    background: rgba(44, 83, 100, 0.04);
    border-left: 3px solid var(--color-primary);
    padding: 0.5rem 1rem 0.5rem 1.2rem;
    margin: 0;
    border-top: none;
    display: none;
    line-height: 1.5;
}

.review-subsection-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-muted);
    padding: 0.4rem 1rem 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(44, 83, 100, 0.025);
    border-bottom: 1px solid rgba(44, 83, 100, 0.06);
}

@media (max-width: 540px) {
    .review-info-grid {
        grid-template-columns: 1fr;
    }

    .review-info-card-highlight {
        grid-column: span 1;
    }

    .review-qa-item {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .review-qa-value {
        max-width: 100%;
        text-align: left;
    }

    .review-qa-sub {
        padding-left: 1.1rem;
    }
}
