/* Metropolis Black */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Metropolis Black Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

/* Metropolis Bold */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Metropolis Bold Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* Metropolis Extra Bold */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* Metropolis Extra Bold Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ExtraBoldItalic.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
}

/* Metropolis Extra Light */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

/* Metropolis Extra Light Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ExtraLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

/* Metropolis Light */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* Metropolis Light Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

/* Metropolis Medium */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* Metropolis Medium Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

/* Metropolis Regular */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Metropolis Regular Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

/* Metropolis Semi Bold */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Metropolis Semi Bold Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-SemiBoldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}

/* Metropolis Thin */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

/* Metropolis Thin Italic */
@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

body {
    background:#eaeaea;
    /* The font needs to be changed to Metropolis. */
    font-family: "Metropolis", "Arial", sans-serif;
}

.vp-calc {
    max-width:540px;
    min-width:320px;
    box-shadow:1px 1px 5px rgba(0,0,0,0.1);
    background:#ffffff;
    border-radius:20px;
    margin:auto;
    padding:30px;
}

.vp-calc h2 {
    font-weight: 600;
}

.vp-calc h2, .vp-calc h3, .vp-calc h4 {
    margin: 0;
    color:#00488b;
}

.flex {
    display: flex;
}

.toplogo {
    text-align:center;
    margin-bottom:20px;
}

.toplogo img{
    width: 150px;
    height: auto;
}

.vpc-header {
    align-items: center;
    margin-top: -3px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.calc-title-container {
    text-align: center;
    justify-content: right;
    align-items: center;
}

.calc-icon img {
    height: 60px;
    margin-right: 0px;
}

.vpc-title {
    font-family: "Metropolis", "Arial", sans-serif;
    align-items: left;
    margin-left: 10px;
}

.vpc-title hr {
    width: 200px;
    margin-left: 0px;
    background-color: #f1efeb;
    height: 5px;
    border: none;
}

.reset img,
.download img {
    width: 30px;
    display: flex;
}

.reset img {
    margin-right: 10px;
}


.reset img:hover,
.download img:hover {
    cursor: pointer;
}

.vpc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.vpcb-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spli-container {
    flex-direction: column;
}

.spli-container h4 {
    margin-bottom: 20px;
}

.spli-item {
    align-items: center;
    position: relative;
}

.spli-item span {
    flex: 1;
    display: flex;
    align-items: center;
    color: #7a7a7a;
    font-size: 14px;
}

.spli-item input {
    border: none;
    width: 50px;
    font-size: 14px;
    text-align: right;
    padding-top: 3px;
    color: #7a7a7a;
}

.spli-item input:focus {
    outline: none;
    border: none;
}

.spli-item .name-input {
    width: 140px;
    text-align: left;
}

.spli-right {
    display: flex;
}

.spli-right span {
    display: flex;
}


/* .featured {
    width: 30px;
    align-items: center;
} */

.remove {
    background-color: #f8cacb;
    padding: 7px;
    border-radius: 20px;
    width: 10px;
    height: 10px;
    display: none;
    position: absolute;
    right: 0px;
    cursor: pointer;
}

.spli-item:hover {
    padding-right: 30px;
    transition: padding-right .2s;
}

.spli-item-container:hover .remove {
    display: flex;
    transition: display 1s;
}

.add-space {
    color: #7a7a7a;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.add-space:active {
    color: #b8b8b8;
}

.add-icon {
    border: solid;
    border-width: 2px;
    border-radius: 20px;
    padding: 5px 8px;
    font-weight: bolder;
    justify-content: center;
    display: inline-block;
    text-align: center;
    line-height: 1;
    margin-right: 5px;
}

.vpcb-left hr,
.vpcb-right hr {
    background-color: #f1efeb;
    height: 3px;
    border: none;
    width: 75%;
    margin-left: 0px;
    margin: 20px 0;
}

.spli-container {
    display: flex;
}

.spaces-list {
    margin-bottom: 10px;
}

.name-input::placeholder {
    text-align: left;

}

.spaces-list hr,
.spaces-total hr {
    background-color: black;
    height: 2px;
    width: 100%;
    margin-top: 5px;
}

.mntly-total,
.yrly-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 12px;
}

.totals {
    margin-bottom: 20px;
}

.vpcb-right h4 {
    margin-bottom: 20px; 
}

.years-grid {
    color: #fffdfe;
    font-weight: bolder;
    font-size: 20px;
    justify-content: left;
}

.years-item {
    background-color: #70798e;
    color: white;
    font-weight: bolder;
    text-align: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin: 5px;
    margin-bottom: 0px;
    line-height: 40px;
}

