/* 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: 'Roboto-Thin'; src: url('../../fonts/Roboto-Thin.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; }
@font-face { font-family: 'Roboto'; src: url('../../fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../../fonts/Roboto-Bold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* Page Background Color */
body {
    background-color: #F4F4F4;
    font-family: 'ProductSans-Light', sans-serif;
    color: #444; 
}

/* ============================ */
/* 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; }

/* ============================ */
/* NEW: INTRO EXPLAINER BLOCK   */
/* ============================ */
.intro-explainer {
    width: 100%;
    padding: 0 8vw;
    margin-top: 4vh;
    margin-bottom: 2vh;
    animation: fadeIn 0.6s ease-out;
}

.intro-explainer h2 {
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #333;
    margin-bottom: 15px;
    line-height: 1.1;
}

.intro-explainer p {
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
}

/* ============================ */
/* 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; 
    gap: 80px;
}

.calc-section { min-width: 300px; }
.left-section { flex: 1.8; }
.right-section {
    flex: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 30px;
    height: fit-content;
    z-index: 100;
}

.section-header-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    padding-top: 0px; 
    width: 100%;
}

.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-align: left;
}
.text-link-btn:hover { color: #000; }
.left-section h2, .right-section h2 { text-align: left; }

/* Input Mode Cards */
.mode-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    width: 100%;
    max-width: 480px; 
    margin-bottom: 40px; 
}

.mode-card {
    appearance: none;
    position: relative;
    background-color: #ffffff;
    border: none;
    border-radius: 12px; 
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    overflow: hidden;
    height: 12vh; 
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, outline 0.1s;
    padding: 0;
}
.mode-card:hover { transform: translateY(-3px); box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.1); }
.mode-card.active-mode { box-shadow: 0px 0px 0px 3px #B5855E; }
.mode-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.65); transition: filter 0.3s ease;
}
.mode-card:hover img { filter: brightness(0.75); }
.mode-card span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 95%; white-space: normal; line-height: 1.1;
    font-family: 'ProductSans-Light', sans-serif; font-size: 0.85rem; 
    color: #ffffff; background: none; text-align: center;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 1); pointer-events: none; 
}

/* Inputs Styling */
.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, .advanced-content { grid-column: 1 / -1; }
.advanced-content { margin-top: 0; }
.input-wrapper { width: 100%; }
.input-wrapper label {
    display: flex; align-items: center; min-height: 2.5em; line-height: 1.2;
    font-family: 'ProductSans-Light', sans-serif; font-size: 0.9rem;
    color: #666; margin-bottom: 3px;
}
.copy-action-btn {
    background: #ffffff; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 6px; font-family: 'ProductSans-Light', sans-serif;
    font-size: 0.75rem; padding: 6px 14px; margin-left: 15px;
    cursor: pointer; color: #555; transition: all 0.2s ease; margin-bottom: 0;
}
.copy-action-btn:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); color: #000; }
.input-group { position: relative; width: 100%; }
.input-group input[type=number] {
    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; -moz-appearance: textfield;
}
.input-group input[type=number]::-webkit-outer-spin-button,
.input-group input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.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; cursor: pointer;
    margin-top: 2px; display: block; position: relative; z-index: 5;
    transition: border-width .2s ease, opacity .2s ease;
}
.input-group input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 100%; cursor: pointer; background: transparent; border: none; }
.input-group input[type=range]:hover, .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; }
.input-group input[type=range]::-moz-range-thumb { width: 0; height: 0; border: none; }

/* Custom Dropdown */
.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;
    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); }

