/* SECTION ONE STYLE */
#bafma-1 {
    width: 100%;
    height: 81.09vh;
    font-family: Helvetica Neue, Arial, sans-serif;
    color: #00504A;
}

#bafma-1 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#bafma-1 .bafma-container {
    position: relative;
    z-index: 1;
    top: -100%;
    width: 100%;
    height: 99.5%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: normal;
    background-color: rgba(255, 255, 255, 0.2);
}

#bafma-1 .bafma-container div h3 {
    margin-bottom: 32px;
    font-size: 29px;
    line-height: 33px;
    letter-spacing: -0.576px;
    font-weight: 400;
}

#bafma-1 .bafma-container p {
    /*width: 70%;*/
    margin-top: 16px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

#bafma-1 .bafma-container a,
#bafma-1 .bafma-container button{
    padding: 16px 21px;
    border-radius: 15px;
}

#bafma-1 .bafma-container div:first-child {
    margin-top: 113px;
}

#bafma-1 .bafma-container div:last-child {
    margin-top: 113px;
}

#bafma-1 .bafma-container .bafma-valuation {
    width: 367px;
    height: 163px;
    margin-right: 10px;
    padding: 86px 63px;
    background-color: rgb(232, 231, 219);
    border-radius: 15px;
}

#bafma-1 .bafma-container .bafma-valuation a {
    position: relative;
    top: 30px;
}

#bafma-1 .bafma-container .bafma-to-form a {
    position: relative;
    top: 52px;
    z-index: 2;
}

#bafma-1 .bafma-container .bafma-to-form button {
    position: relative;
    top: 34px;
    z-index: 2;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

#bafma-1 .bafma-container .bafma-to-form {
    width: 618px;
    height: 163px;
    padding: 86px 63px;
    background-color: #fff;
    border-radius: 15px;
}

#bafma-1 .bafma-container .bafma-to-form p {
    position: relative;
    z-index: 2;
}

#bafma-1 .bafma-container .bafma-to-form .img-wrapper {
    width: 0;
    height: calc(100%);
}

#bafma-1 .bafma-container .bafma-to-form .floating-logo {
    object-fit: scale-down;
    position: relative;
    z-index: 1;
    top: calc((100% + 201px) * -1);/*-132.5%;*/
    left: unset;
    width: auto;
    height: calc(100% + 172px); /*335px*/
    transform: translateX(150%);
}

/* Book Market Appraisal Form */
#book-form-wrapper {
    display: none;
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#book-form-wrapper #book-form-content {
    position: relative;
    left: 0;
    right: 0;
    width: 754px;
    height: fit-content;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-inline: auto;
    background-color: #E8E7DB;
}

#book-form-wrapper #book-form-content .bf-header {
    width: 85%;
    margin: 0 auto 0;
    padding-top: 35px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #00504A;
}

#book-form-wrapper #book-form-content .bf-header h2 {
    font-size: 29px;
    line-height: 33px;
    letter-spacing: -0.576px;
    font-weight: 400;
}

#book-form-wrapper #book-form-content .bf-header .bf-close {
    cursor: pointer;
    font-size: 34px;
    line-height: unset;
    transition: 300ms;
}

#book-form-wrapper #book-form-content .bf-header .bf-close:hover {
    color: #E86138;
}

#book-form-wrapper #book-form-content form {
    width: 85%;
    margin: 0 auto 0;
    padding: 35px 0 35px;
    font-family: Helvetica Neue, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: normal;
}

#book-form-wrapper #book-form-content form label,
#book-form-wrapper #book-form-content form input {
    display: block;
    width: calc(100% - 22px);
}

#book-form-wrapper #book-form-content form .form-item:not(:first-child) {
    margin-top: 20px;
}

#book-form-wrapper #book-form-content form label {
    margin-bottom: 5px;
}

#book-form-wrapper #book-form-content form input {
    padding: 0 10px;
    font-size: 16px;
    line-height: 34px;
    color: #00504A;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #fff;
    transition: 200ms;
}

#book-form-wrapper #book-form-content form input:hover {
    border: 1px solid rgba(0, 80, 74, 0.5);
}

