/* BOOK APPOINTMENT MODAL */

.popup {
    display: none !important;
}

.cta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a5044f7;
    z-index: 100;
}
  
.cta-modal {
    position: fixed;
    top: 3.5rem;
    left: 50%;
    max-width: 60rem;
    width: 92%;
    background: #FBFAF8;
    transform: translate(-50%, 0%);
    z-index: 1001;
    border-radius: 1rem;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.cta-hidden {
    display: none;
}

.cta-modal-content {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1rem 2rem 2rem 2rem;
}
  
.cta-modal .cta-close {
    background: none;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    color:var(--black-05);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    text-align: right;
    font-family: 'Satoshi';
    font-weight: 450;
}

.modal-header {
    display: flex;
    column-gap: 0.5rem;
    align-items: center;
    border-bottom: var(--black-02) solid 1px;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.modal-header img {
    display: block;
    width: 100%;
    max-width: 5.5rem;
}

.cta-close-button {
    margin-left: auto;
}

.cta-header-copy {
    font-family: 'Felicity', serif;
    color: #1A5044;
    font-size: 3.25rem;
}

.modal-main {
    display: grid;
    grid-template-columns: 1fr 26rem;
    column-gap: 4rem;    
}

.modal-copy p {
    margin: 1.5rem 0 0 0;
    color: var(--black-09);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}

.modal-copy p:nth-child(3) {
    color: var(--black-07);
    font-weight: 400;
    font-size: 1.1rem;
}

.modal-copy img {
    width: 100%;
    border-radius: 1rem;
}

.modal-buttons {
    border: rgba(32,80,67,0.2) solid 1px;
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    height: fit-content;
    display: grid;
    row-gap: 1rem;
}

.modal-buttons h2 {
    color: #1A5044;
    margin: 0;
    font-size: 2.25rem;
}

.contact-box {
    background-color: #FBFAF8;
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 0.75rem;
    align-items: center;
    color: var(--black-08);
    font-weight: 500;
    font-size: 1.2rem;
}

.contact-circle {
    height: 3rem;
    align-items: center;
    place-content: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.5rem;
    color: #1A5044;
    background-color: rgba(32,80,67,0.1);
    border-radius: 50%;
}

.contact-box span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--black-05);
    font-weight: 350;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* MEDIA QUERIES */


@media only screen and (max-width: 980px) {
    .modal-main {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .modal-copy {
        order: 2;
    }
}

@media only screen and (max-width: 768px) {

    .cta-modal .cta-close {
        font-size: 0.725rem;
    }

    .cta-header-copy {
        font-size: 2rem;
    }

    .modal-header img {
        max-width: 3.5rem;
    }

    .modal-header {
        position: relative;
        margin-bottom: 1rem;
    }

    .cta-close-button {
        position: absolute;
        top: -0.5rem;
        right: -0.5rem;
    }

    .cta-modal-content, .modal-buttons {
        padding: 1rem;
    }

    .modal-buttons h2 {
        font-size: 1.9rem;
    }

    .modal-main {
        row-gap: 1rem;
    }

    .modal-copy p {
        font-size: 1.1rem;
    }

    .modal-copy p:nth-child(3) {
        font-size: 1.01rem;
    }

    .cta-modal {
        top: 2rem;
    }
}