/**
 * Ontario Divorce Calculator Styles
 */

/* ===========================================
   GLOBAL SITE BACKGROUND
   =========================================== */

body,
html,
#website,
main,
#contentArea,
.WxEditableArea,
section,
.kedit,
footer,
#footerContent {
    background-color: #ffffff !important;
}

/* Header menu styling */
#header,
#headerMenu,
.menuHolder,
.topmenu {
    background-color: #ffffff !important;
}

/* Footer logo size */
.keditFooterLogo {
    width: 150px !important;
    height: auto !important;
}

#header a,
#headerMenu a,
.menuHolder a,
.topmenu a,
.topmenu span,
.topmenu li a span {
    color: #000000 !important;
}

.topmenu li.accent1 a,
.topmenu li.accent1 a span {
    color: #000000 !important;
}

/* Calculator containers - light teal background */
.calculator-container,
.results-card,
.asset-column,
.ContactForm,
.whiteShadowContainer {
    background-color: #D9ECDC !important;
}

/* Keep input fields and specific elements white */
.form-control,
.form-select,
.input-group-text,
.nfp-box,
.result-section,
input,
select,
textarea {
    background-color: #ffffff !important;
}

/* ===========================================
   GLOBAL TYPOGRAPHY
   Helvetica for body text, Quicksand for headings
   =========================================== */

/* Base - Apply Helvetica to everything */
html,
body,
div,
span,
p,
a,
li,
ul,
ol,
td,
th,
tr,
table,
label,
input,
select,
textarea,
button,
small,
strong,
em,
b,
i,
blockquote,
pre,
code,
figcaption,
figure,
nav,
section,
article,
aside,
header,
footer,
main,
form {
    font-family: Helvetica, Arial, "Helvetica Neue", sans-serif !important;
}

/* All Bootstrap and site-specific classes */
.form-text,
.form-control,
.form-select,
.form-check-label,
.form-label,
.input-group-text,
.btn,
.btn-lg,
.btn-sm,
.alert,
.card,
.card-body,
.card-text,
.lead,
.text-muted,
.small,
.breadcrumb,
.breadcrumb-item,
.nav-link,
.navbar-nav,
.dropdown-menu,
.dropdown-item,
.modal-body,
.modal-title,
.tooltip,
.popover,
.badge,
.list-group-item,
.table,
.disclaimer,
.koPreTitle,
.keditFooterCompany,
.keditFooterCopyright,
.keditFooterMenu,
.keditFooterMenu span,
.keditFooterMenu a,
.menuHolder,
.menuHolder a,
.menuHolder span,
.topmenu,
.topmenu a,
.topmenu span,
.sitemap,
.sitemap a,
.sitemap li,
.sitemap span,
.col-container,
.col-container div,
.calculator-nav,
.calculator-nav a,
.results-card,
.results-card p,
.results-card small,
.results-card li,
.results-card td,
.results-card th,
.result-section,
.result-section small,
.amount-mid,
.amount-range,
.duration-range,
.duration-range small,
.payment-direction,
.payment-direction small,
.nfp-box,
.nfp-summary,
.asset-column,
.koCheckList,
.koCheckList li,
.ContactForm,
.ContactForm label,
.ContactForm input,
.ContactForm textarea,
.thumbTitle {
    font-family: Helvetica, Arial, "Helvetica Neue", sans-serif !important;
}

/* Headings - Keep Quicksand for H1, H2 only */
h1, h2,
.h1, .h2,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Quicksand', sans-serif !important;
}

/* H3, H4, H5, H6 use Helvetica */
h3, h4, h5, h6,
.h3, .h4, .h5, .h6,
.result-section h5,
.sitemap h5,
.nfp-box h5,
.form-section-title,
.thumbTitle {
    font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
    font-weight: 600;
}

/* Calculator Container */
.calculator-container {
    background: #D9ECDC;
    border-radius: 10px;
    padding: 30px;
    box-shadow: none;
    margin-bottom: 20px;
}