#book-form-wrapper #book-form-content form input:focus {
    outline: none;
    border: 1px solid #00504A;
}

#book-form-wrapper #book-form-content form .auto-box.form-item {
    position: absolute;
    z-index: 1;
    /*width: calc(100% - 20px);*/
    width: fit-content;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 10px 10px;
    font-size: 16px;
    line-height: 34px;
    color: #00504A;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #00504A;
    box-shadow: 10px 10px 20px -11px rgba(0,0,0,0.75), inset 0 0 0 1px #fff;
    -webkit-box-shadow: 10px 10px 20px -11px rgba(0,0,0,0.75), inset 0 0 0 1px #fff;
    -moz-box-shadow: 10px 10px 20px -11px rgba(0,0,0,0.75), inset 0 0 0 1px #fff;
}

#book-form-wrapper #book-form-content form .auto-box.form-item p {
    cursor: pointer;
    width: calc(100% - 30px);
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    line-height: 22px;
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 200ms;
}

#book-form-wrapper #book-form-content form .auto-box.form-item p:not(:first-child) {
    margin-top: 12px;
}

#book-form-wrapper #book-form-content form .auto-box.form-item p:hover {
    background-color: #eaeaea;
}

#book-form-wrapper #book-form-content form .auto-box.form-item p .aa-sub {
    color: #595959;
    font-size: 12px;
    word-break: break-word;
}

#book-form-wrapper #book-form-content form textarea {
    max-width: calc(100% - 22px);
    min-width: calc(100% - 22px);
    min-height: 100px;
    max-height: 238px;
    padding: 0 10px;
    font-family: Helvetica Neue, Arial, sans-serif;
    font-size: 16px;
    line-height: 34px;
    color: #00504A;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #fff;
    transition: 200ms;
}

#book-form-wrapper #book-form-content form textarea:hover {
    border: 1px solid rgba(0, 80, 74, 0.5);
}

#book-form-wrapper #book-form-content form textarea:focus {
    outline: none;
    border: 1px solid #00504A;
}

#book-form-wrapper #book-form-content form .form-item.checkbox-div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    gap: 5px;
}

#book-form-wrapper #book-form-content form .form-item.checkbox-div .checkbox-input {
    cursor: pointer;
    width: fit-content;
}

#book-form-wrapper #book-form-content form .form-item.checkbox-div .label-checkbox {
    width: fit-content;
    margin: unset;
}

#book-form-wrapper #book-form-content form .form-item {
    width: 100%;
}

#book-form-wrapper #book-form-content form .form-item button {
    padding: 16px 21px;
    border-radius: 15px;
    font-size: 16px;
}

#book-form-wrapper #book-form-content form .form-item button:hover {
    cursor: pointer;
}

#book-form-wrapper #book-form-content form .form-item .label-title {
    font-size: 16px;
    line-height: 22px;
}

#book-form-wrapper #book-form-content form .form-item .label-small {
    font-size: 13px;
    line-height: 18px;
}

#book-form-wrapper #book-form-content form .form-item .form-name {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: normal;
}

#book-form-wrapper #book-form-content form .form-item .form-name div {
    width: 100%;
}

#book-form-wrapper #book-form-content form .form-item .form-name div:not(:first-child) {
    margin-left: 17px;
}

#book-form-wrapper #book-form-content form .form-item .form-name div input {
    width: calc(100% - 22px);
}

#book-form-wrapper #book-form-content form .form-item .form-name div label {
    width: max-content;
}

@media all and (min-width: 1001px) and (max-width: 1622px) {
    #bafma-1 {
        height: 95vh;
    }

    #bafma-1 .bafma-container p {
        width: unset;
    }

    #bafma-1 .bafma-container .bafma-valuation {
        position: relative;
        z-index: 1;
        width: 356px;
        height: 165px;
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-valuation a {
        position: relative;
        top: 52px;
    }

    #bafma-1 .bafma-container .bafma-to-form {
        width: 356px;
        height: 165px;
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        object-fit: scale-down;
        position: relative;
        top: calc((100% + 184px) * -1);
        left: 100px;
        height: calc(100% + 129px);
        transform: unset;
    }
}