.years-item:hover {
    background-color: #414c69;
    cursor: pointer;
}

.years-item-active {
    background-color: #414c69;
    color: white;
}

.results-block {
    border-radius: 10px;
    padding: 10px;
    margin: 40px 0px;
    overflow: auto;
    width: 225px;
}

.results-block img {
    width: 50%;
}

.results-block select {
    margin: 5px;
    border-radius: 12px;
    border: none;
    padding: 5px 10px;
    z-index: 1;
    width: 97%;
    appearance: none;
    color: #333333;
    font-size: 12px;
}

.results-block select:active {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.results-block select:focus {
    outline: none;
    border: none;
}

/*
.plan-default {
    border-radius: 12px 12px 0px 0px;
    border: none;
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    color: #333333;
    font-size: 12px;
}

.plan-default:hover {
    background-color: #a5b5af;
    color: white;
}

.plan-default-closed {
    border-radius: 12px;
}

.select-container {
    background-color: #dfdfdf;
    border-radius: 0px 0px 12px 12px;
    overflow: hidden;
}
*/

.select-container img {
    width: 20px;
    position: absolute;
    right: 20px;
    top: 39%;
    pointer-events: none;
}

/* 
.plan-options button {
    border: none;
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    color: #333333;
    font-size: 12px;
}

.plan-options button:hover {
    background-color: #a5b5af;
    color: white;
}
*/

.competitors {
    background-color: #f8cacb;
}

.competitors h4 {
    margin-bottom: 5px;
    color: #000000;
}

.competitors p {
    margin-top: 5px;
    color: #606060;
    font-size: 14px;
}

.suddenlyspaces {
    background-color: #414c69;
    color: #fffdfe;
    position: relative;
}

.suddenlyspaces h4 {
    margin-bottom: 5px;
}

.dollars {
    display: flex;
    justify-content: space-between;
    font-size: 30px;
    font-weight: bolder;
    margin-top: 10px;
}

.savings {
    background-color: #93ca9a;
}

.savings h4 {
    margin-bottom: 5px;
    color: #000000;
}

.vpc-footer p {
    color: #333333;
    font-weight: 300;
    margin: 10px 0;
    font-size: 12px;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.button-container a {
    color: #111f43;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    font-family: "Metropolis", "Arial", sans-serif;
    margin-bottom: 20px;
}

.button-container a:hover {
    color: #1e4636;
}

/* .button-container button {
    border: none;
    width: 245px;
    background-color: #111f43;
    color: #fff;
    max-height: 56px;
    border: none;
    border-radius: 5px;
    padding: 16px 32px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Metropolis", "Arial", sans-serif;
}

.button-container button:hover {
    background: #1e4636;
} */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.overlay-active {
    opacity: 1;
    visibility: visible;
    display: flex;
    transition: opacity 0.5s ease, visibility 0s linear 0s; 
}

.overlay-container {
    max-width:540px;
    min-width:320px;
    box-shadow:1px 1px 5px rgba(0,0,0,0.1);
    background:#ffffff;
    border-radius:20px;
    margin: auto;
    padding: 30px;
    position: relative;
}

.overlay-container form {
    display: flex;
    flex-direction: column;
}

.overlay-container p {
    font-size: 18px;
    color: #111f43;
    font-weight: 700;
    margin-bottom: 20px;
}

.user-data-container {
    border: 1px solid #dfdfdf;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.user-data-container input {
    border: none; 
    padding: 5px 5px 0px 0px;
    font-size: 14px;
}

.user-data-container input:focus {
    outline: none;
    border: none;
}

.active {
    color: rgb(155, 0, 0);
    display: flex;
    margin-bottom: 20px;
    font-size: 12px;
}

.schedule {
    margin-bottom: 20px;
}

.overlay-container button {
    background-color: #111f43;
    color: #fff;
    max-height: 56px;
    border: none;
    border-radius: 5px;
    padding: 15px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Metropolis", "Arial", sans-serif;
}

.overlay-container button:hover {
    background: #1e4636;
}

.overlay-container button:active {
    background: #1e4636;
    color: #fff;
}

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

.secure img {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.secure p {
    color: #333333;
    font-weight: 300;
    margin: 10px 0;
    font-size: 14px;
}

.overlay-container .overlay-close {
    z-index: 501;
    top: 10px;
    right: 10px;
    background-color: #f8cacb;
    padding: 7px;
    border-radius: 20px;
    width: 10px;
    height: 10px;
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.overlay-close:hover {
    background-color: #f8cacbdc;
}

/* Responsive Styles */
@media (max-width: 460px) {
    .vp-calc {
        padding: 15px;
    }

    .calc-title-container {
        justify-content: right;
        align-items: center;
        margin-bottom: 10px;
        margin-right: 10px;
    }

    .vp-calc h2 {
        font-size: 22px;
    }

    .toplogo img{
        width: 200px;
    }

    .reset img,
    .download img {
        width: 50px;
        display: block;
        text-align: center;
    }

    .vpc-header, .vpc-body, .vpcb-left, .vpcb-right {
        justify-content: center;
    }

    .vpc-header {
        flex-direction: column;
    }

    .vpc-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vpcb-left, .vpcb-right {
        margin-bottom: 20px;
    }

    .vpc-title {
        margin-left: 0;
        text-align: center;
    }

    .vpc-title hr {
        width: 100%;
    }

    .vpcb-left hr,
    .vpcb-right hr {
        height: 5px;
        width: 50%;
    }

    .spaces-list hr,
    .spaces-total hr {
        background-color: black;
        height: 3px;
        width: 100%;
        margin-top: 5px;
    }

    .calc-icon img {
        height: 50px;
        margin-right: 0;
    }

    .results-block {
        width: 95%;
    }

    .results-block img {
        width: 30%;
    }
    
    .results-block select {
        font-size: 14px;
    }

    .add-space {
        font-size: 14px;
        font-weight: 700;
        margin-right: 5px;
        align-items: center;
        display: flex;
    }

    .add-icon {
        padding: 6px 10px;
        margin-right: 2px;
        border-width: 3px;
        border-radius: 40px;
        font-size: 20px;
        margin-right: 8px;
    }

    .mntly-total {
        margin-top: 40px;
    }

    .yrly-total hr {
        margin-bottom: 30px;
    }

    .mntly-total,
    .yrly-total {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        font-size: 14px;
    }

    .spli-item {
        align-items: flex-start;
    }

    .spli-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: right;
    }

    .spli-right span {
        flex: 1;
        margin-right:10px;
    }

    .spli-item input {
        font-size: 16px;
    }
    
    .spli-item .name-input {
        width: 160px;
    }

    .spli-item .rent-input {
        width: 70px;
    }

    .spli-item span {
        align-items: center;
        font-size: 16px;
        justify-content: right;
    }

    .remove {
        display: flex;
        background-color: #f8cacb;
        padding: 8px;
        border-radius: 20px;
        width: 10px;
        height: 10px;
        position: relative;
    }

    .spli-item:hover {
        padding-right: 0px;
    }

    .spli-item-container:hover .remove {
        display: flex;
    }

    .vpcb-left hr, .vpcb-right hr {
        width: 100%;
    }

    .select-container img {
        width: 20px;
        position: absolute;
        right: 25px;
        top: 43%;
        pointer-events: none;
    }

    .dollars {
        font-size: 20px;
    }

    .years-item {
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        align-items: center;
        line-height: 40px;
    }

    .vpc-footer p {
        font-weight: 400;
        font-size: 14px;
    }

    .button-container {
        flex-direction: column;
    }

    .button-container button {
        width: 100%;
    }
    
    .overlay-container {
        padding: 15px;
    }

    .overlay-container p {
        margin-top: 30px;
    }
}

/* Responsive Styles for screens smaller than 360px */
@media (max-width: 360px) {
    .vp-calc {
        min-width: 320px;
        padding: 10px;
    }

    .calc-title-container {
        margin-bottom: 8px;
        margin-right: 5px;
    }

    .vp-calc h2 {
        font-size: 18px;
    }

    .toplogo img {
        width: 150px;
    }

    .reset img,
    .download img {
        width: 40px;
    }

    .vpc-body {
        gap: 8px;
    }

    .vpcb-left, .vpcb-right {
        margin-bottom: 15px;
    }

    .calc-icon img {
        height: 40px;
    }

    .results-block {
        width: 94%;
    }

    .add-space {
        font-size: 12px;
    }

    .add-icon {
        font-size: 20px;
        padding: 4px 8px;
    }

    .mntly-total {
        margin-top: 30px;
    }

    .yrly-total hr {
        margin-bottom: 20px;
    }

    .mntly-total,
    .yrly-total {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        font-size: 12px;
    }

    .spli-item .name-input {
        width: 140px;
    }

    .spli-item .rent-input {
        width: 60px;
    }

    .remove {
        padding: 8px;
        width: 8px;
        height: 8px;
    }

    .select-container img {
        width: 15px;
        right: 20px;
    }

    .dollars {
        font-size: 18px;
    }

    .years-item {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .vpc-footer p {
        font-size: 12px;
    }

    .overlay-container {
        padding: 10px;
    }

    .overlay-container p {
        margin-top: 20px;
    }
}