/* ==========================================================================
   LoanApplicationApp - Consolidated Styles
   ========================================================================== */

/* ==========================================================================
   Base & Global Styles
   ========================================================================== */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

.home-page {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cta-buttons .btn-outline-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* ── Admin workflow builder ─────────────────────────────────────────────── */
.workflow-builder .btn {
    opacity: 1 !important;
}

.workflow-builder .card-header .btn {
    min-width: 2rem;
}

.workflow-builder .list-group-item .btn,
.workflow-builder .branch-editor .btn {
    visibility: visible !important;
    opacity: 1 !important;
}

.features-section, .how-it-works-section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2, .how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .features-grid, .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Application Start Page
   ========================================================================== */

.start-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.start-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.start-container h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.start-container .lead {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.existing-sessions {
    margin-bottom: 2rem;
}

.existing-sessions h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.session-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.session-info {
    flex: 1;
}

.session-purpose {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.session-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.session-progress {
    color: #007bff;
    font-weight: 600;
    margin-top: 0.25rem;
}

.divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #dee2e6;
    z-index: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: #6c757d;
}

.start-options {
    text-align: center;
    margin: 2rem 0;
}

.start-btn {
    padding: 1rem 3rem;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.info-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.info-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

.info-section ul {
    margin-bottom: 1rem;
}

.info-section li {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.time-estimate {
    color: #007bff;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   Application Workflow Page
   ========================================================================== */

.application-workflow {
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.workflow-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.transition-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.question-container {
    margin: 2rem 0;
    min-height: 200px;
}

.status-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-container {
    text-align: center;
    padding: 3rem 2rem;
}

.error-container p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Confirmation Page
   ========================================================================== */

.confirmation-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.confirmation-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.confirmation-container h1 {
    color: #333;
    margin-bottom: 1rem;
}

.confirmation-container p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.next-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.next-steps h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style-position: inside;
    color: #666;
}

.next-steps li {
    margin-bottom: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==========================================================================
   Progress Bar Component
   ========================================================================== */

.progress-container {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.phase-indicator {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.completion-percentage {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

.question-counter {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Navigation Buttons Component
   ========================================================================== */

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.nav-btn-group {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:not(:disabled):hover {
    background: #5a6268;
}

.btn-save {
    background: #ffc107;
    color: #212529;
}

.btn-save:hover {
    background: #e0a800;
}

.btn-next {
    background: #667eea;
    color: white;
}

.btn-next:not(:disabled):hover {
    background: #5568d3;
}

.btn-submit {
    background: #28a745;
    color: white;
}

.btn-submit:hover {
    background: #218838;
}

@media (max-width: 576px) {
    .navigation-buttons {
        flex-direction: column;
    }

    .nav-btn-group {
        justify-content: stretch;
    }

    .nav-btn {
        flex: 1;
    }
}

/* ==========================================================================
   Question Renderer Styles
   ========================================================================== */

.question-renderer {
    padding: 1rem 0;
}

.question-header {
    margin-bottom: 1.5rem;
}

.question-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.question-help-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.question-input {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Input Components - Single Choice
   ========================================================================== */

.single-choice-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-choice-option {
    position: relative;
}

.single-choice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.single-choice-label {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.single-choice-label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.single-choice-option input[type="radio"]:checked + .single-choice-label {
    border-color: #667eea;
    background: #e7f1ff;
}

.option-text {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.option-description {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Input Components - Multiple Choice
   ========================================================================== */

.multiple-choice-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.multiple-choice-option {
    position: relative;
}

.multiple-choice-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.multiple-choice-label {
    display: block;
    padding: 1rem 1.25rem;
    padding-left: 3rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.multiple-choice-label::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.multiple-choice-label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.multiple-choice-option input[type="checkbox"]:checked + .multiple-choice-label {
    border-color: #667eea;
    background: #e7f1ff;
}

.multiple-choice-option input[type="checkbox"]:checked + .multiple-choice-label::before {
    border-color: #667eea;
    background: #667eea;
}

.multiple-choice-option input[type="checkbox"]:checked + .multiple-choice-label::after {
    content: '✓';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================================================
   Input Components - Yes/No
   ========================================================================== */

.yes-no-group {
    display: flex;
    gap: 1rem;
}

.yes-no-option {
    flex: 1;
    position: relative;
}

.yes-no-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.yes-no-label {
    display: block;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-weight: 500;
    font-size: 1.1rem;
}

.yes-no-label:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.yes-no-option input[type="radio"]:checked + .yes-no-label {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.yes-icon {
    color: #28a745;
}

.no-icon {
    color: #dc3545;
}

.yes-no-option input[type="radio"]:checked + .yes-no-label .yes-icon,
.yes-no-option input[type="radio"]:checked + .yes-no-label .no-icon {
    color: white;
}



.yesno-input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.yesno-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.yesno-btn-unselected {
    background: white;
    color: #6c757d;
}

    .yesno-btn-unselected:hover {
        border-color: #007bff;
        color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    }

.yesno-btn-selected {
    border-width: 3px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yesno-yes.yesno-btn-selected {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.yesno-no.yesno-btn-selected {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.yesno-icon {
    font-size: 1.5rem;
    font-weight: bold;
}




/* ==========================================================================
   Input Components - Currency
   ========================================================================== */

.currency-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-size: 1.1rem;
    color: #6c757d;
    pointer-events: none;
}

.currency-input {
    padding-left: 28px;
}

/* ==========================================================================
   Input Components - Percentage
   ========================================================================== */

.percentage-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.percentage-symbol {
    position: absolute;
    right: 12px;
    font-size: 1.1rem;
    color: #6c757d;
    pointer-events: none;
}

.percentage-input {
    padding-right: 28px;
}

/* ==========================================================================
   Shared Components - Loading Spinner
   ========================================================================== */

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.loading-message {
    margin-top: 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* ==========================================================================
   Shared Components - Validation Message
   ========================================================================== */

.validation-message {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.validation-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.validation-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================================================
   Shared Components - Warning Dialog
   ========================================================================== */

.warning-dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.warning-dialog {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.warning-icon {
    font-size: 2.5rem;
    color: #ffc107;
}

.warning-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.warning-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.warning-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ==========================================================================
   Application Summary Component
   ========================================================================== */

.application-summary {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.summary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.summary-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

.summary-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-submitted {
    background: #d4edda;
    color: #155724;
}

.status-in-review {
    background: #d1ecf1;
    color: #0c5460;
}

.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.summary-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: #333;
    font-weight: 600;
}

.summary-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   Financial Summary Component
   ========================================================================== */

.financial-summary {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.financial-summary h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.financial-item {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.financial-label {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.financial-value {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}

.financial-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.financial-highlight .financial-label {
    color: rgba(255,255,255,0.9);
}

.financial-highlight .financial-value {
    color: white;
    font-size: 2rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }


/* ==========================================================================
   Input Components - Searchable Select (state/long lists)
   ========================================================================== */

.searchable-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.searchable-select-search {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-select-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.searchable-select-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.searchable-select-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

.searchable-select-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #e8f0fe;
    border: 2px solid #0d6efd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.selected-label {
    font-weight: 600;
    color: #0d3b8e;
}

.searchable-select-change {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.searchable-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.searchable-select-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.searchable-select-item:last-child {
    border-bottom: none;
}

.searchable-select-item:hover,
.searchable-select-item:active {
    background: #f0f4ff;
}

.searchable-select-item.is-selected {
    background: #e8f0fe;
    font-weight: 600;
    color: #0d3b8e;
}

.searchable-select-empty {
    padding: 1rem;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 576px) {
    .searchable-select-list {
        max-height: 220px;
    }
}
