/* Custom astro-banner */

.astro-banner {
    position: fixed;
    display: block;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s 0.12s;
}

.astro-banner.is-visible {
    opacity: 1;
    z-index: 100000;
    pointer-events: all;
}

.astro-banner-overlay {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 0%, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.astro-banner.is-visible .astro-banner-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.astro-banner-wrapper {
    position: absolute;
    z-index: 9999;
    top: 6em;
    left: 50%;
    width: 635px;
    transform: translateX(-50%) !important;
    background-color: #fff;
    box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
    width: max-content;
}

.astro-banner-transition {
    transform: translateY(-10%);
    opacity: 0;
}

.astro-banner.is-visible .astro-banner-transition {
    transform: translateY(0);
    opacity: 1;
}

.astro-banner-wrapper {
    border-radius: 10px;
    background: rgb(100,139,160);
    background: linear-gradient(148deg, rgba(100,139,160,1) 0%, rgb(53 129 195) 100%);
}

.astro-banner-body {
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.astro-banner-content {
    color: white;
    text-align: center;
}

.astro-banner--image .astro-banner-content h2 {
    color: white;
    margin-bottom: 16px;
    font-weight: 400;
}

.astro-banner-content a {
    border-radius: 5px;
    background-color: white !important;
    padding: 15px 20px;
    color: rgba(0, 0, 0, 0.8) !important;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin-top: 16px;
}

.astro-banner-header,
.astro-banner-content {
    padding: 2em;
}


.astro-banner-header {
    position: relative;
    background-color: #fff;
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.06);
    border-bottom: 1px solid #e8e8e8;
}

.astro-banner-close {
    z-index: 9999;
    position: absolute !important;
    margin: 0 !important;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    cursor: pointer !important;
    background-color: transparent;
}

.astro-banner-close:after {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 8px;
    content: "\d7";
    font-size: 30px;
    color: #fff !important;
    line-height: 30px;
}

.astro-banner-heading {
    font-size: 1.125em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.astro-banner-title {
    font-size: 28px;
    color: rgb(108,108,108);
    text-align:center;
}

.astro-banner-desc {
    font-size: 16px;
    text-align:center;
}

.astro-banner-image {
    display: flex;
    border-radius: 6px;
    max-height: 80vh;
    max-width: 50vw;
    margin-left: 50px;
    margin-right: 50px;
}

/* Form popup styles */
.astro-banner--form .astro-banner-wrapper {
    background: white;
    border: 2px solid #19364f;
}

.astro-banner--form .astro-banner-content {
    text-align: inherit;
}

.astro-banner--form .astro-banner-content h2 {
    margin-bottom: 16px;
    font-weight: 400;
}

.astro-banner--form .astro-banner-close:after {
    color: #19364f !important;
}

.astro-banner--form .wpforms-container {
    margin-top: -8px;
}

.astro-banner--form .wpforms-confirmation-container-full a {
    margin-top: 16px;
    border-radius: 5px;
    background-color: rgb(91, 127, 149) !important;
    padding: 5px 10px;
    font-size: 14px;
    color: rgb(255, 255, 255) !important;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}