/* Results Styling */
.mode-results { display: block; width: 100%; padding-bottom: 15px; }
#results-display-container {
    max-height: 85vh; 
    overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    width: 100%; margin-left: 0; padding-top: 5px; padding-bottom: 25px; padding-left: 0; padding-right: 0;
}
#results-display-container::-webkit-scrollbar { display: none; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 20px; width: 100%; margin-bottom: 50px; }
.right-section .advanced-content { display: block; }
.result-box { text-align: left; min-width: 0; }
.result-label {
    display: block; font-family: 'ProductSans-Light', sans-serif; font-size: 0.9rem;
    color: #666; margin-bottom: 3px; white-space: normal; line-height: 1.2;
}
.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; word-wrap: break-word; word-break: break-word; 
}
.result-value.good { color: #2ecc71; } .result-value.warn { color: #e67e22; } .result-value.bad { color: #e74c3c; }
.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;
}
.mode-results > .result-sub-heading:first-child, .summary-section .result-sub-heading { margin-top: 0; }
.disclosure-text { font-size: 0.86rem; color: #999; margin-top: 5px; min-height: 2.5em; line-height: 1.2; }
.divider { display: none; }

/* Tooltip & Trap */
.cursor-tooltip {
    position: fixed; top: 0; left: 0; width: auto; max-width: 250px; background: #fff;
    padding: 12px 16px; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    pointer-events: none; z-index: 1000; opacity: 0; transition: opacity 0.2s ease, transform 0.1s linear;
    text-align: center; transform: translate(15px, 15px);
}
.cursor-tooltip.active { opacity: 1; }
.tooltip-title { display: block; font-family: 'ProductSans-Thin', sans-serif; font-size: 1.1rem; color: #000; margin-bottom: 4px; text-transform: uppercase; }
.tooltip-desc { display: block; font-family: 'ProductSans-Light', sans-serif; font-size: 0.85rem; color: #666; }
.mileage-trap {
    background-color: #D32F2F; border-radius: 8px; padding: 20px; margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3); display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; color: #ffffff;
}
.trap-title { font-family: 'ProductSans-Light', sans-serif; font-weight: 600; color: #ffffff; text-transform: uppercase; font-size: 0.95rem; margin-bottom: 5px; }
.trap-desc { font-family: 'ProductSans-Light', sans-serif; font-size: 0.9rem; color: rgba(255,255,255,0.9); }

/* Comparison Engine */
.comparison-container {
    margin-top: 50px; background-color: #ffffff; border-radius: 12px; padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: none; width: 100%;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.comparison-container.status-green { background-color: #2ECC71; box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4); }
.comparison-container.status-yellow { background-color: #FF5252; box-shadow: 0 10px 30px rgba(255, 82, 82, 0.4); }
.comparison-container.status-red { background-color: #B71C1C; box-shadow: 0 10px 30px rgba(183, 28, 28, 0.4); }
.badge-container { width: 100%; margin-bottom: 25px; text-align: center; }
.comp-badge {
    display: inline-block; padding: 8px 16px; border-radius: 50px;
    font-family: 'ProductSans-Light', sans-serif; font-weight: 600; font-size: 1rem;
    color: #fff; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.badge-red { background-color: #ffffff; color: #B71C1C !important; }
.badge-yellow { background-color: #ffffff; color: #FF5252 !important; }
.badge-green { background-color: #ffffff; color: #2ECC71 !important; }
.math-stack { display: flex; flex-direction: column; gap: 15px; }
.stack-row { display: flex; justify-content: space-between; align-items: center; font-family: 'ProductSans-Light', sans-serif; color: #555; font-size: 1.1rem; }
.stack-val { font-family: 'ProductSans-Light', sans-serif; font-weight: 600; color: #333; }
.comparison-container.status-red .stack-row, .comparison-container.status-yellow .stack-row, .comparison-container.status-green .stack-row,
.comparison-container.status-red .stack-val, .comparison-container.status-yellow .stack-val, .comparison-container.status-green .stack-val { color: #ffffff; }
.stack-row.highlight { margin-top: 10px; padding-top: 15px; border-top: 1px dashed #ddd; font-size: 1.3rem; color: #000; }
.comparison-container.status-red .stack-row.highlight, .comparison-container.status-yellow .stack-row.highlight, .comparison-container.status-green .stack-row.highlight { color: #ffffff; border-top: 1px dashed rgba(255,255,255,0.5); }
.stack-row.highlight .stack-val { color: #e74c3c; font-family: 'ProductSans-Thin', sans-serif; font-weight: 600; }
.comparison-container.status-red .stack-row.highlight .stack-val, .comparison-container.status-yellow .stack-row.highlight .stack-val, .comparison-container.status-green .stack-row.highlight .stack-val { color: #ffffff; }

/* Gap Visualization */
.gap-visualization { margin-bottom: 25px; width: 100%; }
.chart-track {
    width: 100%; height: 20px; background-color: #f0f0f0; border-radius: 10px;
    display: flex; overflow: hidden; margin-bottom: 10px;
}
.comparison-container.status-red .chart-track, .comparison-container.status-yellow .chart-track, .comparison-container.status-green .chart-track { background-color: rgba(255,255,255,0.3); }
.chart-bar { height: 100%; transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.offer-bar { background-color: #ffffff; }
.comparison-container:not(.status-red):not(.status-yellow):not(.status-green) .offer-bar { background-color: #3498db; }
.gap-bar { background-color: rgba(0,0,0,0.6); }
.comparison-container:not(.status-red):not(.status-yellow):not(.status-green) .gap-bar { background-color: #e74c3c; }
.chart-labels { display: flex; justify-content: center; gap: 20px; font-family: 'ProductSans-Light', sans-serif; font-size: 0.85rem; color: #666; }
.comparison-container.status-red .chart-labels, .comparison-container.status-yellow .chart-labels, .comparison-container.status-green .chart-labels { color: rgba(255,255,255,0.9); }
.chart-legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.white { background-color: #ffffff; } .dot.dark { background-color: rgba(0,0,0,0.6); }
.comparison-container:not(.status-red):not(.status-yellow):not(.status-green) .dot.white { background-color: #3498db; }
.comparison-container:not(.status-red):not(.status-yellow):not(.status-green) .dot.dark { background-color: #e74c3c; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }
.summary-text { font-family: 'ProductSans-Light', sans-serif; font-size: 0.95rem; line-height: 1.5; color: #555; margin-top: 5px; margin-bottom: 25px; text-align: left; white-space: normal; }
.text-red { color: #D32F2F; } .text-green { color: #2ECC71; } .text-yellow { color: #F57F17; } .text-bold { font-weight: 600; }


/* --- NEW: UNIFIED CONTENT STYLING (Gray Background) --- */
.deep-dive-content {
    width: 100%;
    /* No background color set here, so it inherits body #F4F4F4 */
    padding: 0 8vw; /* Matches calculator padding */
    margin-bottom: 60px;
}

.content-wrapper {
    /* No max-width, flows with the design, or match input grid if desired */
    /* To keep it readable, we can restrict width but align left */
    max-width: 900px; 
    margin: 0; /* Aligned left to match inputs/results flow */
}

.content-article h2, .mt-large {
    font-family: 'ProductSans-Thin', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem); /* Matches calculator headers */
    color: #222;
    margin-bottom: 25px;
    margin-top: 60px;
    line-height: 1.1;
    text-transform: none; /* Keep natural */
}

.content-article h2:first-child { margin-top: 0; }

.content-article p, .faq-block p, .sg-item p {
    font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.content-article strong { font-weight: 600; color: #333; }

/* Grid for Comparisons */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.comp-col h3 {
    font-family: 'ProductSans-Light', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
}

.bullet-list { padding-left: 20px; list-style-type: disc; margin-bottom: 20px; }
.bullet-list li { margin-bottom: 8px; color: #555; }

/* State Guide Grid */
.state-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.sg-item h4 { font-family: 'ProductSans-Light', sans-serif; font-weight: 600; font-size: 1.1rem; color: #333; margin-bottom: 8px; }

/* FAQ Section */
.faq-block { margin-bottom: 30px; }
.faq-block h3 { font-family: 'ProductSans-Light', sans-serif; font-weight: 600; font-size: 1.2rem; color: #333; margin-bottom: 10px; }

.glossary-text { line-height: 2 !important; }

/* Responsive Content */
@media (max-width: 990px) {
    .deep-dive-content { padding: 0 5vw; }
    .comparison-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Footer */
.site-footer {
    position: relative; width: 100%; 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; }
.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-Thin', 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; }
.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; }
.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; }

@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; }
}

/* Actions & Modal */
.action-buttons-row { display: flex; gap: 20px; justify-content: flex-start; }
.action-btn {
    background: none; border: none; padding: 0; font-family: 'ProductSans-Light', sans-serif;
    font-size: 1.15rem; color: #7a7a7a; cursor: pointer; transition: color 0.3s ease;
}
.action-btn:hover { color: #000000; }
@media (max-width: 600px) {
    #btn-save-pdf { font-size: 0; } #btn-save-pdf::after { content: 'PDF'; font-size: 1.15rem; }
}
.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;
}
@media (max-width: 600px) { .tutorial-card { width: 95%; padding: 20px; max-height: 90vh; overflow-y: auto; } }
@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; }
@media (max-width: 600px) { .tutorial-images-row { flex-direction: column; gap: 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; }
@media (max-width: 600px) { .tut-img-wrapper { width: 100%; } }
.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; }

/* --- OFFICIAL GOVERNMENT FORM PRINT STYLING (MINIMAL) --- */
.print-view { display: none; }

@media print {
    @page { size: letter; margin: 0.4in; }
    
    body > *:not(#print-view-container) { display: none !important; }
    
    #print-view-container { 
        display: block !important; 
        width: 100%; 
        color: #000; 
        background: #fff;
        font-family: 'Roboto-Light', sans-serif !important; 
    }

    .doc-wrapper {
        width: 100%;
        max-width: 100%;
        border-top: 5px solid #000; 
        padding-top: 20px;
    }

    /* Minimal Header */
    .doc-header {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        /* THICKER LINE TO MATCH TOP BORDER */
        border-bottom: 5px solid #000; 
    }
    .doc-logo {
        height: 60px;
        width: auto;
        margin-right: 30px;
    }
    .doc-title-block h1 {
        font-size: 18pt;
        font-weight: bold;
        margin: 0;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .doc-title-block h2 {
        font-size: 12pt;
        font-weight: normal;
        margin: 5px 0 0 0;
        color: #444;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .doc-meta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
        row-gap: 15px;
        margin-bottom: 30px;
        font-size: 10pt;
    }
    .meta-row { display: flex; align-items: baseline; }
    .meta-label { font-weight: bold; margin-right: 10px; min-width: 80px; }
    .meta-line, .meta-val { flex: 1; border-bottom: 1px dotted #999; padding-bottom: 2px; }
    .meta-val { border-bottom: none; font-family: 'Roboto', sans-serif; }

    /* Minimal Sections (No Boxes) */
    .doc-section {
        margin-bottom: 15px; 
        border: none; 
        page-break-inside: avoid;
    }
    .section-title {
        background-color: transparent; 
        border-bottom: 1px solid #000; 
        padding: 0 0 5px 0;
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 11pt;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .section-content { padding: 0; }

    .data-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        font-size: 10pt;
    }
    .data-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
        padding-bottom: 4px;
        border-bottom: 1px dashed #eee;
    }
    .data-row.highlight {
        border-bottom: 1px solid #000;
        margin-top: 10px;
        padding-top: 5px;
    }
    .lbl { color: #444; }
    .val { color: #000; font-family: 'Roboto', sans-serif; }
    .bold { font-weight: bold; }

    .analyst-note {
        margin-top: 15px;
        padding: 10px;
        background-color: #f9f9f9;
        border-left: 3px solid #666;
        font-size: 9pt;
        font-style: italic;
        line-height: 1.4;
    }
    .context-box { font-size: 10pt; line-height: 1.5; }

    /* Minimal Summary (No Heavy Box) */
    .summary-box {
        border-top: 1px solid #000;
        border-bottom: 1px double #000; 
        padding: 15px 0;
        margin-top: 30px;
    }
    .summary-box .section-title {
        border-bottom: none;
        margin-bottom: 15px;
        color: #999; 
        font-size: 9pt;
    }
    .summary-grid { font-size: 12pt; }
    .sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
    .sum-row.final {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #000;
        font-weight: bold;
        font-size: 14pt;
    }

    .doc-footer {
        margin-top: 40px;
        text-align: center;
        font-size: 9pt;
        color: #666;
    }
    .signature-line {
        display: flex;
        justify-content: space-between;
        margin-top: 60px;
        padding: 0 20px;
    }
    .sig-block { display: flex; flex-direction: column; align-items: center; width: 40%; }
    .sig-rule { margin-bottom: 5px; color: #000; }
    .sig-label { font-size: 8pt; text-transform: uppercase; font-weight: bold; }

    /* Legal Disclaimer */
    .legal-disclaimer {
        margin-top: 30px;
        font-size: 7pt;
        color: #777;
        text-align: justify;
        line-height: 1.3;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }
}