/**************************\
  Basic Modal Styles
\**************************/

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    max-height: 100vh;
    border-radius: 4px;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
}

.modal__form {
    width: 100%;
    max-width: 830px;
    padding-left: 100px;
    padding-right: 100px;
    color: var(--black);
}

.modal__gallery {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    padding: 20px 100px 20px;
    background-color: #8a8a94;
}

.modal__video {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 75vh;
    padding: 30px 60px;
}

.modal__video iframe {
    width: 100%;
    height: 100%;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #00449e;
    box-sizing: border-box;
}

.modal__close {
    color: var(--grey-blue);
    background: transparent;
    outline: none;
    box-shadow: none;
    border: 0;
    top: 15px;
    right: 15px;
    position: absolute;
}

.modal__gallery .modal__close {
    color: var(--white);
}

.modal__header .modal__close:before {
    content: "\2715";
}

.modal__content {
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, .8);
    height: 100%;
}

.modal__gallery .modal__content,
.modal__video .modal__content {
    margin-top: 0;
    margin-bottom: 0;
}

.modal__btn {
    font-size: .875rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background-color: #e6e6e6;
    color: rgba(0, 0, 0, .8);
    border-radius: .25rem;
    border-style: none;
    border-width: 0;
    cursor: pointer;
    -webkit-appearance: button;
    text-transform: none;
    overflow: visible;
    line-height: 1.15;
    margin: 0;
    will-change: transform;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: -webkit-transform .25s ease-out;
    transition: transform .25s ease-out;
    transition: transform .25s ease-out, -webkit-transform .25s ease-out;
}

.modal__btn:focus,
.modal__btn:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.modal__btn-primary {
    background-color: #00449e;
    color: #fff;
}

.modal__gallery-button-prev,
.modal__gallery-button-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100%;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border: 0;
    z-index: 99;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}
.modal__gallery-button-prev {
    left: 20px;
}
.modal__gallery-button-next {
    right: 20px;
}
.modal__gallery-button-prev::before,
.modal__gallery-button-next::before {
    content: '';
    width: 0;
    height: 0;
    border: 15px solid transparent;
    top: 50%;
    left: 50%;
    position: absolute;
}
.modal__gallery-button-prev::before {
    transform: translate(-25px, -50%);
    border-right: 15px solid var(--white);
}
.modal__gallery-button-next::before {
    transform: translate(-5px, -50%);
    border-left: 15px solid var(--white);
}

.swiper-pagination-bullet-active {
    background: var(--main-color);
}
.modal__gallery .swiper-pagination-bullet-active {
    background: var(--white);
}

.modal__form input, .modal__form textarea {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: 1px solid #a7a7a7;
    font-size: 14px;
    padding: 0 10px;
}
.modal__form textarea {
    padding: 5px 10px;
    min-height: 50px;
    max-height: 200px;
}
.modal__form input {
    height: 32px;
    line-height: 32px;
}
.form-input-group, .form-textarea-group {
    margin-bottom: 16px;
}
.form-button-group {
    text-align: center;
    margin-top: 30px;
}
.modal__form .btn {
    font-size: 16px;
}
.form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    padding-top: 30px;
}
.modal__form .required-fields-text {
    opacity: .7;
    font-size: 14px;
    margin-top: 16px;
}
.form-agree-group {
    font-size: 16px;
    align-items: center;
    display: flex;
}
.form-agree-group input {
    display: none;
}
.form-agree-group label {
    cursor: pointer;
    line-height: 1;
    align-items: center;
    display: flex;
}
.form-agree-group label a {
    color: var(--main-color);
}
.form-agree-group input:checked + span {
    background: var(--main-color);
}
.form-agree-checkbox {
    width: 25px;
    height: 25px;
    border: 1px solid #a7a7a7;
    margin-right: 10px;
    display: inline-block;
}
.error .form-agree-checkbox {
    border-color: var(--main-color);
}
.modal .success-form form {
    display: none;
}
.modal .success-form-text, .notice-form-content__text {
    text-align: center;
    padding: 60px 0;
}
.modal .success-form-text {
    display: none;
}
.modal .success-form .success-form-text {
    display: block;
}

/**************************\
Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.modal, .micromodal-slide {
    display: none;
}

.modal.is-open, .micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
    max-height: 100%;
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
    max-height: 90%;
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
    height: 100%;
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
    max-height: 90%;
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}
@media (min-width: 992px) {
    .modal__gallery .swiper-pagination, .modal__video .swiper-pagination {
        display: none;
    }
}
@media (max-width: 991px) {
    .modal__container {
        width: calc(100% - 30px);
    }
    .modal__form {
        padding-left: 30px;
        padding-right: 30px;
    }
    .modal__video, .modal__gallery {
        padding: 20px;
        height: auto;
    }
    .modal__close {
        top: 5px;
        right: 5px;
    }
    .modal__video iframe {
        height: 40vh;
    }
    .modal__gallery-button-prev, .modal__gallery-button-next {
        display: none;
    }
}