/* /Components/Layout/SuggestCaseLayout.razor.rz.scp.css */
/* Iframe-optimized layout styling for Crime Junkie integration */

.iframe-optimized-layout[b-x00fibn7vd] {
    min-height: 100vh;
    background: transparent;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #c8c4d4; /* was #333 (1.5:1 on dark bg — catastrophic fail); now ~10:1 */
    margin: 0;
    padding: 0;
}

/* Reset any inherited styles that might interfere with iframe embedding */
.iframe-optimized-layout *[b-x00fibn7vd] {
    box-sizing: border-box;
}

/* Ensure proper typography inheritance */
.iframe-optimized-layout h1[b-x00fibn7vd],
.iframe-optimized-layout h2[b-x00fibn7vd],
.iframe-optimized-layout h3[b-x00fibn7vd],
.iframe-optimized-layout h4[b-x00fibn7vd],
.iframe-optimized-layout h5[b-x00fibn7vd],
.iframe-optimized-layout h6[b-x00fibn7vd] {
    margin-top: 0;
    font-weight: 600;
    color: #eceaf5; /* was #2c3e50 (1.7:1 on dark bg — catastrophic fail); now ~16:1 */
    line-height: 1.2;
}

.iframe-optimized-layout p[b-x00fibn7vd] {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Ensure buttons inherit proper styling */
.iframe-optimized-layout button[b-x00fibn7vd] {
    font-family: inherit;
}

/* Ensure form elements inherit proper styling */
.iframe-optimized-layout input[b-x00fibn7vd],
.iframe-optimized-layout textarea[b-x00fibn7vd],
.iframe-optimized-layout select[b-x00fibn7vd] {
    font-family: inherit;
}

/* Remove any default margins/padding that might cause spacing issues */
.iframe-optimized-layout[b-x00fibn7vd] {
    margin: 0;
    padding: 0;
}

/* Ensure the layout works well in different iframe contexts */
@media (max-width: 768px) {
    .iframe-optimized-layout[b-x00fibn7vd] {
        padding: 0;
    }
}

/* Ensure proper focus states for accessibility */
.iframe-optimized-layout *:focus[b-x00fibn7vd] {
    outline: 2px solid #a87ee8; /* was #007bff (3.1:1 — barely passes); now ~6.1:1 on dark bg */
    outline-offset: 2px;
}

/* Ensure proper contrast for accessibility */
.iframe-optimized-layout[b-x00fibn7vd] {
    color-scheme: light;
} 
/* /Components/Pages/SuggestCase.razor.rz.scp.css */
/* Crime Junkie-inspired form styling for iframe embedding */
body[b-z16spdce0i] {
    background: #0d0d11;
}
.crime-junkie-form-container[b-z16spdce0i] {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0d0d11;
    color: #c8c4d4; /* was #333 (1.5:1 on dark bg — catastrophic fail) → now ~10:1 */
}

/* Form Header */
.form-header[b-z16spdce0i] {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.form-header h1[b-z16spdce0i] {
    color: #8A4DE1; /* Large text (35px) — 3.8:1 passes large text AA (3:1) */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.form-description[b-z16spdce0i] {
    color: #d4d0e0; /* was #ffffff (19:1 — harsh); now ~11:1, accessible and comfortable */
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress Indicator */
.form-progress[b-z16spdce0i] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-step[b-z16spdce0i] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active[b-z16spdce0i] {
    opacity: 1;
}

.step-number[b-z16spdce0i] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #4a5568; /* was #6c757d (3.96:1 on #e9ecef — fails); now ~6.4:1 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number[b-z16spdce0i] {
    background-color: #8A4DE1;
    color: white; /* white on #8A4DE1 = 4.97:1 ✓ */
}

.step-label[b-z16spdce0i] {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9aa3ac; /* was #6c757d (4.04:1 — fails); now ~7.4:1 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-label[b-z16spdce0i] {
    color: #a87ee8; /* was #8A4DE1 (3.8:1 — fails small text); now ~6.1:1 */
}

.progress-line[b-z16spdce0i] {
    width: 60px;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.progress-line.active[b-z16spdce0i] {
    background-color: #8A4DE1;
}

/* Form Steps */
.form-step[b-z16spdce0i] {
    background: #0d0d11;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0 1rem 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #333;
}

.form-step h2[b-z16spdce0i] {
    color: #eceaf5; /* was #ffffff (19:1 — harsh); now ~16:1, accessible and comfortable */
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-description[b-z16spdce0i] {
    color: #d4d0e0; /* was #ffffff (19:1 — harsh); now ~11:1 */
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.step-navigation[b-z16spdce0i] {
    margin-bottom: 1.5rem;
}

/* Form Styling */
.crime-junkie-form[b-z16spdce0i] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group[b-z16spdce0i] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label[b-z16spdce0i] {
    font-weight: 600;
    color: #e8e4f0; /* was #ffffff (19:1 — harsh); now ~14:1 */
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.form-control[b-z16spdce0i] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #1a1a1a;
    color: #e0dcea; /* was #ffffff (harsh); now ~13:1 on #1a1a1a */
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus[b-z16spdce0i] {
    outline: none;
    border-color: #8A4DE1;
    box-shadow: 0 0 0 3px rgba(138, 77, 225, 0.1);
}

.form-control[b-z16spdce0i]::placeholder {
    color: #888888; /* 4.89:1 on #1a1a1a ✓ */
    opacity: 1;
}

textarea.form-control[b-z16spdce0i] {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Link Input Group */
.link-input-group[b-z16spdce0i] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.link-input-group .form-control[b-z16spdce0i] {
    flex: 1;
}

.links-list[b-z16spdce0i] {
    margin-top: 1rem;
}

.link-item[b-z16spdce0i] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid #333;
}

.link-text[b-z16spdce0i] {
    font-size: 0.9rem;
    color: #cccccc; /* 10.8:1 on #1a1a1a ✓ */
    word-break: break-all;
    flex: 1;
    margin-right: 1rem;
}

.remove-link[b-z16spdce0i] {
    color: #f87171; /* was #dc3545 (3.84:1 — fails); now ~6.3:1 on #1a1a1a */
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.remove-link:hover[b-z16spdce0i] {
    color: #fca5a5; /* lighter on hover for dark theme */
}

/* Radio Buttons */
.radio-group[b-z16spdce0i] {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label[b-z16spdce0i] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #cccccc; /* 10.8:1 on #0d0d11 ✓ */
    cursor: pointer;
    padding: 0.5rem 0;
}

.radio-label input[type="radio"][b-z16spdce0i] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #8A4DE1;
    cursor: pointer;
}

.radio-label span[b-z16spdce0i] {
    cursor: pointer;
}

/* Error Messages */
.error-message[b-z16spdce0i] {
    color: #f87171; /* was #dc3545 (3.84:1 on dark — fails); now ~6.3:1 */
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Alert styling */
.alert[b-z16spdce0i] {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    position: relative;
}

.alert-danger[b-z16spdce0i] {
    color: #f87171; /* was #721c24 (~1.6:1 on near-black — catastrophic fail); now ~6.3:1 */
    background-color: rgba(200, 30, 45, 0.15);
    border-color: rgba(200, 30, 45, 0.45);
}

.alert strong[b-z16spdce0i] {
    font-weight: 600;
}

.btn-close[b-z16spdce0i] {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #f87171; /* was #000 opacity 0.5 (invisible on dark bg); now accessible */
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover[b-z16spdce0i] {
    opacity: 1;
}

.validation-message[b-z16spdce0i] {
    color: #f87171; /* was #dc3545 (3.84:1 — fails); now ~6.3:1 */
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.validation-summary-errors[b-z16spdce0i] {
    background-color: rgba(200, 30, 45, 0.15); /* was #f8d7da (jarring light box on dark theme) */
    border: 1px solid rgba(200, 30, 45, 0.45);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #f87171; /* was #721c24 (~1.6:1 on effective dark bg — catastrophic fail); now ~6.3:1 */
}

.validation-summary-errors ul[b-z16spdce0i] {
    margin: 0;
    padding-left: 1.5rem;
}

.validation-summary-errors li[b-z16spdce0i] {
    margin-bottom: 0.25rem;
}

/* Buttons - Crime Junkie Pink Theme */
.btn[b-z16spdce0i] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
    min-width: 140px;
    gap: 0.5rem;
}

.btn-primary[b-z16spdce0i] {
    background-color: #8A4DE1;
    color: white; /* white on #8A4DE1 = 4.97:1 ✓ */
}

.btn-primary:hover:not(:disabled)[b-z16spdce0i] {
    background-color: #6b21a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 77, 225, 0.3);
}

.btn-primary:disabled[b-z16spdce0i] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary[b-z16spdce0i] {
    background-color: #6c757d;
    color: white; /* white on #6c757d = 4.68:1 ✓ */
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover[b-z16spdce0i] {
    background-color: #5a6268; /* white on #5a6268 = 6.21:1 ✓ */
}

.btn-outline[b-z16spdce0i] {
    background-color: transparent;
    color: #9aa3ac; /* was #6c757d (4.04:1 — fails); now ~7.4:1 on dark bg */
    border: 2px solid #9aa3ac;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-outline:hover[b-z16spdce0i] {
    background-color: #9aa3ac;
    color: #0d0d11; /* dark text on #9aa3ac = 7.39:1 ✓ */
}

.btn-link[b-z16spdce0i] {
    background: none;
    border: none;
    color: #a87ee8; /* was #8A4DE1 (3.8:1 — fails small text); now ~6.1:1 */
    text-decoration: underline;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.btn-link:hover[b-z16spdce0i] {
    color: #9966d8; /* was #6b21a8 (2.17:1 — fails); now ~4.7:1 */
}

/* Form Actions */
.form-actions[b-z16spdce0i] {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    text-align: center;
}

/* Confirmation Page */
.confirmation-container[b-z16spdce0i] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.confirmation-card[b-z16spdce0i] {
    background: #0d0d11;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid #333;
}

.confirmation-icon[b-z16spdce0i] {
    width: 80px;
    height: 80px;
    background-color: #198754;
    color: white; /* white on #198754 = 4.54:1 ✓ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.confirmation-card h2[b-z16spdce0i] {
    color: #eceaf5; /* was #ffffff (harsh); now ~16:1, comfortable */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirmation-card p[b-z16spdce0i] {
    color: #cccccc; /* 10.8:1 on #0d0d11 ✓ */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.confirmation-email[b-z16spdce0i] {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #8A4DE1;
    font-weight: 600;
    color: #cccccc; /* 10.8:1 on #1a1a1a ✓ */
    margin-top: 1.5rem;
}

/* Loading Spinner */
.spinner-border[b-z16spdce0i] {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border-b-z16spdce0i 0.75s linear infinite;
}

.spinner-border-sm[b-z16spdce0i] {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.1em;
}

@keyframes spinner-border-b-z16spdce0i {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header h1[b-z16spdce0i] {
        font-size: 1.8rem;
    }

    .form-description[b-z16spdce0i] {
        font-size: 1rem;
    }

    .form-step[b-z16spdce0i] {
        padding: 1.5rem;
        margin: 0 0.5rem 1.5rem;
    }

    .form-step h2[b-z16spdce0i] {
        font-size: 1.5rem;
    }

    .progress-line[b-z16spdce0i] {
        width: 40px;
    }

    .step-number[b-z16spdce0i] {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .radio-group[b-z16spdce0i] {
        flex-direction: column;
        gap: 1rem;
    }

    .link-input-group[b-z16spdce0i] {
        flex-direction: column;
        gap: 0.75rem;
    }

    .confirmation-card[b-z16spdce0i] {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .form-header[b-z16spdce0i] {
        padding: 0 0.5rem;
    }

    .form-step[b-z16spdce0i] {
        padding: 1rem;
        margin: 0 0.25rem 1rem;
    }

    .btn[b-z16spdce0i] {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .progress-line[b-z16spdce0i] {
        width: 30px;
    }

    .step-number[b-z16spdce0i] {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-label[b-z16spdce0i] {
        font-size: 0.8rem;
    }
}

/* Iframe-specific optimizations */
@media (max-height: 600px) {
    .form-header[b-z16spdce0i] {
        margin-bottom: 1rem;
    }

    .form-progress[b-z16spdce0i] {
        margin-bottom: 1rem;
    }

    .form-step[b-z16spdce0i] {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .step-description[b-z16spdce0i] {
        margin-bottom: 1.5rem;
    }

    .form-actions[b-z16spdce0i] {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}
