/* ------------------------------------
BASE WIDGET WRAPPER
------------------------------------ */
.ymca-signup-widget {
    background: #f4f4f4;
    border-radius: 20px;
    margin: auto;
    margin-bottom: 50px;
    max-width: 900px;
    overflow: hidden;
    width: calc(100vw * (12 / 14));
}

div#ymca-join-journey-short {
    padding-top: 200px;
}

.ymca-signup-widget-fields {
    padding: 20px;
}

h1.gradient-heading {
    max-width: calc(100% - 40px);
    text-align: center;
    margin-left:auto;
    margin-right:auto;
}

/* ------------------------------------
CONTRAST SECTION
------------------------------------ */
.contrast-section {
    margin-bottom: 60px;
}

.contrast-section .g {
    margin: auto;
    width: calc(100vw * (12 / 14));
}

/* ------------------------------------
LOCATION IMAGE
------------------------------------ */
img#ymca-location-image {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

/* ------------------------------------
LOCATION SELECT
------------------------------------ */
.ymca-location-select {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.ymca-location-select label {
    color: #8f2f8d;
    font-size: 1.5625rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.ymca-location-select select {
    background: #fff;
    border: 0;
    border-radius: 20px;
    color: #636466;
    cursor: pointer;
    font-size: 20px;
    margin-top: 15px;
    padding: 20px;
    position: relative;
    text-align: center;
}

.ymca-location-select:after {
    bottom: 22px;
    color: #636466;
    content: '\f107';
    display: block;
    font-family: FontAwesome;
    height: 20px;
    pointer-events: none;
    position: absolute;
    right: 20px;
    width: 20px;
    z-index: 10000;
}

/* ------------------------------------
MEMBERSHIP CARDS
------------------------------------ */
.ymca-memberships {
    display: flex;
    flex: 1;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    margin-bottom: 20px;
    width: 100%;
}

label.ymca-membership-card {
    align-items: center;
    background: #fff !important;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    padding: 20px;
    width: 100%;
}

label.ymca-membership-card:first-of-type {
    margin-right: 0;
}

p.label-heading {
    color: #8f2f8d;
    font-size: 1.5625rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    margin-top: 40px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.ymca-membership-name {
    color: #636466;
    font-size: 1.5625rem;
    font-weight: bold;
}

.ymca-membership-price {
    color: #636466;
    text-align: center;
}

label.ymca-membership-card:has(input:checked) {
    background: #5a348f !important;
    color: #fff !important;
}

label.ymca-membership-card:has(input:checked) .ymca-membership-name,
label.ymca-membership-card:has(input:checked) .ymca-membership-price {
    color: #fff !important;
}

/* ------------------------------------
EMAIL FIELD
------------------------------------ */
.ymca-email-field {
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.ymca-email-field label {
    color: #8f2f8d;
    font-size: 1.5625rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.ymca-email-field input {
    background: #fff;
    border: 0;
    border-radius: 20px;
    color: #636466;
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 15px;
    padding: 20px;
    position: relative;
    text-align: center;
    width: 100%;
}

/* ------------------------------------
BUTTON
------------------------------------ */
.ymca-join-button-wrap {
    margin-top: 20px;
    text-align: center;
}

.ymca-join-button-wrap button {
    left: -20px;
}

/* ------------------------------------
HERO BACKGROUND ILLUSTRATION
------------------------------------ */
div#ymca-join-journey-short .container {
    position: relative;
    width: 100%;
}

div#ymca-join-journey-short .container:after {
    background: url('https://ymcacf.org/wp-content/uploads/2020/08/bc2031_NewSite_HomepageIllustrations_Final_NewWebsiteTopImage_1362x910.png') no-repeat bottom 220px right;
    background-size: 60%;
    bottom: 0;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    transform: scaleX(-1);
    width: 100%;
    z-index: -1;
}

/* ------------------------------------
THANK YOU STYLES
------------------------------------ */
#ymca-join-journey-short:has(.ymca-thank-you) h1,
#ymca-join-journey-short:has(.ymca-thank-you) .container:after{
    display: none;
}

/* ------------------------------------
MEDIA QUERIES
------------------------------------ */
@media (max-width: 1200px) {
    div#ymca-join-journey-short {
        padding-top: 160px;
    }
}

@media (max-width: 991px) {
    img#ymca-location-image {
        height: 350px;
    }
}

@media (max-width: 900px) {
    div#ymca-join-journey-short {
        padding-top: 100px;
    }
}

@media (max-width: 720px) {
    div#ymca-join-journey-short {
        padding-top: 80px;
    }

    .ymca-signup-widget,
    .contrast-section .g {
        width: calc(100vw - 40px);
    }

    .ymca-memberships {
        flex-direction: column-reverse;
    }

    label.ymca-membership-card {
        margin-bottom: 20px;
        margin-right: 0;
    }

    label.ymca-membership-card:first-of-type {
        margin-bottom: 0;
    }
}

p#ymca-debug-url strong {
    color: #5a348f;
    font-size: 12px;
    padding: 2px;
}

p#ymca-debug-url {
    color: #989898 !important;
}

button#ymca-join-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}