
html, body {
    width: 100%;
    height: 100%;
    font-family: 'Montserrat', Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial;
}
.container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
}

.background.active {
    opacity: 1;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px 30px 20px;
    border-radius: 10px;
    width: 50%; 
    max-width: 800px; 
    height: auto; 
    margin: 0 auto; 
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    animation: slideDown 1.5s ease-in-out forwards;
}

h1 {
    font-size: 46px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.02;
    font-family: Arial;
}

p {
    font-size: 17px;
    color: white;
    margin: 0 0 30px 0;
    font-family: Arial;
    font-weight: 300;
    position: relative;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px; 
    padding: 0 20px; 
    position: relative; 
}


form input {
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    width: 280px;
    background-color: #fff;
    color: #333;
    box-shadow: none;
    margin: 0;
    position: relative; 
   
}

.address-error {
    position: absolute;
    font-size: 12px;
    color: white;
    font-weight: bold;
    background: red;
    padding: 5px 8px; 
    top: -25px; 
    left: 42px; 
    transition: all 1s;
    z-index: 1;
}

.address-error::before {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%; 
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid red; 
    z-index: -1;
    left: 15px;
}

form input.unit-input {
    width: 60px; 
    border-radius: 0; 
    border-left: 0.5px solid #cccccc;
}

form input.address-input:focus{
    box-shadow: 0 0 5px lightblue; 
    outline: none;
}

form button {
    padding: 16px 25px;
    background-color: #f40d30;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: box-shadow 0.3s ease;
    width: 180px; 
    height: 50px; 
    display: flex; 
    justify-content: center;
    align-items: center;
    
}
form button span {
    font-size: 12.96px;
    font-family: 'Roboto',sans-serif;
    font-weight: bold;
}

form button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.info-cards {
    display: flex;
    justify-content: space-between; 
    margin-top: 20px;
    padding: 0 10px; 
}
.card {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    flex: 1;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.card i {
    font-size: 3.3rem; /* Bigger icon size */
    margin-bottom: 0; 
    color: rgba(255, 255, 255, 0.6)

}
.card p {
    font-size: 15.2px;
    line-height: 1.5; 
    margin-top: 0; 
    margin-bottom: 30px; 
    color: #ffffff;
    font-family: 'Roboto',sans-serif;
}

footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 2;
    font-family: 'Lato', sans-serif;
    padding: 0; 
    margin: 0; 
}

.agentfooter {
    background-color: black;
    opacity: 0.6;
    color: #fff;
    text-align: center;
    font-size: 14px; 
    letter-spacing: 0.5px;
    height: 40px; 
    padding: 2px 0; 
    margin: 0; 
    line-height: 1.5; 
    font-family: 'lato';
}
.agentfooter p,
.agentfooter a {
    margin: 2px 0; 
}
.agentfooter a {
    color: #42bacb; 
    text-decoration: none;  
}
.agentfooter a:hover {
    text-decoration: underline;
    color: #fff;
}

.text-center{
    font-size: small;
}

.transparent-footer {
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    height: 25px; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    padding: 0;
    margin: 0;
   
}
.footer-txt {
    margin: 0; 
}

.footer-txt a {
    color: #000000;
    text-decoration: none;
    font-family: 'lato';
    font-size:12px;
}

.footer-txt img {
    vertical-align:bottom;
    margin-right: 2px; 
    width: 18px; 
    height: auto; 
}

.modal-hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 10px; 
    left: 50%;
    transform: translateX(-50%); 
    background-color: yellowgreen;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    width: 300px; 
    text-align: left; 
}

