.lab-search-box {
    width: 100%;
    height: 175px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #DADADA;
}

.lab-search-box__container {
    width: 100%;
    max-width: 1200px;
    margin: 40px 0 30px 0;
}

.lab-search-box__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
}

.lab-search-box__label > img {
    width: 32px;
}

.lab-search-box__label > div {
    color: #4A4A4A;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.lab-search-box__input {
    width: 100%;
    max-width: 600px;
    height: 40px;
    position: relative;
    display: flex;
    justify-content: end;
}

.lab-search-box__input > input[type="text"] {
    width: 100%;
    height: 100%;
    border: 1px solid #DADADA;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.12);
    border-radius: 5px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #707070;
    padding: 0 70px 0 10px;
}

.lab-search-box__input > input[type="text"]::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #707070;
}

.lab-search-box__input > input[type="text"]:focus {
    outline: none;
}

.lab-search-box__input > button[type="submit"] {
    width: 60px;
    height: 40px;
    background-color: #4A4A4A;
    border-radius: 0 5px 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.lab-search-box__input > button[type="submit"] > i {
    font-size: 14px;
    color: #FFFFFF;
}

.lab-search-screen-body-background {
    background-color: #FAFAFA;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
}

.lab-search-screen-body {
    width: 100%;
    max-width: 1200px;
    padding: 20px 0 50px 0;
    display: grid;
    grid-template-columns: 1fr;
}

.lab-search-screen-body__left {
    width: 100%;
}

.lab-proposal {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    border-radius: 5px;
    border: 1px solid #DADADA;
    background-color: #FFFFFF;
    position: relative;
}

.lab-proposal > div:first-child {
    display: flex;
    flex-direction: column;
}

.lab-proposal > div:first-child > div:first-child {
    color: #4A4A4A;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 7px;
}

.lab-proposal > div:first-child > div:nth-child(2) {
    color: #666;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.lab-proposal > div:first-child > div:last-child {
    display: none;
}

.lab-proposal > div:nth-child(2) {
    display: flex;
    gap: 10px;
}

.lab-proposal > div:nth-child(2) > img {
    min-width: 60px;
    max-width: 60px;
}

.lab-proposal > div:nth-child(3) > img {
    min-width: 184px;
    max-width: 184px;
}

.lab-proposal > button {
    width: 120px;
    height: 40px;
    border-radius: 50px;
    background: #FFF;
    box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #4A4A4A;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.lab-results {
    width: 100%;
}

.labs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 443px;
    gap: 18px;
    margin-bottom: 40px;
}

.lab {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #DADADA;
    border-radius: 5px;
    padding: 31px 20px;
    display: flex;
    flex-direction: column;
}

