:root{
    --liteGrey: #7b7b7b;
    --midGrey:#cccccc;
    --mainBg: #F2F2F2;
    --white: white;
    --maxW: 1100px;
    --maxWHalf: 600px;
    --c-theme-primary: #004e2b;
    --c-theme-background: #e6e6df;
    --c-theme-highlight: #00dd39;
    --c-theme-hover: rgb(0,199,50);
}

body{
    font-family: Inter;
    background-color: var(--white);
}

button{
    background-color: var(--c-theme-primary);
    color: var(--white);
    border: none;
    border-radius: 2px;
    padding:8px;
    cursor: pointer;
}

label{
    font-weight: bold;
}

.banner-header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    color:black;
    background-color:white;
}

.banner-title{
    color: black;
    font-weight: bold;
}

.heidelberg-logo{
    background-color: white;
    width: 250px;
    padding:24px;
}

.wrap-form{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 2rem;
    color:var(--liteGrey);
    max-width: var(--maxW);
    margin:auto;
    padding-top: 5px;
    line-height: 18px;
}

.wrap-form a{
    text-decoration: none;
    color:var(--c-theme-primary)
}

.main-form{
    width: 100%;
    max-width: 600px;
}

.single-column{
    color:var(--liteGrey);
    max-width: var(--maxW);
    margin:auto;
    padding-top: 5px;
    line-height:18px;
}

.single-form{
    width:100%
}

.form-title{
    color:var(--c-theme-primary);
    font-weight: bold;
    font-size:18px;
    margin-top:12px;
    padding:12px;
}

.form-fields{
    display:flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
}

.search-bar{
    display: flex;
    flex-direction: row!important;
    justify-content: space-between;
    align-items: center;
    width:100%;
    margin-top:15px;
}

.search-bar input{
    max-width:350px;
    padding:7px;
    width:100%;
}

.wrap-field{
    text-align: center;
    width: 100%;
}

.field-span{
    font-weight: 100;
    font-style: italic;
    align-items: center;
    margin:6px;
}

.messageBox{
    display: flex;
    flex-direction: column;
    margin:5px;
    padding: 0px 10px 0px 10px;
    background-color: var(--white);
    border-left:solid 6px var(--c-theme-primary);
}

.messageBox-header{
    display: flex;
}

.messageBox-icon{
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.messageBox-icon div{
    text-align: center;
    background-color: var(--c-theme-primary);
    color:white;
    padding:4px;
    border-radius: 50%;
    width:19px;
    font-size:18px;
    font-weight: normal;
}

.messageBox-msg h5{
    margin-top: 6px;
}

.radio-field{
    display:flex;
    justify-content: flex-end;
    margin-top:18px;
    align-items: center;
}

.radio-field .radio{
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width:392px;
}

.radio-field label{
    padding:5px;
}

.text-field{
    display: flex;
    justify-content:flex-end;
    flex-direction: row;
    margin-top: 20px;
    align-items: center;
}

.text-field input{
    padding:7px;
    width:300px;
}

.text-field select{
    padding:7px;
    width:300px;
}


.text-field label{
    padding:8px;
    text-align: right;
}

.readOnly-field {
    width:100%
}

.readOnly-field input{
    display: block; /* Ensure it behaves like a block-level element */
    width: 100%;
    max-width: 100%; /* Prevents it from ever exceeding the parent's width */
    box-sizing: border-box; /* Still very important */
    margin: 0; /* Reset any potential margin causing an overflow */
    padding:7px;
}

#inputedAddInfo{
    background-color: white;
    height: 170px;
    padding:10px;
    border:solid 1px var(--midGrey);
}

.container-details{
    padding-right: 8px;
}

.main-column{
    display:flex;
    flex-direction: column;
}

.submit-app{
    margin-top:20px;
    width:100%
}

.T-and-C{
    max-height: 170px;
    overflow: auto;
    margin-top:25px;
}

.validation-error{
    border-left: solid red 4px;
    padding:4px;
    color:red;
    font-size: 12px;
}

.header-dbg{
    display: flex;
    justify-content: space-between;
    align-items: 'middle';
    vertical-align: middle;
}

.check-field{
    padding:20px;
}

.direct-debit-info{
    margin-top:15px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border:solid 1px var(--midGrey);
}

#dbi-address{
    padding: 10px;
    font-weight: normal;
}

.o-id-no-wrap{
    font-weight: normal;
    padding:10px;
}

#oIdNo{
    font-weight: bold;
    font-size: 20px;
    margin-top: 5px;
}

.inline-info{
    background-color: var(--c-theme-primary);
    color: white;
    padding:1px 9px 1px 9px;
    border-radius: 100%;
    font-weight: normal;
    font-size:15px;
    cursor: pointer;
}

.hidden-info{
    display: none;
    position: absolute;
    top:10px;
    padding:10px;
    background-color: #00395E;
    color:white;
    font-size:12px;
}

.wrap-single-center{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding:50px 0px;
}

.split-session-up{
    border-top: solid 2px var(--mainBg);
}


@media only screen and (max-width: 780px) {
    .radio-field .radio{
        width: 80%;
    }
    
    .container-details{
        max-height: none;
    }
    
    .heidelberg-logo img{
        height: 60px;
    }
    .banner-title{
        text-align: center;
        width: 100%;
        margin: auto;
        padding:15px;
    }
    .wrap-form{
        grid-template-columns: 100%;
    }
    .form-fields{
        width:90%;
        margin:auto;
    }
    .search-bar{
        flex-direction: column!important;
    }
    .search-bar input{
        max-width:100%;
    }
    .text-field{
        flex-direction: column;
        align-items:flex-start;
        max-width: none;
        margin-top: 10px;
    }
    .text-field input{
        width:100%;
        max-width: none;
    }
    .text-field select{
        width:100%;
        max-width: none;
    }    
    
  }

  .autocomplete {
    position: relative;
    width:100%;
    max-width: 410px;
  }

  .autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top:100%;
    width:100%;
    max-width: 410px;
    max-height: 600px;
    overflow-y:auto
  }

  .wrap-box-result {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 2px solid var(--mainBg);
  }

  .autocomplete-items div:hover {
    background-color: #e9e9e9;
  }

  @font-face {
    font-display: display;
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    src: url(fonts/Lexend.woff2) format("woff2")
}

@font-face {
    font-display: display;
    font-family: "Inter";
    font-style:normal;
    font-weight: 200;
    src: url(fonts/LexendLight.woff2) format("woff2")
}

.section-footer{
    width: 100%;
    bottom: 0;
    margin-top:200px;
    display: flex;
    justify-content: space-around;
}

.section-footer a {
    color:#004e2b;
    text-decoration: none;
}

.section-footer a:hover {
    color:#004e2b;
    text-decoration: underline var(--c-theme-hover) 2px;
}