/* Property Calculator v1.0 - Copyright 2025  ID: 7b9c8d2a-4e5f-11ec-81d3-0242ac130003 */
html {
    height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font: normal .95em 'trebuchet ms', arial, sans-serif;
    background: #F0EFE2 url(background.png) repeat;
    color: #484848;
    font-family: 'Hanken Grotesk', sans-serif;
}

p {
    padding: 0 0 1px 0;
    font-size: 18px;
    line-height: 33px;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font: normal 175% 'century gothic', arial, sans-serif;
    color: #43423F;
    margin: 0 0 15px 0;
    padding: 15px 0 5px 0;
}

h2, h4, h5, h6 {
    color: #1293EE;
}

h4, h5, h6 {
    font: normal 120% arial, sans-serif;
    padding: 0 0 5px 0;
}

h5, h6 {
    font: italic arial, sans-serif;
    padding: 0 0 15px 0;
    color: #000;
}

h6 {
    color: #362C20;
}

a, a:hover {
    outline: none;
    text-decoration: underline;
    color: #1488da;
    font-family: 'Hanken Grotesk', sans-serif;
}

a:hover {
    text-decoration: none;
    color: #444;
}

ul {
    margin: 2px 0 22px 17px;
}

ul li {
    list-style-type: circle;
    margin: 0 0 6px 0;
    padding: 0 0 4px 5px;
}

ol {
    margin: 8px 0 22px 20px;
}

