.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.modal-container {
    width: calc(100% - 32px);
    max-width: 584px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.modal-content {
    margin: auto;
    border-radius: 10px;
    background: #F7F5F1;
    width: 100%;
    padding: 50px 99px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    gap: 32px;
}

body.modal-open {
    overflow: hidden;
}

.img-modal-content {
    padding: 40px 99px 278px;
}

.img-mid-modal-content {
    padding: 50px 99px 18px;
}

.modal-title-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.img-mid-modal-content .modal-title-block {
    gap: 14px;
}

.modal-title {
    color: var(--Black, #1C2320);
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 38px;
    text-transform: uppercase;
    text-align: center;
}

.modal-title span {
    color: var(--Primary, #C07A52);
}

.modal-title-text {
    max-width: 350px;
    color: var(--Grey-500, #6E6A66);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    z-index: 1;
}

.img-mid-modal-content .modal-form {
    margin-top: -22px;
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.modal-input {
    padding: 15px 16px;
    border-radius: 6px;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.02);
    color: var(--Grey-500, #6E6A66);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
    width: 100%;
}

.modal-btn {
    display: flex;
    width: 100%;
    height: 50px;
    padding: 15px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-radius: 6px;
    background: var(--Primary, #AE5A33);
    box-shadow: 0 1px 0 0 #7E4529;
    color: var(--White, #FFF);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 125% */
}

.modal-btn-text {
    max-width: 350px;
    color: var(--Grey-500, #6E6A66);
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
}

.modal-btn-text a {
    max-width: 350px;
    color: var(--Grey-500, #6E6A66);
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    text-decoration: underline;
}

.modal-img {
    position: absolute;
    width: calc(100% - 10px);
    aspect-ratio: 574 / 306;
    left: 0;
    bottom: 0;
    background-image: url("image/modal-image.webp");
    background-size: cover;
}

.modal-close {
    width: 44px;
    height: 44px;
    z-index: 1;
    position: absolute;
    right: 10px;
    top: 10px;
    background-size: cover;
    background-image: url("icon/ic_twotone-close.svg");
}

.modal-mid-img {
    max-width: 372px;
    margin-top: -8px;
}

#changeLayout .modal-mid-img,
#changeLayout .modal-form {
    margin-top: -12px;
}

.big-modal-container {
    max-width: 1180px;
    padding: 20px 0;
}

.big-modal-content {
    padding: 90px 60px 48px;
    gap: 50px;
    align-items: flex-start;
}

.big-modal-title {
    width: 737px;
    color: var(--Black, #1C2320);
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 46px; /* 115% */
    text-transform: uppercase;
    text-align: left;
}

.big-modal-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 20px;
    width: 100%;
}

.big-modal {
    align-items: flex-start;
    overflow-y: auto;
}

.big-modal-item {
    width: calc((100% - 20px) / 2);
    display: flex;
    padding: 20px 20px 24px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-radius: 20px;
    border: 1px solid rgba(252, 252, 252, 0.50);
    background: var(--White, #FFF);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    height: 236px;
}

.big-modal-item-icon {
    width: 60px;
    height: 60px;
}

.big-modal-item-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.big-modal-item-title {
    color: var(--Black, #1C2320);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 150% */
    text-transform: uppercase;
}

.big-modal-item-title span {
    color: var(--Tertiary, #AE5A33);
}

.big-modal-item-text {
    color: var(--Grey-600, #757575);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

.big-modal-item-img-container {
    width: calc((100% - 20px) / 2);
    height: 494px;
    border-radius: 20px;
    overflow: hidden;
}

.big-modal-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.big-modal-item-column {
    width: calc((100% - 20px) / 2);
    gap: 22px;
    display: flex;
    flex-direction: column;
}

.big-modal-item-column .big-modal-item {
    width: 100%;
}

.helmet-icon {
    background-image: url("icon/helmet-icon.svg");
}

.find-icon {
    background-image: url("icon/find-icon.svg");
}

.feedback-icon {
    background-image: url("icon/feedback-icon.svg");
}

.house-icon {
    background-image: url("icon/house-icon.svg");
}

.handshake-icon {
    background-image: url("icon/handshake-icon.svg");
}

.home-icon {
    background-image: url("icon/home-icon.svg");
}

.big-modal-form-row {
    margin-top: 50px;
    width: 100%;
    justify-content: space-between;
    display: flex;
    padding-left: 39px;
}

.big-modal-form {
    width: 386px;
}

.big-modal-text-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.big-modal-form-title {
    color: var(--Black, #1C2320);
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 38px;
    text-transform: uppercase;
    text-align: center;
}

.big-modal-form-title span {
    color: var(--Tertiary, #AE5A33);
}

.big-modal-form-text {
    width: 416px;
    color: var(--Grey-600, #757575);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
}

.big-modal-img-container {
    width: 544px;
    height: 510px;
    overflow: hidden;
    border-radius: 10px;
}

.big-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.big-modal .modal-close {
    top: 30px;
    right: 30px;
}

.project-modal-content {
    padding: 90px 100px 33px;
}

#getProjectImg {
    align-items: flex-start;
    overflow: auto;
}

#getProjectImg .modal-container {
    padding: 15px 0;
}

.modal-gallery-container {
    width: 584px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.modal-gallery-img {
    width: 100%;
}

.project-modal-container {
    max-width: 782px;
}

.project-modal-container .modal-title {
    max-width: 416px;
}

.project-modal-container .modal-form {
    max-width: 386px;
}

#modalSuccess .modal-container {
    max-width: 448px;
}

#modalSuccess .modal-content {
    padding: 61px 16px 353px;
    gap: 10px;
}

.modal-success-title {
    font-style: normal;
    font-weight: 500;
    font-size: 26px;
    line-height: 38px;
    color: #1C2320;
    z-index: 1;
}

.modal-success-text {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #6E6A66;
    z-index: 1;
}

.modal-success-img {
    width: 100%;
    aspect-ratio: 896 / 710;
    position: absolute;
    bottom: 0;
    left: 0;
    background-image: url("image/modal-success-img.webp");
    background-size: cover;
}




@media (max-width: 1200px) {
    .modal-img {
        display: none;
    }



    .modal-content {
        padding: 56px 17px 20px;
    }

    .img-modal-content {
        padding: 47px 11px 20px;
    }

    .modal-container {
        width: calc(100% - 20px);
        max-width: 420px;
        gap: 22px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-form {
        gap: 30px;
    }

    .modal-btn-text {
        font-size: 11px;
    }

    .img-mid-modal-content {
        padding: 72px 11px 30px;
    }

    .modal-mid-img {
        width: calc(100% + 22px);
    }

    .img-mid-modal-content {
        gap: 16px;
    }

    .img-mid-modal-content .modal-form {
        margin-top: 4px;
    }

    .big-modal-content {
        padding: 72px 10px 24px;
        gap: 26px;
    }

    .big-modal-title {
        width: 305px;
        text-align: center;
        font-size: 26px;
        line-height: 32px;
        font-weight: 500;
    }

    .big-modal-content-container {
        flex-direction: column;
        gap: 20px;
    }

    .big-modal-item {
        width: 100%;
        height: auto;
        padding: 20px 20px 24px;
    }

    .big-modal-item-title {
        font-size: 18px;
        line-height: 140%;
    }

    .big-modal-item-text {
        font-size: 14px;
        line-height: 18px;
    }

    .big-modal-item-img-container {
        width: 100%;
        height: auto;
        aspect-ratio: 305 / 245;
    }

    .big-modal-item-column {
        width: 100%;
        gap: 20px;
    }

    .big-modal-form-row {
        margin-top: 11px;
        flex-direction: column;
        gap: 29px;
        padding: 0;
    }

    .big-modal-form {
        width: 100%;
    }

    .big-modal-form-title {
        font-size: 28px;
        line-height: 32px;
    }

    .big-modal-form-text {
        width: 100%;
        font-size: 14px;
        line-height: 20px;
    }

    .big-modal-img-container {
        width: 100%;
        height: auto;
        aspect-ratio: 306 / 266;
    }

    .project-modal-content {
        padding: 75px 10px 25px;
    }

    .modal-gallery-container {
        width: 100%;
    }
}