
/* Living Waters Enterprises SSI Calculator */

* {
    box-sizing: border-box;
}

body {
    font-family: "Trebuchet MS", sans-serif;
    background-color: #ffffff;
    color: #2B2B2B;
    font-weight: 400;
    margin: 0 auto;
    padding: 25px;
    line-height: 1.6;
    max-width: 800px;
}

/* Main Headings */

h1 {
    color: #087e8b;
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
}

h2 {
    color: #087e8b;
    font-size: 21px;
}

h3 {
    color: #087e8b;
    font-size: 18px;
}

/* Text */

p {
    margin-bottom: 15px;
}

ul {
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
}

/* Main Calculator Field Labels */

label[for="householdType"],
label[for="basicBenefitRate"],
label[for="wages"],
.calculator-field-label {
    font-size: 18px;
    font-weight: 700;
    color: #004f59;
    line-height: 1.4;
}

/* Input Fields */

input[type="number"] {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 2px solid #b5d5d8;
    border-radius: 8px;
    font-size: 18px;
    background-color: white;
}

/* Agreement Checkbox */

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #087e8b;
    margin-right: 10px;
}

/* Calculate Button */

button {
    display: block;
    width: 100%;
    background-color: #087e8b;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #065f69;
}

button:focus-visible {
    outline: 3px solid #126782;
    outline-offset: 3px;
}

/* Calculation Results */

#results {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 5px solid #087e8b;
    overflow-wrap: anywhere;
}

#results:empty {
    display: none;
}

#results h3 {
    color: #087e8b;
}

/* Highlighted Final Results */

.final-results {
    background-color: #e0e0e0;
    color: #2b2b2b;
    padding: 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1.15rem;
    font-weight: bold;
}

/* Hide Inactive Screens */

[hidden] {
    display: none !important;
}

/* Disabled Buttons */

button:disabled {
    background-color: #777777;
    cursor: not-allowed;
}

/* Highlight SSI Calculation Results */

#results h3 .amount {
    color: #17324D;
    font-weight: bold;
}

.ssi-result-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    padding: 4px 0;
}

.ssi-result-label {
    color: #222222;
    font-size: 1.15rem;
    font-weight: 800;
}

.ssi-result-amount {
    color: #006b70;
    font-size: 1.4rem;
    font-weight: 800;
}

.ssi-result-primary .ssi-result-amount {
    font-size: 1.4rem;
}

/* Work Incentive Checkbox Spacing */

.work-incentive-option {
    display: block;
    margin-top: 18px;
    margin-bottom: 18px;
}

/* Premium Upgrade Questions */

details.premium-tip {
    margin: 12px 0 20px;
    padding: 11px 14px;
    background-color: #edf7f7;
    border: 1px solid #91c8cd;
    border-left: 3px solid #398e98;
    border-radius: 8px;
}

details.premium-tip summary {
    color: #176c76;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    padding: 2px 0;
}

details.premium-tip summary::marker {
    color: #176c76;
}

details.premium-tip[open] {
    background-color: #f3fafa;
}

details.premium-tip .premium-tip-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #c5e0e2;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
}

/* Footer */

.site-footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 10px;
    font-size: 13px;
    color: #555555;
    border-top: 1px solid #dddddd;
}

/* Mobile Phone Layout */

@media screen and (max-width: 600px) {

    body {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 19px;
    }

    button {
        font-size: 18px;
    }

    #results {
        padding: 15px;
    }

    label[for="householdType"],
    label[for="basicBenefitRate"],
    label[for="wages"],
    .calculator-field-label {
        font-size: 17px;
    }

    details.premium-tip summary {
        font-size: 14px;
    }
}
/* Expandable FBR Help Question */

details.fbr-help {
    margin: 8px 0 18px;
    padding: 4px 0;
}

details.fbr-help summary {
    color: #005e68;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
}

details.fbr-help summary::marker {
    color: #087e8b;
}

details.fbr-help-content {
    margin-top: 10px;
}

.fbr-help-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}
/* Keep FBR help question close to the benefit rate box */

#basicBenefitRate {
    margin-bottom: 4px;
}

details.fbr-help {
    margin-top: 4px;
    margin-bottom: 18px;
}
/* SSI Household Type dropdown styling */

#ssiHouseholdType {
    width: 100%;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: #004f59;
    text-align: center;
    text-align-last: center;
    background-color: #f0f8f8;
    border: 2px solid #87bfc5;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23004f59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
background-size: 24px;
}

#ssiHouseholdType:focus {
    outline: 2px solid #087e8b;
    outline-offset: 2px;
}

/* Make the Household Type label more prominent */

label[for="ssiHouseholdType"] {
    font-size: 18px;
    font-weight: 700;
    color: #004f59;
}
/* Numbered calculator steps */

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border-radius: 50%;
    background-color: #087e8b;
    color: white;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Step number inside Calculate SSI button */

button .step-number {
    background-color: white;
    color: #087e8b;
}
/* Premium questions - compact expandable help style */

details.premium-tip {
    margin: 5px 0 10px;
    padding: 4px 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

details.premium-tip[open] {
    background-color: transparent;
}

details.premium-tip summary {
    color: #005e68;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0;
    cursor: pointer;
}

details.premium-tip summary::marker {
    color: #087e8b;
}

details.premium-tip .premium-tip-content {
    margin-top: 10px;
    padding-top: 8px;
    border-top: none;
    font-size: 14px;
    line-height: 1.6;
}
/* Premium calculator numbered steps */

.premium-step-label,
.premium-step-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #004f59;
    font-size: 18px;
    font-weight: 700;
}