ol li {
    margin: 0 0 11px 0;
    font-size: 14pt;
}








        @media screen and (max-width: 768px) {
            #form_calculate_2 {
                width: 99% !important;
            }
        }
        .nav-tabs {
            border-bottom: none;
            margin-bottom: 20px;
            list-style: none;
        }
        .nav-tabs li {
            list-style: none !important;
        }
        .nav-tabs .nav-item {
            margin-bottom: -2px;
        }
        .nav-tabs .nav-link {
            border: none;
            border-radius: 6px 6px 0 0;
            padding: 12px 6px;
            font-family: 'Hanken Grotesk', sans-serif;
            font-weight: 500;
            font-size: 16px;
            color: #000000;
            background-color: #4a86ee;
            transition: all 0.3s ease;
            margin-right: 3px;
        }
        .nav-tabs .nav-link:hover {
            background-color: #007bff;
            color: #ffffff;
        }
        .nav-tabs .nav-link.active {
            background-color: #ff8484;
            color: #fff;
            font-weight: 600;
            border-bottom: 2px solid #007bff;
        }


        #groundRentTabs.nav-tabs .nav-link.active {
        background-color: #0056b3; /* Your blue */
        color: #fff;
        font-weight: 600;
        border-bottom: 2px solid #0056b3;
        }



        .results-calculator .results-item h3 {
            font-family: 'Hanken Grotesk', sans-serif;
            font-size: 28px;
            font-weight: 600;
            color: #000;
            margin-bottom: 10px;
        }
        .results-calculator .results-item p {
            font-size: 30px;
            color: #555;
        }
        label {
            display: block;
            margin-top: 15px;
            font-weight: bold;
            color: #495057;
        }
        input[type="number"] {
            width: 100px;
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            box-sizing: border-box;
            font-size: 16px;
            transition: border-color 0.3s;
            display: inline-block;
        }
        input[type="number"]:focus {
            border-color: #007bff;
            outline: none;
        }
        .input-container {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }
        .input-container span {
            margin-left: 10px;
            font-size: 16px;
            color: #495057;
        }
        input[type="range"] {
            width: 100%;
            margin-top: 30px;
            -webkit-appearance: none;
            height: 9px;
            background: #d1e7ff;
            border-radius: 4px;
            outline: none;
            transition: background 0.3s;
        }
        input[type="range"]#capRate_rpi {
            background: linear-gradient(to right, 
                #d1e7ff 0%, 
                #d1e7ff 40%, 
                #ff0000 40%, 
                #ff0000 60%, 
                #d1e7ff 60%, 
                #d1e7ff 100%);
        }
        input[type="range"]#rpi_rpi {
            background: linear-gradient(to right, 
                #d1e7ff 0%, 
                #d1e7ff calc((0.1 - 0.1) / (8 - 0.1) * 100%), 
                #ff0000 calc((0.1 - 0.1) / (8 - 0.1) * 100%) calc((2.5 - 0.1) / (8 - 0.1) * 100%), 
                #d1e7ff calc((2.5 - 0.1) / (8 - 0.1) * 100%) 100%);
        }
        input[type="range"]#capRateSlider_interval {
            background: linear-gradient(to right, 
                #ccc 0% calc((6 - 3) / (10 - 3) * 100%), 
                #ff0000 calc((6 - 3) / (10 - 3) * 100%) calc((7 - 3) / (10 - 3) * 100%), 
                #ccc calc((7 - 3) / (10 - 3) * 100%) 100%);
            height: 8px;
            border-radius: 5px;
        }
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            border: 1px solid #0056b3;
            box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
        }
        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            border: 1px solid #0056b3;
            box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
        }
        input[type="range"]:focus {
            background: #b3d7ff;
        }
        input[type="range"]#capRate_rpi:focus {
            background: linear-gradient(to right, 
                #b3d7ff 0%, 
                #b3d7ff 40%, 
                #ff6666 40%, 
                #ff6666 60%, 
                #b3d7ff 60%, 
                #b3d7ff 100%);
        }
        input[type="range"]#rpi_rpi:focus {
            background: linear-gradient(to right, 
                #b3d7ff 0%, 
                #b3d7ff calc((0.1 - 0.1) / (8 - 0.1) * 100%), 
                #ff6666 calc((0.1 - 0.1) / (8 - 0.1) * 100%) calc((2.5 - 0.1) / (8 - 0.1) * 100%), 
                #b3d7ff calc((2.5 - 0.1) / (8 - 0.1) * 100%) 100%);
        }
        input[type="range"]#capRateSlider_interval:focus {
            background: linear-gradient(to right, 
                #b3d7ff 0%, 
                #b3d7ff calc((6 - 3) / (10 - 3) * 100%), 
                #ff6666 calc((6 - 3) / (10 - 3) * 100%) calc((7 - 3) / (10 - 3) * 100%), 
                #b3d7ff calc((7 - 3) / (10 - 3) * 100%) 100%);
        }
        .slider-value {
            margin-top: 10px;
            font-size: 16px;
            color: #495057;
            text-align: left;
        }
        #capRateValue_interval, #capRateValue_rpi, #rpiValue_rpi, #frequencyValue_rpi, #nextReviewValue_rpi, #equivalentRateValue_rpi {
            margin-left: 10px;
        }
        .grid-chart-container, .line-chart-container {
            margin-top: 20px;
            width: 100%;
        }
        .grid-chart-container svg, .line-chart-container svg {
            max-width: 100%;
        }
        .line-chart-legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
        }
        .line-chart-legend div {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .line-chart-legend span {
            font-size: 16px;
        }























/* Layout */
#main {
    margin: 0 auto;
    background-color: #f6f7f9;
}

.wrap-header {
    background-color: #fff;
}

#header {
    display: flex;
    align-items: center;
    max-width: 1260px;
    margin: 0 auto;
    padding: 12px 0;
}

#logo {
    max-width: 825px;
    width: 100%;
    max-width: fit-content;
}

#logo h1, #logo h2 {
    font: normal 'century gothic', arial, sans-serif;
    border-bottom: 0;
    text-transform: none;
    margin: 0;
    font-family: 'Hanken Grotesk', sans-serif;
}

#logo h1 {
    font-size: 24px;
    padding: 0;
}

#logo h2 {
    font-size: 16px;
    padding: 4px 0 0 0;
    color: #1b5a86;
}

#logo_text h1, #logo_text h1 a, #logo_text h1 a:hover {
    padding: 22px 0 0 0;
    color: #1b5a86;
    letter-spacing: 0.1em;
    text-decoration: none;
}