.modal-content {
    display: flex; 
    align-items: center; 
    color: #fff;
}
.modal-loader {
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    border: 4px solid transparent; 
    border-top: 4px solid white; 
    animation: spin 0.9s linear infinite; 
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.loading {
    display: flex; 
    align-items: center; 
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -150%); 
        opacity: 1; 
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1; 
    }
}
.pac-container {
    font-family: 'Arial', sans-serif; 
    position:relative;
    margin-top: 10px; 
    
}
.pac-container::after{
    position:absolute;
}
.pac-icon {
    display: none !important;
}
.pac-item {
    background-color: #fff; 
    text-align: left; 
    margin-left: 10px;
    margin-right: 10px;
    border: none !important; 
    cursor: pointer;
    position: relative; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.pac-item span, .pac-item b {
    display: inline; 
    font-size: 12px !important;
    color: inherit !important; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.pac-item:hover {
    background-color: #e8b7bc !important; 
}

.pac-item:hover span, .pac-item:hover b {
    color: #dc3545 !important; 
}

.pac-item:hover::before, .pac-item:hover::after {
    content: ''; 
    display: block; 
    height: 5px; 
    background-color: #fff; 
    position: absolute; 
    left: 0; 
    right: 0; 
}
.pac-item:hover::before {
    top: 0; 
}

.pac-item:hover::after {
    bottom: 0; 
}

.pac-item-selected span, .pac-item-selected b {
    background-color: #f8d7da !important;
    color: #dc3545 !important;
    border-radius: 3px; 
}

.pac-container .pac-logo {
    display: none !important;
}

@media (max-width: 1115px) {
    .overlay {
        width: 90%; 
        padding: 15px; 
    }

    h1 {
        font-size: 3rem; 
        margin: 15px 0; 
    }

    p {
        font-size: 1.1rem; 
    }

    form {
        flex-direction: row; 
        gap: 0px; 
    }
 
    form button {
        width: 180px;
        height: 50px; 
    }
}

@media (max-width: 768px) {
    .overlay {
        width: 90%; 
        padding: 15px; 
    }

    h1 {
        font-size: 3rem; 
        margin: 15px 0; 
    }

    p {
        font-size: 1.1rem; 
    }

    form {
        flex-direction: row; 
        gap: 0px; 
    }

    form button span {
        display: none; 
    }

    form button:before {
        content: '\f002'; 
        font-family: FontAwesome;
        font-size: 1.2rem; 
    }

    form button {
        width: 50px; 
        height: 50px; 
    }
    form input{
        width: 350px;
    }
}

@media (max-width: 601px) {
    .overlay {
        width: 80%; 
        padding: 15px 20px;
        margin: 0;
        top: 30%; 
        transform: translate(-50%, -50%);
        padding-bottom: 40px;
    }

    h1 {
        font-size: 1.5rem; 
    }

    p {
        font-size: 0.9rem; 
        width: 100%; 
       
    }

    form {
        display: flex;  
        flex-wrap: wrap; 
        gap: 0px;  
        justify-content: center; 
       
    }

    form input {
        width: 100%;
    }

    form button {
        width: 12%; 
        height: 50px; 
        padding: 0; 
        margin: 0; 
        border-radius: 0; 
    }

    form input.unit-input, form button {
        border-radius: 0;
        display: inline-block;
        box-sizing: border-box; 
        margin-top: 5px;
    }
    
    form input.unit-input {
        width: 88%; 
        
    }
    form input:focus,
    form button:focus {
        outline: none; 
    }

    .info-cards {
        display: none;
    }

    .agentfooter {
        font-size: 10px;
    }

    .transparent-footer {
        font-size: 8px;
    }

    .footer-txt {
        margin: 0;
    }

    .footer-txt img {
        width: 15px;
    }
    .modal {
        width: 80%; 
        padding: 15px; 
        top: 10px; 
    }
}
@media (max-width: 481px) { 
    .overlay {
        padding-bottom: 30px; 
        transform: translate(-30%, -30%);
    }

    form input {
        width: 100%;
    }

    form button {
        width: 20%;
    }

    form input.unit-input {
        width: 80%;
    }

    .agentfooter {
        font-size: 10px; 
        line-height: 1.5; 
        padding: 5px 10px; 
        height: auto; 
    }

    .transparent-footer {
        font-size: 10px; 
        height: auto;   
    }

    .footer-txt {
        font-size: 8px; 
    }
    
    .footer-txt span {
        display: block; 
        margin-top: 3px; 
    }
    
    .footer-txt img {
        vertical-align: middle; 
        width: 15px; 
        margin-right: 5px; 
    }
    
    .modal {
        width: 90%; 
        padding: 10px; 
        top: 10px; 
    }
}