@media all and (max-width: 1000px) {
    #bafma-1 {
        height: 95vh;
    }

    #bafma-1 .bafma-container {
        flex-direction: row;
        justify-content: space-around;
    }

    #bafma-1 .bafma-container div {
        margin-top: unset;
    }

    #bafma-1 .bafma-container div h3 {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.485px;
    }

    #bafma-1 .bafma-container p {
        width: unset;
    }

    #bafma-1 .bafma-container .bafma-valuation {
        position: relative;
        z-index: 1;
        width: calc(45% - 88px);
        margin-right: unset;
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-valuation a {
        position: relative;
        top: 50px;
    }

    #bafma-1 .bafma-container .bafma-to-form {
        width: calc(45% - 88px);
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        object-fit: scale-down;
        position: relative;
        top: calc((100% + 181px) * -1);
        left: 100px;
        height: calc(100% + 129px);
        transform: unset;
    }
}

@media all and (max-width: 860px) {
    #bafma-1 .bafma-container {
        flex-direction: column;
        justify-content: center;
    }

    #bafma-1 .bafma-container div:not(:first-child) {
        margin-top: 10px;
    }

    #bafma-1 .bafma-container .bafma-valuation {
        position: relative;
        z-index: 1;
        width: calc(90% - 88px);
        height: fit-content;
        margin-right: unset;
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-to-form {
        width: calc(90% - 88px);
        height: 200px;
        padding: 49px 44px 80px;
    }

    #bafma-1 .bafma-container .bafma-to-form .img-wrapper {
        position: relative;
        left: 24%;
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        object-fit: scale-down;
        position: relative;
        top: calc((100% + 18px) * -1);
        left: 120px;
        height: calc(100% + 129px);
    }

    #book-form-wrapper #book-form-content {
        width: 600px;
    }
}

@media all and (max-width: 640px) {
    #book-form-wrapper #book-form-content {
        width: 550px;
    }
}

@media all and (max-width: 577px) {
    #bafma-1 {
        height: 100vh;
    }

    #bafma-1 .bafma-container .bafma-valuation a {
        top: 40px;
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 19px) * -1);
        left: 50px;
        height: calc(100% + 129px);
        transform: unset;
    }

    #book-form-wrapper #book-form-content {
        width: 500px;
    }
}

@media all and (max-width: 563px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 19px) * -1);
    }
}

@media all and (max-width: 562px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 40px) * -1);
    }
}

@media all and (max-width: 533px) {
    #book-form-wrapper #book-form-content {
        width: 430px;
    }
}

@media all and (max-width: 455px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        left: 20px;
    }

    #book-form-wrapper #book-form-content {
        width: 370px;
    }
}

@media all and (max-width: 418px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 63px) * -1);
        left: 12px;
    }
}

@media all and (max-width: 395px) {
    #bafma-1 {
        height: calc(100vh + 20px);
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 91px) * -1);
        left: -12px;
    }
}

@media all and (max-width: 365px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        left: -32px;
    }
}

@media all and (max-width: 347px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        left: -42px;
    }
}

@media all and (max-width: 333px) {
    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        left: -56px;
    }
}

@media all and (max-width: 329px) {
    #bafma-1 {
        height: calc(100vh + 70px);
    }

    #bafma-1 .bafma-container .bafma-to-form {
        height: 230px;
    }

    #bafma-1 .bafma-container .bafma-to-form .floating-logo {
        top: calc((100% + 83px) * -1);
        left: -72px;
    }
}

@media all and (max-height: 767px) {
    #bafma-1 {
        height: calc(100vh + 50px);
    }
}

@media all and (max-height: 737px) {
    #bafma-1 {
        height: calc(100vh + 100px);
    }
}

@media all and (max-height: 690px) {
    #bafma-1 {
        height: calc(100vh + 130px);
    }
}

@media all and (max-height: 667px) {
    #bafma-1 {
        height: calc(100vh + 170px);
    }
}

@media all and (max-height: 619px) {
    #bafma-1 {
        height: calc(100vh + 240px);
    }
}