@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: url('assets/emobilnost_landing_page.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.sized-box-emobility {
    height: 80px;
    width: 100%;
}

.sized-box-price-info-container {
    height: 10px;
}

.overlay {
    background: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Two-column layout for the main section */
.main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 5%;
    gap: 20px;
    flex-wrap: wrap;
}

/* Left column: logo + form */
.left-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 350px;
    max-width: 350px;
}

.placeholder {
    min-width: 350px;
    max-width: 350px;
}

.logo-image img {
    padding-top: 30px;
    padding-left: 30px;
    height: 50px;
}

.form-container {
    background: rgba(128, 128, 128, 0.5);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden; /* prevents inputs from going out of bounds */
}

/* Floating label form groups */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: black;
    outline: none;
    box-sizing: border-box;
    /* Make sure there's a placeholder so :placeholder-shown can work */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent; /* hide placeholder text so label is our visual hint */
}

/* The floating label */
.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;       /* don't block clicks */
    color: #777;
    transition: 0.2s ease all;
    background: transparent;
    padding: 0 5px;
    border-radius: 4px;
}

/* Move the label up when input is focused or not empty */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    background: #fff;
    font-size: 12px;
    color: #333;
    transform: none;
}

.custom-button-sbt {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #3091a9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.custom-button-sbt:hover {
    background-color: #077e9b;
}


/* Right column: text + list + EV image */
.right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    min-width: 300px;
}

.title-text {
    font-size: 60px;
    margin: 0;
    text-align: left;
}

.body-text {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

/* This row holds the UL and the image side by side */
.info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.aligned-list {
    flex: 1;
    margin: 0;
    padding-left: 0;
    box-sizing: border-box;
}

.aligned-list li {
    font-size: 15px;
    line-height: 1.6;
    list-style: none;
    position: relative;
    padding-left: 96px;
    margin-bottom: 10px;
}

.aligned-list li::before {
    content: '\2022';
    color: white;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-image {
    position: relative;
    z-index: 2;
    margin-bottom: -40px;
}

.product-image img {
    width: 300px;
    height: auto;
    border-radius: 12px;
}

/* Price info container at the bottom */
.price-info-container {
    background-color: rgba(48,145,169,0.6);
    padding: 20px 5%;
    font-size: 14px;
    display: flex;
    margin-top: -80px;
    flex-direction: row;
    color: white;
    gap: 0px;
    z-index: 1;
}

.aligned-list p {
    padding-left: 93px;
}

.price-info-content {
    display: flex;
    align-items: center;
    margin-left: 39px;
    justify-content: center;
    flex-wrap: wrap;
}

.vl {
    border-left: 3px solid white;
    height: 70%;
    border-radius: 3px;
}

/* Apply left padding only on screens 1284px and up */
@media (min-width: 1284px) {
    .right-column {
        padding-left: 110px;
    }

    .price-info-content {
        margin-left: 129px;
    }
}

@media (max-width: 788px) {
    .placeholder {
        display: none;
    }

    .price-info-content {
        margin-left: 19px;
    }
}

@media (min-width: 752px) and (max-width: 1490px) {
    .info-row {
        margin-bottom: 50px;
    }

    .aligned-list li {
        padding-left: 20px; /* Reduce space between bullet and text */
    }

    .aligned-list li::before {
        left: 0; /* Keep the bullet at the very start */
    }

    .aligned-list p {
        padding-left: 23px;
    }
    .no-style-link {
        padding-left: 20px;
    }

}

@media (min-width: 1491px) {
    .no-style-link {
        padding-left: 95px;
    }
}

@media (min-width: 1491px) AND (max-width: 1545px) {
    .price-info-container {
        margin-top: -50px;
    }
}

/* For smaller screens, allow wrapping and reset margins */
@media (max-width: 1283px) {
    .info-row {
        display: flex;
        flex-direction: column;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .title-text {
        font-size: 28px;
    }

    .left-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2; /* Move left-column to the bottom */
    }

    .product-image {
        order: -1; /* Moves the image to the top */
        display: flex;
        justify-content: center;
        width: 100%; /* Ensures full width for centering */
        margin: 20px 0;
    }

    .logo-image {
        order: -2; /* Keep the logo at the top */
        align-self: center;
        margin-bottom: 10px;
    }

    .form-container {
        order: 2; /* Move the form to the bottom */
    }

    .right-column {
        order: 1; /* Move text and images to the top */
    }

    .aligned-list {
        flex: none;
        max-width: 100%;
    }

    .aligned-list li {
        padding-left: 20px; /* Reduce space between bullet and text */
    }

    .aligned-list li::before {
        left: 0; /* Keep the bullet at the very start */
    }

    .aligned-list p {
        padding-left: 24px;
    }

    .product-image {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .price-info-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .placeholder {
        display: none;
    }

    .price-info-container {
        margin-top: 20px;
    }

    .no-style-link {
        padding-left: 20px;
    }
}

.blue-text {
    color: #3091a9;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    height: 100px;
}
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.modal button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #3091a9;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}
/* Custom tooltip container */
.custom-tooltip-emobility {
    position: relative; /* so .custom-tooltip-text-emobility is absolutely positioned w.r.t. this */
    cursor: pointer;
    display: inline-block;
}

.custom-tooltip-emobility .custom-tooltip-text-emobility {
    visibility: hidden;
    width: 320px;
    background-color: rgba(48,145,169,0.95);
    color: #fff;
    text-align: left;
    padding: 10px 15px;
    border-radius: 8px;
    position: absolute;
    z-index: 9999;
    /* Position below the text instead of above */
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    line-height: 1.4;
    font-size: 13px;
}

/* Show the tooltip content on hover */
.custom-tooltip-emobility:hover .custom-tooltip-text-emobility {
    visibility: visible;
    opacity: 1;
}

/* Little arrow now points UP instead of down */
.custom-tooltip-emobility .custom-tooltip-text-emobility::after {
    content: "";
    position: absolute;
    bottom: 100%; /* arrow is now at the top edge of the tooltip box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    /* transparent on three sides, tooltip color on the top side */
    border-color: transparent transparent rgba(48,145,169,0.95) transparent;
}

.floating-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #3091a9;
    color: white;
    border: none;
    padding: 15px 20px; /* Add padding for text */
    height: auto; /* Remove fixed height to allow proper padding */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px; /* Reduce font size if needed */
    font-weight: bold;
    z-index: 1000;
    border-radius: 8px;
    white-space: nowrap; /* Prevents text wrapping */
}

.floating-button:hover {
    background-color: #077e9b;
}

.floating-button span {
    padding: 0; /* Reset any span padding */
    margin: 0; /* Reset margins */
}

.no-style-link {
    font-size: 22px;
    text-decoration: underline;
    color: inherit;
}

ul .no-style-link {
    display: inline-block; /* Ensures padding applies properly */
    padding-top: 10px; /* Adjust the value as needed */
}