#logo_text h1 a .logo_colour {
    color: #378cc7;
}

#menubar {
    max-width: 837px;
    margin: 0 auto;
    width: 100%;
    max-width: fit-content;
}

ul#menu {
    display: flex;
    margin: 0;
    padding: 0;
}

ul#menu li {
    list-style: none;
}

ul#menu li a {
    display: block;
    line-height: 72px;
    padding: 0 25px;
    text-align: center;
    color: #506690;
    text-decoration: none;
    font: normal 100% arial, sans-serif;
    font-weight: 600;
    font-size: 17px;
    font-family: 'Hanken Grotesk', sans-serif;
}

ul#menu li a:hover, ul#menu li.selected a, ul#menu li.selected a:hover {
    color: #1293EE;
}

#site_content {
    width: 100%;
    margin: 6px auto 0;
    max-width: 1260px;
    background-color: #f6f7f9;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

#content {
    text-align: left;
    width: 595px;
    padding: 1em;
    border: 1px solid rgb(233, 233, 233);
    background-color: #fff;
    color: #333;
}

.sidebar {
    float: right;
    width: 190px;
    padding: 20px;
}

#content ul {
    font-size: 18px;
    margin: 2px 0 0;
}

#content ul li {
    list-style-type: none;
    background: url(bullet.png) 0 5px no-repeat;
    margin: 0 0 6px 0;
    padding: 0 0 4px 25px;
    line-height: 1.5em;
}

#groundRentTabs.nav.nav-tabs li {
    list-style-type: none;
    margin: 0 0 0px 0;
    background: none;
    padding: 0 0 0px 0px;
    line-height: 1.9em;
}

#content h1, #content h2, #content h3 {
    font-weight: 700;
    color: #3a739b;
}

#content h1, #content h2 {
    font-size: 32px;
    line-height: 40px;
}

#footer {
    padding: 0;
}

footer.footer {
    background-color: #2B354F;
    margin: 0;
    padding: 80px 0 40px;
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.footer-col {
    padding: 0 12px;
    width: 25%;
}

.footer-inner ul, .footer-inner li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-inner ul a {
    color: #869ab8 !important;
    font-size: 17px;
}

.footer .copyright {
    max-width: 1260px;
    margin: 80px auto 0;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
}

/* Flowchart */
.flowchart {
    position: relative;
    font-family: Arial, sans-serif;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 270px;
    height: 35px;
    border: 1px solid #007bff;
    border-radius: 5px;
    text-align: center;
    background-color: #e7f1ff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.22);
    color: #333;
    text-decoration: none;
    font-size: 16px;
    margin: 0 auto 10px;
    transition: background-color 0.2s;
}

.box:hover {
    background-color: #d0e4fe;
}

.arrow {
    display: block;
    margin: 0 auto 3px;
    color: #007bff;
    font-size: 38px;
    text-align: center;
}

#box1 {
    margin-top: 10px;
}

/* Form and Calculator */
.formtt_2 h1.display-4 {
    font-size: 2.6875rem;
    font-weight: 400;
}

.cacculator_form {
    padding-top: 0rem;
}

.cacculator_form .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 17px;
}

.cacculator_form input[type=text] {
    min-width: 160px;
    padding: 10px;
    border: 1px solid #d4cfe1;
    border-radius: 3px;
    margin: 0 3px 0 5px;
    box-shadow: none;
}

input[type="number"] {
    width: 100px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    display: inline-block;
}

input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
}

.input-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.input-container span {
    margin-left: 10px;
    font-size: 16px;
    color: #495057;
}

