/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Definitions */
@font-face {
    font-family: 'Roboto-Light';
    src: url('../../fonts/Roboto-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'ProductSans-Light';
    src: url('../../fonts/ProductSans-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'ProductSans-Thin';
    src: url('../../fonts/ProductSans-Thin.ttf') format('truetype');
    font-display: swap;
}

/* Page Background Color */
body {
    background-color: #F4F4F4;
    font-family: 'ProductSans-Light', sans-serif;
}

/* ============================ */
/* Hero Section                 */
/* ============================ */
.hero-section {
    width: 100%;
    height: 40vh;
    background-image: url('../../img/Refinance_Hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2vh;
    overflow: hidden; 
}

.hero-nav { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 3vh;
    z-index: 10; 
    margin-top: 1vh;
}

.hero-nav a { 
    color: #cacaca; 
    text-decoration: none; 
    font-size: 0.95rem;
    font-family: 'ProductSans-Light', sans-serif;
    font-weight: 300; 
    transition: color .3s ease; 
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap; 
}

.hero-nav a:hover { 
    color: #fff; 
}

.hero-logo {
    height: 15vh;
    width: auto;
    display: block;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.6));
}

.hero-section h1 {
    color: #ffffff;
    font-family: 'ProductSans-Light', sans-serif;
    font-weight: 300;
    font-size: 7vmin;
    white-space: nowrap;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    max-width: 95%;
}

.breathing-text {
    color: #e0e0e0;
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 2vmin;
    text-align: center;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    min-height: 1.5em;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    margin: 0;
    padding: 0 10px;
}

.breathing-text.fade-out {
    opacity: 0;
}

/* ============================ */
/* Breadcrumb Navigation        */
/* ============================ */
.breadcrumb-nav {
    width: 100%;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 10px;
    margin-top: 2vh;
    padding: 0 8vw;
    font-family: 'ProductSans-Light', sans-serif;
    font-weight: 300;
    font-size: 0.9rem; 
}

.breadcrumb-nav a, 
.breadcrumb-nav .current-page,
.breadcrumb-nav .separator {
    text-decoration: none;
    color: #7a7a7a; 
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #000000;
}

.breadcrumb-nav .separator {
    opacity: 0.5;
}

.breadcrumb-nav .current-page {
    cursor: default;
}

/* ============================ */
/* Calculator Main Layout       */
/* ============================ */
.calculator-container {
    width: 100%;
    padding: 0 8vw;
    margin-top: 2vh;
    margin-bottom: 8vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; 
    /* CHANGED: Split gap to reduce vertical space after intro question */
    column-gap: 80px;
    row-gap: 20px;
}

/* INTRO QUESTION: Seamless Integration */
.intro-question-block {
    width: 100%;
    margin-bottom: 0px; 
    margin-top: 5px;    
    border-left: none;  /* Removed border */
    padding-left: 0;
}
.intro-question-block h2 {
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 300;
}
.intro-question-block p {
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    line-height: 1.5;
}

.calc-section {
    min-width: 300px;
}

/* Left Section (Inputs) - Wider */
.left-section {
    flex: 1.8; 
}

/* Right Section (Results) - Sticky Sidebar */
.right-section {
    flex: 1;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 30px;
    height: fit-content;
    z-index: 100;
}

/* ALIGNMENT FIX */
.header-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 2vh;
    min-height: 80px; /* Ensure visual height match */
}

.calc-section h2 {
    font-family: 'ProductSans-Thin', sans-serif;
    font-weight: 300;
    font-size: clamp(4rem, 6vw, 9rem);
    line-height: 1.1;
    color: #333;
    margin: 0;
    white-space: nowrap; 
}

