﻿/* ===== Page shell: sticky footer ===== */
html, body {
    height: 100%;
}

    body.page {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

.page-content {
    flex: 1 0 auto;
}
/* pushes footer down */
.site-footer {
    flex-shrink: 0;
}

/* ===== Header look & spacing ===== */
:root {
    --brand-purple: #3f275b;
}

.brand-header {
    background: var(--brand-purple);
    color: #fff;
    /* remove vertical bulk; adjust if you want more height */
    padding: 0;
}

    /* container-fluid already has no x-padding in Bootstrap 5,
   but some templates add it; force-zero just in case */
    .brand-header .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: 64px; /* fixed bar height */
    }

    /* Align logo + text vertically centered within the 64px bar */
    .brand-header .container-fluid {
        display: flex;
        align-items: center;
    }

/* ===== Logo size ===== */
.brand-logo {
    height: 42px; /* make it larger */
    width: auto;
}

/* ===== Title styling ===== */
.brand-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.brand-subtitle {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .06em;
}

/* Custom button styles */
.btn-brand {
    background: #3f275b; /* deep purple */
    border-color: #3f275b;
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
}

    .btn-brand:hover {
        background: #341f4d;
        border-color: #341f4d;
    }

.btn-muted {
    background: #cab9df; /* soft grey/purple */
    border-color: #cab9df;
    color: #2b1b45;
    font-weight: 600;
}

.btn-muted:hover {
    background: #bba6d6;
    border-color: #bba6d6;
}

/* Mortgage Calculator button spacing */
.btn-gap-right {
    padding-right: 10px;
}

.btn-gap-left {
    padding-left: 10px;
}

/* wwwroot/css/site.css */
.mortgage-result {
    margin-top: 24px; /* adjust as needed */
}

/* Bold all dxForm group captions */
.dx-form-group-caption {
    font-weight: 700;
}

/* Right-align values in dxForm simple items */
.right-value .dx-field-value,
.right-value span {
    text-align: right;
    font-weight:500;
    display: block;
    width: 100%;
}

.footnotes {
    font-size: 12px;
    font-weight: 500
}

/* Remove left indent under dxForm group captions */
.results-group .dx-form-group-content {
    padding-left: 0 !important;
}

/* Optional: tighten vertical spacing */
.results-group .dx-field-item {
    padding-left: 0;
    margin-left: 0;
}

/* Remove label column spacing in Results form */
.results-group .dx-field-label {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.results-group .dx-field-item-content {
    padding-left: 0 !important;
}

#result .results-group .dx-field-item-label {
    width: 0 !important;
    min-width: 0 !important;
}
/* ✅ Kill DevExtreme's inline label width (this is the indent source) */
#result .results-group .dx-field-item-label-content {
    width: auto !important; /* or 0 if you want no label column */
    min-width: 0 !important;
}

/* Optional: if you want labels to take only as much space as needed */
#result .results-group .dx-field-item-label {
    width: auto !important;
}

/* Keep the value column flush/right */
#result .results-group .dx-field-item-content-location-right {
    padding-left: 0 !important;
}

/* Right-align values inside all DevExtreme text/number editors on this page */
#mortgageForm .dx-texteditor-input,
#mortgageForm .dx-numberbox .dx-texteditor-input,
#mortgageForm .dx-textbox .dx-texteditor-input,
#mortgageForm .dx-datebox .dx-texteditor-input,
#mortgageForm .dx-selectbox .dx-texteditor-input {
    text-align: right !important;
}

#mortgageForm .dx-selectbox .dx-texteditor-container {
    text-align: right !important;
}
