.elementor-2765 .elementor-element.elementor-element-082f504{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2765 .elementor-element.elementor-element-75264a0{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2765 .elementor-element.elementor-element-9adf80e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for html, class: .elementor-element-973d507 */:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --bg-light: #f8f9fa;
    --border: #dfe6e9;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#tool-page-wrapper {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #333;
    line-height: 1.5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
.page-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--accent);
    margin-bottom: 20px;
}
.header-badges { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.version-badge { background: #e3f2fd; color: #2980b9; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.page-header h1 { margin: 0.5rem 0; font-size: 1.8rem; color: var(--primary); }

/* Top Controls */
.top-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 10px; position: relative; }
.save-toast { position: absolute; right: 0; top: -40px; background: var(--success); color: white; padding: 5px 15px; border-radius: 4px; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 999; }
.save-toast.show { opacity: 1; top: 0; }

/* Layout */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr; /* Input vs Result ratio */
    gap: 20px;
}

.input-section, .results-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Input Fields */
h3 { color: var(--primary); margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid #eee; font-size: 1.3rem; }
.section-subtitle { font-size: 0.9rem; text-transform: uppercase; color: #7f8c8d; margin: 20px 0 10px; font-weight: 700; letter-spacing: 0.5px; }

.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 15px; }
.form-group.half { flex: 1; }

label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: #555; }

.form-control, .small-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* --- DROPDOWN FIX (IMPROVED) --- */
.select-wrapper { position: relative; width: 100%; }
.form-select {
    display: block;
    width: 100%;
    /* Fixed Height ensures vertical space */
    height: 48px;
    /* Normal line-height helps preventing cutting off descenders (g, j, p) */
    line-height: 1.5; 
    /* Padding right accommodates the arrow */
    padding: 10px 35px 10px 12px;
    font-size: 1rem;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
    -webkit-appearance: none; appearance: none;
    /* Arrow Icon */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-sizing: border-box;
}

/* Range Slider */
.range-container { display: flex; align-items: center; gap: 10px; }
.small-input { width: 70px; text-align: center; font-weight: bold; color: var(--primary); }
input[type=range] { flex: 1; accent-color: var(--primary); }
.api-tag { font-size: 0.7rem; background: #e3f2fd; color: #2980b9; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 5px; }

/* Checkbox */
.checkbox-group { background: #f0f3f4; padding: 12px; border-radius: 6px; margin-bottom: 15px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-custom { min-width: 18px; height: 18px; border: 2px solid var(--primary); border-radius: 4px; position: relative; margin-top: 3px; }
input[type="checkbox"]:checked + .checkbox-custom::after { content: '✔'; position: absolute; font-size: 14px; color: var(--primary); top: -2px; left: 2px; }
input[type="checkbox"] { display: none; }
.sub-text { font-size: 0.8rem; color: #7f8c8d; font-weight: normal; }

/* Buttons */
.tool-footer { display: flex; gap: 10px; margin-top: 20px; }
.btn { flex: 1; padding: 12px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s; }
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--accent); }
.btn-success { background: var(--success); }
.btn-secondary { background: #95a5a6; }
.btn-outline { background: white; border: 1px solid var(--primary); color: var(--primary); padding: 8px 15px; font-size: 0.9rem; width: auto; flex: none; }

/* Results Grid */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.result-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 15px; position: relative; }
.result-label { font-size: 0.85rem; color: #7f8c8d; text-transform: uppercase; margin-bottom: 5px; }
.result-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.highlight { grid-column: span 2; background: var(--primary); color: white; border: none; }
.highlight .result-value { color: white; font-size: 2rem; }
.highlight .result-label { color: rgba(255,255,255,0.7); }
.sub-value { font-size: 0.8rem; opacity: 0.8; }
.tax-badge { position: absolute; top: 10px; right: 10px; font-size: 0.7rem; background: #e8f8f5; color: var(--success); padding: 2px 8px; border-radius: 10px; }

/* Comparison Section */
.comparison-card { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 0; margin-bottom: 25px; overflow: hidden; }
.cmp-header { background: #ffecb3; padding: 10px 15px; font-weight: 700; color: #f57f17; font-size: 0.95rem; }
.cmp-body { display: flex; align-items: stretch; }
.cmp-side { flex: 1; padding: 15px; text-align: center; }
.ops-side { background: rgba(255,255,255,0.5); }
.nps-side { background: rgba(0,0,0,0.02); }
.cmp-divider { display: flex; align-items: center; font-weight: 900; color: #aaa; font-size: 0.8rem; }
.cmp-title { font-size: 0.8rem; font-weight: 700; color: #666; margin-bottom: 5px; }
.cmp-value { font-size: 1.3rem; font-weight: 800; }
.ops-side .cmp-value { color: var(--success); }
.nps-side .cmp-value { color: #7f8c8d; }
.cmp-desc { font-size: 0.75rem; color: #888; margin-top: 5px; }
.cmp-footer { text-align: center; padding: 8px; background: rgba(0,0,0,0.03); font-size: 0.85rem; color: #555; border-top: 1px solid #ffe082; }

/* Commutation Block */
.commutation-block { background: #fdfefe; border: 1px dashed var(--primary); border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.commutation-block h4 { margin: 0 0 15px 0; font-size: 1rem; color: var(--primary); }
.comm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.comm-item { text-align: center; }
.comm-item span { display: block; font-size: 0.75rem; color: #888; }
.comm-item strong { display: block; font-size: 1.1rem; }
.green-text { color: var(--success); }
.red-text { color: var(--accent); }

/* --- NEW FAMILY PENSION CARD DESIGN --- */
.family-pension-card {
    background: linear-gradient(to right, #f3e5f5, #fff);
    border-left: 5px solid #9b59b6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.fp-header {
    background: #9b59b6;
    color: white;
    padding: 8px 15px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fp-content {
    padding: 0;
}
.fp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(155, 89, 182, 0.1);
}
.fp-row:last-child { border-bottom: none; }
.fp-label strong { display: block; color: #4a235a; font-size: 1rem; }
.fp-label small { color: #888; font-size: 0.8rem; }
.fp-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #8e44ad;
}

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.saved-item { border: 1px solid #eee; padding: 10px; margin-bottom: 10px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.saved-item:hover { background: #f9f9f9; }
.delete-save { color: var(--accent); background: none; border: none; cursor: pointer; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-container { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .results-grid { grid-template-columns: 1fr; }
    .highlight { grid-column: auto; }
    .comm-grid { grid-template-columns: 1fr; gap: 15px; }
    .cmp-body { flex-direction: column; }
    .cmp-divider { display: none; }
    .page-header h1 { font-size: 1.4rem; }
    .top-controls { flex-wrap: wrap; }
    
    .result-value, .cmp-value { font-size: 1.2rem; word-wrap: break-word; }
    .highlight .result-value { font-size: 1.6rem; }
}

/* Print Styles */
@media print {
    body { background: #fff; }
    .page-header { border: none; box-shadow: none; margin-bottom: 10px; }
    .top-controls, .tool-footer, .checkbox-group, #scenarios-modal, .save-toast { display: none !important; }
    .calculator-container { display: block; }
    .input-section, .results-section { box-shadow: none; border: 1px solid #ddd; margin-bottom: 20px; page-break-inside: avoid; }
    .range-container input[type=range] { display: none; }
    .range-container .small-input { border: none; font-weight: bold; width: auto; text-align: left; padding: 0; }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-53b12b0 *//* =========================================
   PROFESSIONAL SEO & INFO SECTION
   ========================================= */

.seo-content-wrapper {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    font-size: 16px; /* Google Mobile Friendly Base */
    line-height: 1.6;
    color: #444;
    box-sizing: border-box;
}

/* Common Card Style - Matches Tool Calculator */
.content-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    /* Matches var(--shadow) from tool */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    border: 1px solid #dfe6e9; /* Matches var(--border) */
}

/* Headings */
.content-card h2 {
    color: #2c3e50; /* var(--primary) */
    font-size: 1.6rem;
    margin-top: 0;
    border-bottom: 2px solid #f0f3f4;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.content-card h3 {
    color: #e74c3c; /* var(--accent) */
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Internal Links Bar --- */
.internal-links-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding-bottom: 5px;
}

.link-label {
    font-weight: 700;
    color: #2c3e50;
    white-space: nowrap;
}

.link-scroll-area {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.link-scroll-area::-webkit-scrollbar { display: none; /* Hide scrollbar Chrome */ }

.internal-link {
    text-decoration: none;
    background: white;
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #2c3e50;
    white-space: nowrap;
    transition: all 0.2s;
}

.internal-link:hover {
    background: #2c3e50;
    color: white;
}

/* --- How to Calculate (Steps) --- */
.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns on Desktop */
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
    align-items: flex-start;
}

.step-icon {
    background: #2c3e50;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text strong { display: block; color: #2c3e50; font-size: 1.05rem; margin-bottom: 4px; }
.step-text p { margin: 0; font-size: 0.9rem; color: #666; line-height: 1.4; }

/* --- Formula Grid --- */
.formula-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns Desktop */
    gap: 15px;
}

.f-item {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.f-label { font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; letter-spacing: 0.5px; }
.f-value { font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; color: #f1c40f; }
.f-sub { font-size: 0.75rem; opacity: 0.8; font-style: italic; }

/* --- Modern FAQ Accordion --- */
.faq-box {
    margin-bottom: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-box summary {
    background: #fdfdfd;
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: #444;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-box summary:hover { background: #f8f9fa; }
.faq-box summary::-webkit-details-marker { display: none; }

.faq-box summary::after {
    content: '+';
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-left: 10px;
}

.faq-box[open] summary::after { content: '-'; }
.faq-box[open] summary { background: #f0f3f4; color: #2c3e50; border-bottom: 1px solid #eee; }

.faq-content { padding: 15px; background: white; color: #555; font-size: 0.95rem; line-height: 1.6; }

/* --- Footer --- */
.seo-footer {
    text-align: center;
    padding: 15px;
    background: #f1f2f6;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 768px) {
    /* Reduce margin on mobile */
    .seo-content-wrapper { margin-top: 20px; gap: 20px; }
    
    /* Reduce padding to maximize screen space */
    .content-card { padding: 15px; }

    /* Stack Steps Vertically */
    .steps-container { grid-template-columns: 1fr; gap: 15px; }
    
    /* Stack Formulas Vertically */
    .formula-grid { grid-template-columns: 1fr; gap: 15px; }

    /* Internal Links - Stack label and scroll area */
    .internal-links-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .link-scroll-area { width: 100%; }

    /* Adjust Headers */
    .content-card h2 { font-size: 1.3rem; }
    .content-card h3 { font-size: 1.1rem; }
}

@media print {
    /* Hide SEO content when printing the calculation result */
    .seo-content-wrapper { display: none; }
}/* End custom CSS */