input[type="range"] {
    width: 100%;
    margin-top: 10px;
    -webkit-appearance: none;
    height: 8px;
    background: #d1e7ff;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]#capRate_rpi {
    background: linear-gradient(to right, 
        #d1e7ff 0%, 
        #d1e7ff 40%, 
        #ff0000 40%, 
        #ff0000 60%, 
        #d1e7ff 60%, 
        #d1e7ff 100%);
}

input[type="range"]#rpi_rpi {
    background: linear-gradient(to right, 
        #d1e7ff 0%, 
        #d1e7ff calc((0.1 - 0.1) / (8 - 0.1) * 100%), 
        #ff0000 calc((0.1 - 0.1) / (8 - 0.1) * 100%) calc((2.5 - 0.1) / (8 - 0.1) * 100%), 
        #d1e7ff calc((2.5 - 0.1) / (8 - 0.1) * 100%) 100%);
}

input[type="range"]#capRateSlider_interval {
    background: linear-gradient(to right, 
        #ccc 0% calc((6 - 3) / (10 - 3) * 100%), 
        #ff0000 calc((6 - 3) / (10 - 3) * 100%) calc((7 - 3) / (10 - 3) * 100%), 
        #ccc calc((7 - 3) / (10 - 3) * 100%) 100%);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #0056b3;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #0056b3;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

input[type="range"]:focus {
    background: #b3d7ff;
}

input[type="range"]#capRate_rpi:focus {
    background: linear-gradient(to right, 
        #b3d7ff 0%, 
        #b3d7ff 40%, 
        #ff6666 40%, 
        #ff6666 60%, 
        #b3d7ff 60%, 
        #b3d7ff 100%);
}

input[type="range"]#rpi_rpi:focus {
    background: linear-gradient(to right, 
        #b3d7ff 0%, 
        #b3d7ff calc((0.1 - 0.1) / (8 - 0.1) * 100%), 
        #ff6666 calc((0.1 - 0.1) / (8 - 0.1) * 100%) calc((2.5 - 0.1) / (8 - 0.1) * 100%), 
        #b3d7ff calc((2.5 - 0.1) / (8 - 0.1) * 100%) 100%);
}

input[type="range"]#capRateSlider_interval:focus {
    background: linear-gradient(to right, 
        #b3d7ff 0%, 
        #b3d7ff calc((6 - 3) / (10 - 3) * 100%), 
        #ff6666 calc((6 - 3) / (10 - 3) * 100%) calc((7 - 3) / (10 - 3) * 100%), 
        #b3d7ff calc((7 - 3) / (10 - 3) * 100%) 100%);
}

.slider-value {
    margin-top: 10px;
    font-size: 16px;
    color: #495057;
    text-align: left;
}

#capRateValue_interval, #capRateValue_rpi, #rpiValue_rpi, #frequencyValue_rpi, #nextReviewValue_rpi, #equivalentRateValue_rpi {
    margin-left: 10px;
}

.calculator-label {
    display: block;

    font-weight: bold;
    color: #495057;
    font-size: 18px;
}

.property-value {
    position: relative;
}

.property-value::before {
    content: "£";
    font-size: 18px;
    font-weight: 400;
    color: #1186ad;
    top: 7px;
    left: 12px;
    z-index: 1;
}

.cacculator_form .property-value .height {
    padding-left: 20px;
}

.results-calculator {
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(61, 64, 61, 0.06);
    background-color: #fff;
    padding: 20px;
}

.results-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    column-gap: 0;
}

#content ul.results-list li {
    background: none;
    flex: 1;
    position: relative;
    padding-left: 0;
    text-align: center;
    margin-left: 5px;
}

.results-item-first::before,
.results-item-second::before,
.results-item-third::before {
    position: absolute;
    left: 0;
    width: 100%;
    height: 25px;
    content: "";
    border-radius: 12px;
}

.results-item-first::before {
    background-color: #9dc7ff;
}

.results-item-second::before {
    background-color: #009b91;
}

.results-item-third::before {
    background-color: #fe0039;
}

.results-item-second.results-item-rate::before {
    display: none;
}

.results-item h3 {
    padding-top: 30px;
    color: #3d403d;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 22px;
    font-weight: bold;
}