.lab__thumbnail-image {
    width: 100%;
    height: 90px;
    border-radius: 5px;
    border: 1px solid #DADADA;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab__thumbnail-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lab__name {
    width: 100%;
    color: #4A4A4A;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 8px;
    /* ellipsis 코드 */
    word-break: break-all;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.lab__detail {
    width: 100%;
    color: #666666;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 14px;
    /* ellipsis 코드 */
    word-break: break-all;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.lab__research-areas {
    width: 100%;
    height: 89px;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 23px;
    gap: 10px;
    margin-bottom: 20px;
}

.lab__research-areas > div {
    width: fit-content;
    padding: 2px 6px;
    border-radius: 5px;
    background-color: #F3F3F3;
    color: #4A4A4A;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px;
    /* ellipsis 코드 */
    word-break: break-all;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.lab__members {
    display: flex;
    position: relative;
    width: 100%;
    height: 40px;
}

.lab__members > div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #666666;
    border: 2px solid #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    position: absolute;
}

.lab__members > div:nth-child(2) {
    left: 30px;
}

.lab__members > div:nth-child(3) {
    left: 60px;
}

.lab__members > div:nth-child(4) {
    left: 90px;
}

.lab__members > div:nth-child(5) {
    left: 120px;
}

.lab__members > div:nth-child(6) {
    left: 150px;
}

.lab__members > div > img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.lab__url-button {
    margin-top: auto;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid var(--point-button-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--point-button-color);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.no-lab-results {
    width: 100%;
    height: 450px;
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-lab-results > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-lab-results > div > i {
    color: #B4B4B4;
    font-size: 60px;
    margin-bottom: 14px;
}

.no-lab-results > div > div {
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #666666;
}

.lab-proposal-popup-background {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
}

.lab-proposal-popup-background.hide {
    display: none;
}

.lab-proposal-popup {
    width: 100%;
    max-width: 591px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
    border-radius: 5px;
    padding: 30px;
}

.lab-proposal-popup__form {
    width: 100%;
    height: 100%;
}

.lab-proposal-popup__form > form {
    width: 100%;
}

.lab-proposal-popup__form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.lab-proposal-popup__form-title > img {
    width: 32px;
}

.lab-proposal-popup__form-title > div {
    color: #4A4A4A;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.lab-proposal-popup__input {
    width: 100%;
    margin-bottom: 16px;
}

.lab-proposal-popup__input.lab-proposal-popup__input--last {
    margin-bottom: 10px;
}

.lab-proposal-popup__input > label {
    display: block;
    color: #666;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
}

.lab-proposal-popup__input > input[type="text"],
.lab-proposal-popup__input > textarea {
    width: 100%;
    height: 40px;
    border: 1px solid #DADADA;
    border-radius: 5px;
    padding: 0 14px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #666666;
}

.lab-proposal-popup__input > input[type="text"]::placeholder,
.lab-proposal-popup__input > textarea::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #999999;
}

.lab-proposal-popup__input > input[type="text"]:focus,
.lab-proposal-popup__input > textarea:focus {
    outline: none;
}

.lab-proposal-popup__input.lab-proposal-popup__input--error > input[type="text"],
.lab-proposal-popup__input.lab-proposal-popup__input--error > textarea {
    border: 1px solid #CD4F49;
}

.lab-proposal-popup__input > textarea {
    height: 163px;
    padding: 10px;
    resize: none;
}

.lab-proposal-popup__etc {
    width: 100%;
    height: 26px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.lab-proposal-popup__error-message {
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
    color: #CD4F49;
    align-self: start;
}

.lab-proposal-popup__error-message.hide {
    opacity: 0;
}

.lab-proposal-popup__checkbox {
    display: flex;
    align-items: center;
    align-self: end;
}

.lab-proposal-popup__checkbox > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #DADADA;
    border-radius: 2px;
    margin-right: 6px;
}

.lab-proposal-popup__checkbox > label {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #666666;
}

.lab-proposal-popup__form-control-button {
    width: 100%;
    height: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lab-proposal-popup__form-control-button > button {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 1px solid #4A4A4A;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #282A38;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab-proposal-popup__form-control-button > button[type="submit"] {
    background-color: #4A4A4A;
    color: #FFFFFF;
}

@media screen and (max-width: 1230px) {
    .lab-search-box__container {
        padding: 0 30px;
    }

    .lab-search-screen-body {
        padding: 20px 30px 50px 30px;
    }
}

@media screen and (max-width: 1100px) {
    .lab-proposal {
        margin-bottom: 27px;
    }

    .lab-proposal > div:first-child > div:first-child {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .lab-proposal > div:first-child > div:nth-child(2) {
        font-size: 16px;
    }

    .lab-proposal > div:nth-child(2) > img:last-child {
        display: none;
    }

    .lab-proposal-popup__description {
        display: none;
    }

    .lab-proposal-popup__form {
        max-width: 600px;
    }
}

@media screen and (max-width: 960px) {
    .lab-search-box {
        height: 165px;
    }

    .lab-search-box__container {
        padding: 0 20px;
        margin: 40px 0 30px 0;
    }

    .lab-search-screen-body {
        padding: 20px 20px 50px 20px;
    }

    .lab-search-screen-body__right {
        display: none;
    }

    .labs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 896px) {
    .lab-proposal {
        height: 140px;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .lab-proposal > div:first-child > div:first-child {
        font-size: 18px;
    }

    .lab-proposal > div:first-child > div:nth-child(2) {
        font-size: 14px;
    }

    .lab-proposal > div:nth-child(2) > img:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 779px) {
    .lab-proposal > div:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 720px) {
    .lab-proposal > div:first-child > div:nth-child(2) {
        margin-bottom: 14px;
    }

    .lab-proposal > div:first-child > div:last-child {
        display: block;
    }

    .lab-proposal > button {
        position: absolute;
        bottom: 30px;
        width: fit-content;
        height: fit-content;
        border-radius: inherit;
        box-shadow: none;
        display: block;
        color: #4600BD;
        font-size: 14px;
        font-weight: 600;
    }

    .lab-proposal > button > i {
        display: none;
    }
}

@media screen and (max-width: 599px) {
    .lab-proposal > div:first-child > div:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 568px) {
    .lab-search-box {
        height: 133px;
    }

    .lab-search-box__container {
        padding: 0 16px;
        margin: 30px 0 20px 0;
    }

    .lab-search-box__label {
        margin-bottom: 20px;
    }

    .lab-search-box__label > img {
        width: 24px;
    }

    .lab-search-box__label > div {
        font-size: 20px;
    }

    .lab-search-box__input {
        max-width: 460px;
    }

    .lab-search-screen-body {
        padding: 20px 16px 50px 16px;
    }

    .labs {
        grid-template-columns: 1fr;
        grid-auto-rows: 341px;
    }

    .lab__thumbnail-image {
        display: none;
    }

    .no-lab-results > div > div {
        font-size: 14px;
        line-height: 20px;
    }

    .lab-proposal-popup-background {
        padding: 0 50px;
    }

    .lab-proposal-popup__form {
        padding: 30px 14px;
    }

    .lab-proposal-popup__form-title {
        font-size: 30px;
        line-height: 43px;
        margin-bottom: 29px;
    }

    .lab-proposal-popup__form-control-button {
        gap: 8px;
    }
}

@media screen and (max-width: 480px) {
    .lab-proposal-popup-background {
        padding: 0 30px;
    }

    .lab-proposal-popup__form {
        padding: 20px 10px;
    }

    .lab-proposal-popup__form-title {
        font-size: 24px;
        line-height: 35px;
        margin-bottom: 20px;
    }

    .lab-proposal-popup__input > label {
        font-size: 14px;
        line-height: 20px;
    }

    .lab-proposal-popup__etc {
        flex-direction: column;
        height: 40px;
        margin-bottom: 20px;
    }

    .lab-proposal-popup__form-control-button {
        gap: 5px;
    }
}

@media screen and (max-width: 460px) {
    .lab-search-box__input > input[type="text"] {
        font-size: 12px;
        line-height: 17px;
        padding: 0 60px 0 10px;
    }

    .lab-search-box__input > input[type="text"]::placeholder {
        font-size: 12px;
        line-height: 17px;
    }

    .lab-search-box__input > button[type="submit"] {
        width: 50px;
    }
}

@media screen and (max-width: 389px) {
    .lab-proposal {
        height: 120px;
        margin-bottom: 20px;
        padding: 0 10px 0 16px;
    }

    .lab-proposal > div:first-child > div:first-child {
        font-size: 16px;
    }

    .lab-proposal > button {
        bottom: 20px;
    }
}

@media screen and (max-width: 375px) {
    .lab-search-box {
        height: 130px;
    }

    .lab-search-box__container {
        padding: 0 10px;
    }

    .lab-search-box__label > div {
        font-size: 18px;
    }

    .lab-search-screen-body {
        padding: 20px 16px 50px 16px;
    }

    .lab {
        padding: 16px 14px;
    }

    .lab__detail > div:first-child {
        font-size: 14px;
        line-height: 20px;
    }
}