.text-link-btn {
    background: none;
    border: none;
    color: #7a7a7a;
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.text-link-btn:hover {
    color: #000;
}

.left-section h2 { text-align: left; }
.right-section h2 { text-align: left; }

/* ============================ */
/* SEO Content Section          */
/* ============================ */
.seo-content-section {
    width: 100%;
    padding: 0 8vw 50px 8vw; /* Seamless padding */
    background-color: transparent; /* No background color change */
    border-top: none; /* No border */
    font-family: 'ProductSans-Light', sans-serif;
    margin-top: -30px; /* Pull closer to tool bottom */
}

.seo-content-section h2 {
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
}

.seo-block {
    margin-bottom: 40px;
    max-width: 900px;
}

.seo-block h3 {
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.seo-block p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}
.seo-block a {
    color: #B5855E;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}
.seo-block a:hover {
    border-bottom: 1px solid #B5855E;
}

.faq-item {
    margin-bottom: 25px;
    /* Removed individual borders for cleaner look */
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding-bottom: 20px;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'ProductSans-Light', sans-serif;
}

/* ============================ */
/* Inputs Styling (GRID)        */
/* ============================ */
.global-settings,
.mode-inputs,
.advanced-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 30px;
    width: 100%;
}

.global-settings {
    margin-bottom: 50px; 
}

.input-sub-heading {
    grid-column: 1 / -1;
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #000;
    text-transform: uppercase;
    font-weight: 300; 
    letter-spacing: 0.05em;
    margin-top: 25px;
    margin-bottom: -25px;
    padding-left: 2px;
    line-height: 1;
    overflow-wrap: break-word;
}

.full-width-span {
    grid-column: 1 / -1;
}

.advanced-content {
    grid-column: 1 / -1; 
    margin-top: 0;
}

.input-wrapper {
    margin-bottom: 0;
    width: 100%;
}

.input-wrapper label {
    display: flex;          
    align-items: flex-end;
    min-height: 2.5em;      
    line-height: 1.2;       
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input[type=text] {
    width: 100%;
    border: none; 
    background: transparent;
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.2rem;
    color: #333;
    padding: 2px 0 0 0;
    outline: none;
}

/* Slider Styling */
.input-group input[type=range] {
    -webkit-appearance: none; 
    appearance: none;
    width: 100%; 
    height: 20px; 
    border: 9px solid transparent; 
    border-left: 0; border-right: 0; 
    background-clip: content-box; 
    background-color: transparent;
    border-radius: 0px; 
    outline: none; 
    opacity: 0.5; 
    transition: border-width .2s ease, opacity .2s ease; 
    cursor: pointer;
    margin-top: 2px; 
    display: block;
    position: relative;
    z-index: 5;
}

.input-group input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent; 
    border: none;
    border-radius: 0px;
}

.input-group input[type=range]:hover, 
.input-group input[type=range]:focus, 
.input-group input[type=range]:active { 
    border-width: 7px;
    opacity: 1; 
}

.input-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 0; height: 0; background: transparent; cursor: pointer; opacity: 0;
}
.input-group input[type=range]::-moz-range-thumb {
    width: 0; height: 0; border: none; background: transparent; cursor: pointer; opacity: 0;
}

/* ============================ */
/* Custom Dropdown BOXED        */
/* ============================ */
.custom-dropdown-container {
    position: relative;
    width: 100%;
    box-sizing: border-box; 
    margin-top: 3px;
}

.hidden-select { display: none; }

.custom-dropdown-trigger {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1.1rem; 
    color: #333;
    background-color: transparent;
    outline: none;
    font-family: 'ProductSans-Light', sans-serif;
    font-weight: 300;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; 
    transition: border-color 0.3s ease;
}