.results-calculator .results-item h3 {
    font-size: 25px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.results-calculator .results-item h3::before {
    content: "£";
    font-size: 25px;
    margin-right: 5px;
}

.results-item p,
.results-calculator .results-item p {
    color: #3d403d;
    font-size: 26px;
    font-weight: normal;
    line-height: 1.5;
}

.low-wrapper {
    color: #53beb4 !important;
}

.medium-wrapper {
    color: #ff9915 !important;
}

.high-wrapper {
    color: #ff0000 !important;
}

.cacculator_form .gr-btn {
    background-color: #1293EE;
}

input#months {
    width: 40px;
    min-width: unset;
}

.valbtn, .gr-btn {
    line-height: 42px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    text-shadow: none;
    display: inline-block;
    padding: 0 20px;
    font-family: 'trebuchet ms', arial, sans-serif;
    transition: all .5s ease;
    cursor: pointer;
}

.valbtn {
    background: #f78059;
}

.gr-btn {
    background: #5ddb92;
}

.valbtn:hover, .gr-btn:hover {
    opacity: .95;
    color: #fff;
}

button {
    border: 0;
    -webkit-appearance: none;
}

.progress, .progress-rate {
    background-color: grey;
    border-radius: 20px;
    height: 26px;
    width: 800px;
    max-width: 100%;
}

.progress-done, .progress-done-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f76900;
    border-radius: 12px;
    color: #fff;
    height: 100%;
    max-width: 100%;
    transition: 1s ease 0.3s;
}

.progress-done {
    width: 0;
}

.progress-done-rate {
    width: 69.422%;
}

.progress-done .symbol {
    display: none;
}

.progress-done span.symbol {
    padding-left: 40px;
    margin-right: 2px;
}

.progress-done-rate span.symbol-rate {
    padding-left: 40px;
    margin-right: -28px;
}

.progress-text-rate {
    padding-left: 30px;
}

.results-custom-rate {
    box-shadow: none;
    background: none;
    padding: 0;
    margin: 0;
}

.col-md-6 {
    width: 50%;
}

.col-md-4 {
    width: 33.33%;
}

.results > div {
    font-size: 27px;
}

.offset-md-6 {
    margin-left: 50%;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    padding: 0;
}

.nav-tabs .nav-item {
    margin-bottom: -2px;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 12px 8px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    background-color: #d8e6ff;
    transition: all 0.3s ease;
    margin-right: 3px;
}

.nav-tabs .nav-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
}

.nav-tabs .nav-link:focus {
    outline: none;
}


/* Top Image */
.top-page {
    position: relative;
    background: linear-gradient(180deg, #17567b 50%, transparent 0);
    width: 100%;
    padding-top: 30px;
}

.wrap-top-img {
    max-width: 1260px;
    margin: 0 auto;
}

.wrap-top-inner {
    width: 70%;
}

.top-content-img {
    width: 100%;
    height: 150px;
}

/* Charts */
.grid-chart-container svg text,
.line-chart-container svg text {
    font-size: 16px;
}

.grid-chart-container svg .axis text,
.line-chart-container svg .axis text {
    font-size: 16px;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .img-desktop {
        display: none;
    }

    .img-mobile {
        display: block;
        margin: 40px 0 20px;
    }

    .wrap-top-inner {
        width: 100%;
    }
}

@media screen and (max-width: 1100px) {
    #logo h1 {
        font-size: 22px;
    }

    #logo h2 {
        font-size: 16px;
    }

    ul#menu li a {
        font-size: 16px;
        padding: 0 18px;
    }
}