.calculator-container h3 {
    color: var(--color1);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

/* Form Styling */
.calculator-form {
    margin-bottom: 20px;
}

.calculator-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.calculator-form .form-control,
.calculator-form .form-select {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.calculator-form .form-control:focus,
.calculator-form .form-select:focus {
    border-color: var(--color1);
    box-shadow: 0 0 0 0.2rem rgba(var(--color1_rgb), 0.25);
}

.calculator-form .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    font-weight: 600;
    color: #555;
}

.calculator-form .input-group .form-control {
    border-left: none;
}

.calculator-form .input-group:focus-within .input-group-text {
    border-color: var(--color1);
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Results Display */
.results-display {
    display: none;
    margin-top: 30px;
}

.results-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--color1);
    border-radius: 12px;
    padding: 30px;
    box-shadow: none;
}

.results-card h4 {
    color: var(--color1);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-size: 24px;
}

.results-card h4 i {
    margin-right: 10px;
}

/* Result Sections */
.result-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color1);
}

.result-section h5 {
    color: #555;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Amount Display */
.amount-range {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.amount-low,
.amount-high {
    font-size: 28px;
    font-weight: 700;
    color: var(--color1);
}

.amount-separator {
    font-size: 18px;
    color: #888;
    font-weight: 500;
}

.amount-mid {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Duration Display */
.duration-range {
    text-align: center;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* Disclaimer */
.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

.disclaimer i {
    margin-right: 8px;
    color: #ffc107;
}

.disclaimer strong {
    color: #856404;
}

/* Alert Styling */
.results-display .alert {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.results-display .alert i {
    margin-right: 8px;
}

/* Form Group Spacing */
.calculator-form .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
    }

    .results-card {
        padding: 20px;
    }

    .amount-low,
    .amount-high {
        font-size: 22px;
    }

    .amount-separator {
        font-size: 16px;
    }

    .duration-range {
        font-size: 18px;
    }

    .calculator-form .form-control,
    .calculator-form .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn-calculate {
        font-size: 16px;
        padding: 12px;
    }
}

/* Help Text */
.form-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Form Section Titles */
.form-section-title {
    font-weight: 600;
    color: var(--color1);
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--color1_rgb), 0.2);
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Navigation Tabs for Calculators */
.calculator-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.calculator-nav a {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calculator-nav a:hover {
    border-color: #7ab5b5;
    color: #7ab5b5;
    background: #f0f9f9;
}

.calculator-nav a.active {
    background: #e5f2f2 !important;
    border-color: #7ab5b5 !important;
    color: #3d7a7a !important;
}

/* Two Column Layout for Asset Division */
.asset-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.asset-column {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.asset-column h4 {
    color: var(--color1);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

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

/* Single Result Display (for child support) */
.single-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--color1);
    text-align: center;
}

.single-amount small {
    font-size: 18px;
    color: #666;
}

/* Who Pays Whom Display */
.payment-direction {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin: 15px 0;
    padding: 15px;
    background: rgba(var(--color1_rgb), 0.1);
    border-radius: 8px;
}

/* NFP Summary for Asset Division */
.nfp-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.nfp-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.nfp-box h5 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nfp-box .nfp-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--color1);
}

@media (max-width: 576px) {
    .nfp-summary {
        grid-template-columns: 1fr;
    }
}

/* Section Heading Style */
.calculator-section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-section-heading h2 {
    color: var(--color1);
    font-weight: 700;
    margin-bottom: 15px;
}

.calculator-section-heading p {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* Loading State */
.btn-calculate.loading {
    position: relative;
    color: transparent;
}

.btn-calculate.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* ===========================================
   INCOME CATEGORY STYLES
   =========================================== */

.income-section-help {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    margin-top: -5px;
}

.income-category {
    margin-bottom: 10px;
    padding: 12px 15px 0 15px;
    background: rgba(var(--color1_rgb), 0.03);
    border-radius: 8px;
    border: 1px solid #eee;
}

.income-category-label {
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

.income-sub-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    margin-bottom: 4px !important;
}

/* ===========================================
   FORCE ALL TITLES & SUBTITLES
   Helvetica + Bold
   =========================================== */

/* All semantic headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,

/* Display / section titles */
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6,

/* Calculator-specific titles */
.calculator-container h3,
.results-card h4,
.result-section h5,
.asset-column h4,
.nfp-box h5,
.form-section-title,
.calculator-section-heading h2,
.thumbTitle {
    font-family: Helvetica, Arial, "Helvetica Neue", sans-serif !important;
    font-weight: 700 !important;
}

