*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

header {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}
/* Initial state */
.navbar {
    background-color: transparent;
    transition: background-color 0.3s;
    position: absolute;
  }
  
  .nav-link {
    color: white;
    transition: color 0.3s;
  }
  
  /* Scrolled state */
  .navbar.scrolled {
    background-color: white;
  }
  
  .nav-link.scrolled-link {
    color: grey;
  }
  
.navbar-brand img{
    height: 50px !important;
    margin-left: 45px;
    margin-right: 0 !important;
}
.navigation-menu{
    z-index: 1050;
    width: 100%;
    height: auto;
}
.contact-section {
    height: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
}

.left-banner {
    width: 47px;
    height: 296px;
    border-radius: 0px 4px 4px 0px;
    margin-left: 0%;
    background: rgba(150, 23, 21, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.left-banner p {
    position: absolute;
    width: 296px;
    /* Set width to the height of the parent to account for rotation */
    height: 47px;
    /* Set height to the width of the parent to account for rotation */
    font-family: Roboto, sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    transform: rotate(270deg);
    transform-origin: center center;
    /* Use center center for correct rotation */
    display: flex;
    align-items: center;
    justify-content: center;
}


.contact-section .query-form {
    width: 625px;
    height: 100%;
    margin-left: 90px;
}

header {
    width: 625px;
}

.header h1 {
    width: 242px;
    height: 35px;
    font-family: Source Serif 4;
    font-size: 36px;
    font-weight: 700;
    line-height: 35px;
    text-align: left;
    color: rgba(74, 74, 74, 1);
    margin-top: 50px;
}

.header p {
    width: 100%;
    height: 24px;
    font-family: Roboto;
    font-size: 22px;
    font-weight: 400;
    line-height: 24.4px;
    text-align: left;
    color: rgba(127, 127, 127, 1);
}

.form {
    margin-top: 60px;
}

.entryarea {
    position: relative;
    line-height: 50px;
    margin-top: 50px;

}


.entryarea input {
    position: absolute;
    width: 95%;
    border-radius: 10px;
    border: 1px solid rgba(161, 161, 161, 1);
    height: 45px;
    background: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-family: Roboto;
    font-weight: 200px;
    outline: none;
    padding-left: 30px;
    background: transparent;
}

.fieldname {
    width: 35%;
    height: 20px;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: rgba(161, 161, 161, 1);
    padding: 0 18px;
    transition: 0.1s ease;
    z-index: 2;
    background-color: rgba(255, 255, 255, 1);
}

.entryarea :focus,
.entryarea :valid {
    border: 1px solid rgb(1, 35, 54);
    color: rgb(1, 35, 54);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    ;
}

.entryarea :focus+.fieldname,
.entryarea :valid+.fieldname {
    color: rgb(1, 35, 54);
    height: 30px;
    line-height: 30px;
    transform: translate(-5px, -16px) scale(0.88);
    z-index: 2;
}

.submit {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    background: rgba(13, 55, 69, 1);
    border: none;
    margin-top: 50px;
    padding: 0 30px;
    font-family: Roboto;
    font-size: 24px;
    font-weight: 700;
    line-height: 29.5px;
    text-align: center;
    color: rgba(255, 255, 255, 1);

}

.submit:hover {
    background-color: rgb(8, 50, 63);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.info-section {
    width: 546px;
    height: 555px;
    margin-top: 0;
    margin-bottom: 100px; /* Add bottom margin to create space */
    overflow: hidden;
    margin-left: 75px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1; /* Ensure it stays above other elements */
}

.info-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.contact-bg {
    width: 546px;
    height: 555px;
    background: rgba(13, 55, 69, 0.8);
    position: absolute;
    z-index: 2; /* Set higher than info-section */
}

.contact-bg h4 {
    width: 61px;
    height: 40px;
    margin-top: 50px;
    margin-left: 30px;
    font-family: Roboto;
    font-size: 34px;
    font-weight: 700;
    line-height: 39.84px;
    text-align: left;
    color: rgba(255, 255, 255, 1);
}

.contact-bg .contact-info {
    margin-left: 30px;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-bg .contact-info p {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: rgba(255, 255, 255, 1);
    width: 362px;
    height: 19px;
    margin-left: 50px;
}

.contact-bg .contact-info img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-right: 15px
}

.square-box {
    width: 78px;
    height: 78px;
    margin-top: -549px;
    margin-left: 804px;
    position: absolute;
    background: rgba(221, 64, 58, 1);
    z-index: 0;

}

.red-bg {
    width: 238px;
    height: 700px;
    background: rgba(150, 23, 21, 1);
    right: 0%;
    position: absolute;
    margin-top: 0%;
    z-index: 0;
}

footer{
    background-color: #161616;
}

.logo-footer img{
    width: 80%;
}

.footer h4{
    color: aliceblue;
}

.footer h5{
    color: beige;
}
.address-footer h6{
    color: beige;
}
.quick-links ul {
    list-style: none; 
    padding: 0; 
}

.quick-links li {
    position: relative;
    padding-left: 20px; 
}


.quick-links li::before {
    content: '→'; 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    color: rgb(255, 255, 255); 
}

.quick-links a {
    text-decoration: none;
    color: beige; 
}

.quick-links a:hover {
    color: #002766;
}

.quick-links a h5:hover {
    color: #002766;
}

.copyright-text{
    background-color: #f8f8f8;
}

@media(max-width: 918px){
    .navigation-menu{
        width: 450px !important;
    }
    .nav-logo{
        height: 30px !important;
        margin-left: 15px;
        margin-right: 0 !important;
    }
    .upper {
        display: grid;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        height: auto;
    }
    .upper .logo img{
        width: 245px;
        height: 210px;
        margin-top: 30px;
        margin-left: 0;
    }

    .address{
        margin-left: 0;
        margin-top: 20px;
        margin-right: auto;
    }

    .address p{
        text-align: center;
        margin: 0;
    }
    .contact-section{
        margin: 0;
        display: flex;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        align-items: center;
        justify-content: center;
        height: auto;
    }
    .left-banner{
        display: none;
    }
    .red-bg{
        display: none;
    }
    .info-section{
        display: none;
    }

    .contact-section .header h1{
        font-size: 24px;
        text-align: center;
        width: 100%;
        margin-top: 30px;
    }

    .contact-section .header p{
        font-size: 16px;
        line-height: normal;
        width: 100%;
        text-align: center;
    }

    .contact-section .query-form {
        margin-left: 0px;
        max-width: 80%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .contact-section .form{
        width: 100%;
    }
    .square-box{
        display: none;
    }
    .fieldname{
        width: 100%;
    }
    .form{
        margin-top: 0px;
    }
    .submit{
        width: 100%;
        padding: 0;
    }
    .entryarea{
        width: 100%;
    }
}