@media screen and (max-width: 1024px) {
    .cacculator_form .col-xs-12 {
        width: 100%;
    }

    .cacculator_form input[type=text] {
        min-width: 80%;
        margin: 10px 0 0;
        padding: 14px;
    }

    input#months {
        min-width: 80%;
    }

    .property-value::before {
        top: 21px;
    }

    .cacculator_form .property-value .height {
        padding-left: 28px;
    }

    .cacculator_form .offset-md-6 {
        margin-left: 0;
    }

    .results-list {
        flex-wrap: wrap;
    }

    #content ul.results-list li {
        flex-basis: 100%;
        padding: 0 0 10px 30px;
        margin-bottom: 10px;
    }

    .results-item::before {
        width: 10px;
        height: 100%;
    }

    .results-calculator .btn-ord-2 {
        display: flex;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 990px) {
    #header {
        flex-direction: column;
        padding-bottom: 20px;
    }

    #menubar, #logo {
        width: 100%;
        max-width: none;
    }

    #logo {
        padding: 0 5px;
    }

    #logo_text h1 a {
        font-size: 17px;
    }

    ul#menu {
        margin-top: 20px;
        flex-direction: column;
    }

    ul#menu li {
        display: block;
        border-top: 1px solid #f1f4f8;
    }

    ul#menu li a {
        line-height: 50px;
        text-align: left;
        white-space: nowrap;
    }

    #menubar {
        display: none;
    }

    .navbar-toggler {
        position: absolute;
        top: 26px;
        right: 15px;
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: #000;
    }
}

@media screen and (max-width: 880px) {
    footer.footer {
        padding: 80px 30px 40px;
    }

    .footer-col {
        margin-bottom: 30px;
        padding: 0 12px;
        width: 50%;
    }

    .footer .copyright {
        margin-top: 32px;
    }
}

@media screen and (max-width: 767px) {
    #site_content {
        flex-direction: column;
    }

    #content {
        width: 100%;
        max-width: 100%;
        order: 1;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        order: 2;
        float: none;
    }

    #logo {
        padding: 0 25px;
        height: 111px;
    }

    #logo_text h1 a {
        font-size: 17px;
        padding: 5px 0;
    }

    #logo_text h2 {
        font-size: 16px;
    }

    ul#menu li a {
        line-height: 50px;
        padding: 0 15px;
        font-size: 16px;
    }

    #form_calculate_2 {
        width: 80%;
    }

    div#site_content {
        padding: 25px 15px;
    }

    .col-md-6, .col-md-4 {
        width: 100%;
    }

    .results > div {
        width: 33.33%;
        margin: 0 !important;
    }

    .results {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 520px) {
    .results-calculator {
        padding: 30px 10px;
    }

    .cacculator_form input[type=text] {
        min-width: 70%;
    }

    input#months {
        min-width: 70%;
    }
}

@media screen and (max-width: 500px) {
    .progress, .progress-rate {
        height: 20px;
        width: 260px;
    }
}

@media screen and (max-width: 480px) {
    .results-calculator .results-item h3 {
        font-size: 16px;
    }

    #content h3 {
        font-size: 19pt;
    }
}

@media screen and (max-width: 378px) {
    .cacculator_form input[type=text] {
        min-width: 60%;
    }

    input#months {
        min-width: 60%;
    }
}

@media (min-width: 768px) {
    #site_content {
        display: flex;
        flex-wrap: wrap;
    }

    #content {
        width: 100%;
        max-width: 70%;
        order: 1;
    }

    .sidebar {
        width: 90%;
        max-width: 30%;
        order: 2;
        float: right;
    }
}

.author-image {
    width: 65px;
    height: 67px;
    border-radius: 30%;
    margin-right: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info p {
    padding-bottom: 1px;
}

.author-name {
    margin: 0;
    font-size: 1.1em;
}

.author-description {
    margin: 1px 0;
}

.author-link {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.author-link:hover {
    text-decoration: underline;
}

.author-snippet {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #f3f3f3;
    border-radius: 10px;
}

.author-info1 img {
    float: left;
    margin-right: 20px;
}

.author-info1 p {
    font-size: 1.3em;
}

#chart-legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}
#chart-legend div {
    display: flex;
    align-items: center;
    gap: 5px;
}
#chart-legend span {
    font-size: 16px;
}


#premium-bar-chart {
    width: 100%;
    max-width: 400px; /* Optional: to prevent it from becoming too wide on large screens */
    margin: 0 auto;
}