.custom-dropdown-trigger:hover { border-color: #D4BCA9; }
.custom-dropdown-container:focus-within .custom-dropdown-trigger { border-color: #B5855E; }

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 6px 2px 6px 6px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-height: 250px;
    overflow: hidden;
}

.custom-dropdown-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-options-wrapper {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 4px;
}

.dropdown-options-wrapper::-webkit-scrollbar { width: 8px; }
.dropdown-options-wrapper::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; border: 1px solid #fafafa; }

.dropdown-option {
    padding: 10px 15px; 
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    border-radius: 8px; 
    margin-bottom: 2px; 
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-option:hover { background: #eae5df; color: #000; }
.dropdown-option.selected { font-weight: 500; color: #000; background: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* ============================ */
/* NEW: Circular Checkboxes     */
/* ============================ */
.checkbox-group-row {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.checkbox-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}

/* Container: Aligns text and box */
.custom-checkbox-container {
    display: flex;
    align-items: center; 
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 1.0rem;
    color: #333;
    font-family: 'ProductSans-Light', sans-serif;
    gap: 15px; 
}

/* Hide the default browser checkbox */
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* The Outer Circle (Unchecked) */
.checkmark {
    position: relative; 
    height: 20px;
    width: 20px;
    flex-shrink: 0; 
    background-color: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 50%; /* Circular */
    transition: all 0.2s ease;
}

/* Hover Effect */
.custom-checkbox-container:hover .checkmark {
    border-color: #D4BCA9;
}

/* Checked State: Outer Ring Color */
.custom-checkbox-container input:checked ~ .checkmark {
    border-color: #B5855E;
    background-color: #fff; 
}

/* The Inner Dot (Hidden by default) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    
    /* Perfect Centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Dot Size & Shape */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #B5855E;
}

/* Show the Dot when Checked */
.custom-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* ============================ */
/* Results Styling              */
/* ============================ */
.mode-results {
    display: block;
    width: 100%;
    padding-bottom: 15px;
}

/* FIX: Increased Padding and Height for shadows */
#results-display-container {
    max-height: 90vh; /* Increased height */
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    width: 100%;
    padding: 0 30px 40px 30px; /* Aligned padding */
}
#results-display-container::-webkit-scrollbar { display: none; }

.right-section .advanced-content { display: block; }

.result-sub-heading {
    display: block;
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #000;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.08em; 
    margin-top: 30px; 
    margin-bottom: 15px; 
    padding-left: 2px;
    line-height: 1;
    white-space: normal;
    overflow-wrap: break-word;
}
.mode-results > .result-sub-heading:first-child { margin-top: 0; }

.result-value {
    display: block;
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 3.2rem);
    color: #333;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: break-word;
}
.result-value.small-text { font-size: 1.5rem; color: #555; }

.disclosure-text {
    font-size: 0.86rem; 
    color: #999;
    margin-top: 5px;
    min-height: 2.5em;
    line-height: 1.2;
}

.divider {
    display: none; 
    border: none;
    margin: 0;
}
.hidden { display: none !important; }

/* ============================ */
/* Traffic Light (BORDERLESS GLOW) */
/* ============================ */
.traffic-light-box {
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #eee;
    color: #333;
}

.traffic-light-box.green {
    background-color: #2E7D32; 
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(46, 125, 50, 0.4);
}
.traffic-light-box.green .traffic-title,
.traffic-light-box.green .traffic-desc { color: #fff; }

.traffic-light-box.yellow {
    background-color: #F57F17; 
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(245, 127, 23, 0.4);
}
.traffic-light-box.yellow .traffic-title,
.traffic-light-box.yellow .traffic-desc { color: #fff; }

.traffic-light-box.red {
    background-color: #D32F2F; 
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(211, 47, 47, 0.4);
}
.traffic-light-box.red .traffic-title,
.traffic-light-box.red .traffic-desc { color: #fff; }

.traffic-content { display: flex; flex-direction: column; gap: 5px; }
.traffic-title { font-size: 1.4rem; font-weight: 500; font-family: 'ProductSans-Light', sans-serif; color: #333; }
.traffic-desc { font-size: 1rem; color: #555; }

.law-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 10px;
}
.law-card strong { color: #000; display: block; margin-bottom: 5px; }

.protocol-list {
    list-style: none;
    margin-left: 5px;
}
.protocol-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #444;
    font-size: 1rem;
    line-height: 1.4;
}
.protocol-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #B5855E;
    font-weight: bold;
}

.action-btn {
    width: auto;
    padding: 0;
    background-color: transparent;
    color: #7a7a7a;
    border: none;
    border-radius: 0;
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 0;
}
.action-btn:hover { background-color: transparent; color: #000; }

/* ============================ */
/* UPDATED: Gauge & Progress Bars */
/* ============================ */
.gauge-container {
    margin-top: 10px;
    width: 100%;
}
.gauge-bar {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 6px;
    /* OVERFLOW VISIBLE REQUIRED FOR SHADOWS */
    overflow: visible !important; 
    position: relative;
    z-index: 1;
}
.gauge-fill {
    height: 100%;
    background-color: #f1c40f; /* Default */
    border-radius: 6px;
    position: relative;
    z-index: 2;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.5s ease;
    /* Box Shadow injected via JS */
}

.gauge-label {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Loading Animation */
#loading-bar-container {
    margin-bottom: 30px;
}
.loading-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
}
.loading-bar:after {
    content: "";
    position: absolute;
    left: -50%;
    width: 40%;
    height: 100%;
    background: #B5855E;
    animation: loading 1.5s infinite;
}
.loading-text { font-size: 0.9rem; color: #777; margin-top: 5px; font-style: italic; }

@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 1214px) {
    .calc-section h2 {
        font-size: clamp(3.5rem, 7vw, 6rem);
    }
}

@media (max-width: 990px) {
    .calculator-container {
        padding: 0 5vw;
        flex-direction: column; 
        gap: 60px;
        align-items: center;
    }
    .calc-section { width: 100%; max-width: 600px; }
    .right-section { position: static; }
    .calc-section h2 { font-size: 15vw; padding-bottom: 10px; }
    .input-sub-heading { font-size: 3rem; }
    .result-sub-heading { font-size: 2.2rem; }

    /* NEW: Disable scrolling on mobile results & allow overflow */
    #results-display-container {
        max-height: none;
        overflow-y: visible;
        -webkit-mask-image: none;
        mask-image: none;
        padding: 10px; 
    }
}

@media (max-width: 768px) {
    .global-settings, .mode-inputs, .advanced-content { grid-template-columns: 1fr; }
    .checkbox-group-grid { grid-template-columns: 1fr; }
    .input-sub-heading { font-size: 2.0rem; }
    .result-sub-heading { font-size: 1.6rem; }
    .advanced-content { grid-column: span 1; }
}
/* ============================ */
/* NEW ROBOTO FONTS FOR FOOTER  */
/* ============================ */
@font-face {
    font-family: 'Roboto';
    src: url('../../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 600; /* Matching footer bold weight */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../../fonts/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../../fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================ */
/* FOOTER STYLES                */
/* ============================ */
.site-footer {
    position: relative;
    width: 100%;
    /* Ensure this path points to your image correctly */
    background-image: url('../../img/footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin-top: auto;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 25, 20, 0.85);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 50px 8vw 30px 8vw;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    width: 100%;
    align-items: center;
}

/* Branding */
.footer-left {
    flex: 0 1 auto;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    opacity: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.brand-name {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 100;
    color: #fff;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.tagline {
    font-size: 1rem;
    color: #e0e0e0;
    font-style: italic;
    margin: 0;
}

.description {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    max-width: 300px;
    margin: 5px 0;
}

.email-link {
    color: #D4BCA9;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Links */
.footer-links {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

.footer-col h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.footer-col a {
    color: #bbbbbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

/* Legal */
.footer-legal-row {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: #bbb;
    margin: 0;
}

.disclaimer {
    font-size: 0.7rem;
    color: #999;
    line-height: 1.5;
    max-width: 900px;
    opacity: 0.7;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 990px) {
    .footer-main-row {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 50px;
        flex: auto;
    }
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .footer-col {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .footer-content {
        padding: 40px 5vw 30px 5vw;
    }
}

/* --- BUTTONS --- */
.action-buttons-row { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 600px) {
    #btn-save-pdf { font-size: 0; }
    #btn-save-pdf::after { content: 'PDF'; font-size: 1.15rem; }
}

/* --- MODAL --- */
.tutorial-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 10%, rgba(0,0,0,0.15) 100%);
    backdrop-filter: blur(8px); z-index: 9999; 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.tutorial-overlay.active { opacity: 1; visibility: visible; }

.tutorial-card {
    background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.15); 
    width: 90%; max-width: 800px; padding: 40px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes popIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }

.tutorial-images-row { display: flex; justify-content: center; gap: 30px; width: 100%; margin-bottom: 20px; }
.tut-img-wrapper { flex: 1; aspect-ratio: 1 / 1; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; }
.tut-img-wrapper img { width: 100%; height: 100%; object-fit: contain; }

.proceed-btn {
    border: none; background-color: #f4f4f4; border-radius: 50px;
    font-family: 'ProductSans-Thin', sans-serif; font-size: 1.1rem;
    padding: 10px 50px; color: #ccc; transition: all 0.3s ease;
}
.proceed-btn:not(:disabled) { color: #000; cursor: pointer; font-weight: 600; }
.proceed-btn:not(:disabled):hover { color: #ffffff; background-color: #333333; }

/* --- PRINT VIEW MAGIC (Overhauled) --- */
.print-view { display: none; }
@media print {
    @page { size: letter; margin: 0.4in; } /* Tight margins */
    
    /* Global Overrides - Force Roboto */
    * { font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif !important; color: #000 !important; }
    body { background-color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    
    /* HIDE APP UI */
    body > *:not(#print-view-container) { display: none !important; }

    /* HIDE THE ORIGINAL HTML DUPLICATES */
    .print-footer { display: none !important; } /* Hides big static footer */
    .print-meta p { display: none !important; } /* Hides duplicate REF line */

    /* SHOW PRINT UI */
    #print-view-container { 
        display: block !important; 
        width: 100%;
        min-height: 100vh;
    }
    
    /* --- REPORT HEADER (Double Line Sandwich) --- */
    .print-header { 
        display: flex; 
        align-items: center; /* Center Vertically */
        gap: 30px;
        padding: 10px 0; /* Reduced Padding */
        border-top: 4px solid #000;    /* TOP THICK LINE */
        border-bottom: 4px solid #000; /* BOTTOM THICK LINE */
        margin-bottom: 20px; /* Reduced Margin */
    }
    
    .print-logo { 
        height: 60px; 
        width: auto; 
        /* NO GRAYSCALE - COLORFUL */
    }
    
    .print-meta { 
        flex: 1; 
        text-align: left;
    }
    
    h1#print-doc-title {
        font-size: 16pt;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }
    
    .print-subtitle-row {
        display: none; /* Hidden based on new design */
    }

    /* --- META GRID (Date/Jurisdiction) --- */
    .print-meta-grid {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px; /* Reduced Margin */
        padding-bottom: 5px;
    }
    
    .print-meta-col {
        width: 45%;
        display: flex;
        flex-direction: column;
        gap: 4px; /* Reduced Gap */
    }

    /* --- COMMON ROW STYLES --- */
    .print-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 3px 0; /* Reduced Padding */
        border-bottom: 1px dotted #ccc; 
    }
    
    .print-label {
        font-size: 9pt;
        font-weight: 400; /* Regular weight labels */
        color: #555 !important;
    }
    
    .print-val {
        font-size: 9pt;
        text-align: right;
        font-weight: 700; /* Bold values */
        color: #000 !important;
    }

    /* --- SECTIONS --- */
    .print-section { 
        margin-bottom: 15px; /* Reduced Margin */
        page-break-inside: avoid;
    }
    
    .print-section-header { 
        font-size: 10pt; 
        text-transform: uppercase; 
        font-weight: 700; 
        border-bottom: 1px solid #000; /* THIN LINE BELOW HEADING */
        padding-bottom: 2px;
        margin-bottom: 8px; /* Reduced Margin */
        letter-spacing: 0.5px;
    }
    
    /* Two Column Layout for Data */
    .print-cols-2 {
        display: flex;
        justify-content: space-between;
        gap: 40px;
    }
    .print-col {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* --- NOTES BOX (Side Border Style) --- */
    .print-note-box {
        margin-top: 8px; /* Reduced Margin */
        padding: 3px 0 3px 15px; /* Indent text */
        font-size: 8.5pt;
        line-height: 1.3;
        border-left: 4px solid #555; /* THICK SIDE BORDER */
        font-style: italic;
        color: #333 !important;
    }

    /* --- CHECKLIST --- */
    .print-sub-header {
        font-size: 9pt;
        font-weight: 700;
        text-decoration: underline;
        margin-bottom: 4px;
    }
    .print-check-item {
        font-size: 9pt;
        margin-bottom: 2px;
    }

    /* --- DISCLAIMER FOOTER --- */
    .print-footer-disclaimer {
        margin-top: auto; /* Push to bottom if space allows */
        padding-top: 10px;
        font-size: 7pt;
        text-align: justify;
        line-height: 1.2;
        color: #444 !important;
        border-top: 1px solid #ccc;
        font-family: 'Roboto', sans-serif !important; /* Force Roboto */
    }
    
    /* --- SIGNATURES --- */
    .print-signature-row {
        margin-top: 25px; /* Reduced Margin */
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        gap: 50px;
    }
    .sig-box { flex: 1; }
    .sig-line { border-bottom: 1px solid #000; height: 30px; margin-bottom: 5px; }
    .sig-label { font-size: 7pt; text-transform: uppercase; color: #555 !important; }
}