/*
 * Copyright (c) Galegomca SAS.
 * Web Site: https://www.galegomca.com
 */
:root {
    --brand-primary: #1D57A8;
    --brand-secondary: #4C8FD6;
    --brand-accent: #1FB7E6;
    --brand-warning: #FF8A2A;
    --brand-bg: #F3F8FD;
    --brand-text: #1C2433;
}
body { background: var(--brand-bg); color: var(--brand-text); }
.app-navbar { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.dashboard-card { background: linear-gradient(140deg, rgba(29,87,168,.95), rgba(76,143,214,.95)); color: white; border-radius: 24px; }
.profile-avatar { width: 120px; height: 120px; object-fit: cover; border: 4px solid rgba(29,87,168,.1); }
.card { border-radius: 20px; }

.flag-icon {
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
    vertical-align: middle;
    margin-top: -2px;
}

/* Reset basic margins and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Make body a flex container that stretches to full viewport height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* The main content area grows to push the footer down */
.page-content {
    flex: 1;
}

/* Footer styling (blue background, white text) */
.site-footer {
    background-color: #1D57A8;
    color: #ffffff;
    padding: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
}

.bp-shell {
    background: #ffffff;
    border-radius: 18px;
}

.bp-step-title {
    color: #1D57A8;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-main-title {
    color: #1C2433;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bp-subtitle {
    color: #4f627d;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.bp-section-heading {
    color: #1D57A8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.bp-field-label {
    display: block;
    font-weight: 600;
    color: #1C2433;
    margin-bottom: 0.75rem;
}

.bp-input,
.bp-select,
.bp-textarea {
    border: 1px solid #d5dfef;
    border-radius: 14px;
    padding: 0.875rem 1rem;
    min-height: 52px;
    box-shadow: none;
}

.bp-textarea {
    min-height: 120px;
}

.bp-input:focus,
.bp-select:focus,
.bp-textarea:focus {
    border-color: #1D57A8;
    box-shadow: 0 0 0 0.2rem rgba(29, 87, 168, 0.12);
}

.bp-radio-card {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    width: 100%;
    min-height: 84px;
    border: 2px solid #D9E2F0;
    border-radius: 10px;
    padding: 16px 18px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bp-radio-card:hover {
    border-color: #4C8FD6;
}

.bp-radio-card.active {
    border-color: #1D57A8;
    background: #F8FBFF;
    box-shadow: 0 0 0 3px rgba(29, 87, 168, 0.15);
}

.bp-radio-card label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.bp-radio-card input[type="radio"] {
    margin: 0;
    align-self: center;
    accent-color: #1D57A8;
    flex: 0 0 auto;
}

.bp-radio-card > span,
.bp-radio-card label > span {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    color: #1C2433;
    line-height: 1.45;
    text-align: left;
}

.bp-radio-card.bp-radio-inline {
    align-items: center;
    min-height: 72px;
}

.bp-radio-card.bp-radio-inline > span,
.bp-radio-card.bp-radio-inline label > span {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    color: #1C2433;
    line-height: 1.4;
    white-space: normal;
}

.bp-privacy-card {
    background: linear-gradient(135deg, rgba(29, 87, 168, 0.14), rgba(76, 143, 214, 0.18));
    border: 1px solid #1D57A8;
    border-radius: 18px;
    padding: 1.5rem;
}

.bp-privacy-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.bp-link {
    color: #1D57A8;
    font-weight: 600;
    text-decoration: none;
}

.bp-link:hover {
    text-decoration: underline;
}

.bp-inline-field,
.bp-inline-field-left {
    width: 100%;
}

.bp-select-inline {
    width: 100%;
    max-width: 320px;
}

.bp-investment-table,
.bp-summary-box {
    background: #f8fbff;
    border: 1px solid #e1ebf6;
    border-radius: 18px;
    padding: 1.25rem;
}

.bp-investment-index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(29, 87, 168, 0.1);
    color: #1D57A8;
    font-weight: 700;
}

.bp-mobile-label {
    display: block;
    font-size: 0.85rem;
    color: #56687f;
    margin-bottom: 0.35rem;
}

.bp-inline-width-200 {
    max-width: 200px;
}

.bp-inline-width-300 {
    max-width: 300px;
}

.bp-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bp-navigation-start,
.bp-navigation-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bp-financial-table th {
    color: #1C2433;
    border-bottom: 1px solid #d9e2f0;
    white-space: nowrap;
}

.bp-financial-table td {
    vertical-align: middle;
}

.bp-financial-table .input-group,
.bp-summary-box .input-group {
    width: 100%;
    max-width: 100%;
}

.bp-summary-box .bp-field-label {
    min-height: 3.2rem;
    display: flex;
    align-items: flex-end;
}

.business-plan-progress {
    height: 1.15rem;
    border-radius: 999px;
    background: #e9f0f8;
}

.bp-radio-card strong {
    margin-bottom: 0.35rem;
}

.bp-radio-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.bp-radio-inline > span {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
}

.bp-radio-inline input[type="radio"] {
    margin: 0;
    align-self: center;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .bp-step-title {
        font-size: 1.55rem;
    }

    .bp-main-title {
        font-size: 1.45rem;
    }

    .bp-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-navigation-start,
    .bp-navigation-end {
        width: 100%;
    }

    .bp-navigation .btn {
        width: 100%;
    }

    .bp-summary-box .bp-field-label {
        min-height: auto;
    }

    .bp-inline-width-200,
    .bp-inline-width-300,
    .bp-select-inline {
        max-width: 100%;
    }
}

.bp-plan-card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.bp-plan-card-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    width: auto;
    padding: 0.65rem 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .bp-plan-card {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-plan-card label {
        width: 100%;
    }

    .bp-plan-card-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.75rem !important;
    }

    .bp-plan-card-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