.premium-step-label .step-number,
.premium-step-heading .step-number {
    margin-right: 0;
}

/* Premium household dropdown */

#premiumHouseholdType {
    display: block;
    width: 100%;
    padding: 14px 44px 14px 12px;
    margin-top: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: #004f59;
    text-align: center;
    text-align-last: center;
    background-color: #f0f8f8;
    border: 2px solid #87bfc5;
    border-radius: 8px;
    cursor: pointer;

    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23004f59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 24px;
}

#premiumHouseholdType:focus {
    outline: 2px solid #087e8b;
    outline-offset: 2px;
}
/* Compact Premium work incentive checkbox spacing */

#individualCalculatorFields .work-incentive-option {
    margin-top: 8px;
    margin-bottom: 4px;
}

#individualCalculatorFields #seieFields,
#individualCalculatorFields #seieDescription {
    margin-bottom: 4px;
}
/* Premium - space above Gross Monthly Wages label */

/* Premium - spacing around gross wages section */

#individualCalculatorFields label[for="premiumWages"] {
    display: block;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Keep explanation close to wages input */

/* Premium - spacing around Gross Monthly Wages */

/* Space before the Gross Monthly Wages label */
#individualCalculatorFields label[for="premiumWages"] {
    display: block;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Small gap between label and input */
#premiumWages {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Explanation close to box, space before Step 4 */
#premiumWages + p {
    margin-top: 4px;
    margin-bottom: 26px;
}
/* Premium - reduce space below SSI Benefit Rate box */

#premiumBenefitRate {
    margin-bottom: 0;
}

#premiumBenefitRate + p {
    margin-top: 0;
    margin-bottom: 15px;
}
/* Premium - reduce space below Household Type dropdown */

#premiumHouseholdType {
    margin-bottom: 0;
}

#premiumHouseholdType + p {
    margin-top: 4px;
    margin-bottom: 15px;
}
/* Premium Calculator - results spacing */

#premiumResults p {
    margin-top: 6px;
    margin-bottom: 6px;
    line-height: 1.5;
}
/* Premium - reduce space below results section headings */

#premiumResults h2,
#premiumResults h3 {
    margin-bottom: 10px;
}
/* Premium - reduce spacing around final result totals */

#premiumResults h2,
#premiumResults h3 {
    margin-top: 14px;
    margin-bottom: 10px;
}

#premiumResults p:has(strong) {
    margin-bottom: 10px;
}
/* Premium - PASS results spacing */

#premiumResults .pass-summary p {
    margin-top: 8px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Give PASS explanations more breathing room */
#premiumResults .pass-summary .pass-explanation {
    margin-top: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
}

/* Space around PASS section headings */
#premiumResults .pass-summary h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}
/* Premium - PASS 12-month projection colors */

#premiumResults .pass-projection-label {
    color: #222222;
    font-weight: 800;
}

#premiumResults .pass-projection-amount {
    color: #006b70;
    font-weight: 800;
    font-size: 1.4rem;
    margin-left: 12px;
}
/* Basic and Premium Calculator Tabs */

.calculator-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 25px;
}

.calculator-tab {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #006b70;
    border-radius: 8px;
    background-color: white;
    color: #006b70;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.calculator-tab.active {
    background-color: #006b70;
    color: white;
}

.calculator-tab:hover {
    background-color: #e5f3f2;
}

.calculator-tab.active:hover {
    background-color: #00565a;
}
[hidden] {
    display: none !important;
}

/* Scrollable legal documents */
.legal-document {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    margin-top: 10px;
}

/* Legal document reading progress */

.reading-progress {
    margin: 12px 0;
}

.reading-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.reading-progress-track {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.reading-progress-fill {
    width: 0%;
    height: 100%;
    background-color: #168c91;
    border-radius: 10px;
    transition: width 0.2s ease;
}

/* Required Legal Document Headings */

#importantDisclaimer > summary,
#privacyPolicy > summary,
#termsOfUse > summary {
    background-color: #e6f4f5;
    color: #087f8c;
    border: 2px solid #087f8c;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

/* Darken heading when hovering */

#importantDisclaimer > summary:hover,
#privacyPolicy > summary:hover,
#termsOfUse > summary:hover {
    background-color: #d1ebee;
}

/* Highlight heading when opened */

#importantDisclaimer[open] > summary,
#privacyPolicy[open] > summary,
#termsOfUse[open] > summary {
    background-color: #d1ebee;
}

/* Keyboard accessibility */

#importantDisclaimer > summary:focus-visible,
#privacyPolicy > summary:focus-visible,
#termsOfUse > summary:focus-visible {
    outline: 3px solid #087f8c;
    outline-offset: 3px;
}
/* Make Benefit Year selectors more prominent */

#basicBenefitYear,
#premiumBenefitYear {
    font-size: 20px;
    font-weight: bold;
    padding: 12px 18px;
    border: 3px solid #168b8b;
    border-radius: 8px;
    background-color: #e8f7f5;
    color: #164f56;
    cursor: pointer;
}
/* Basic calculator Benefit Year spacing and size */

#basicBenefitYear {
    font-size: 18px;
    padding: 6px 10px;
    border-width: 2px;
    margin-left: 8px;
    width: auto;
}
/* Center the Basic Calculator Benefit Year selector */

label[for="basicBenefitYear"] {
    display: block;
    text-align: center;
    margin: 14px 0 8px;
}

#basicBenefitYear {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
}