/*
 Theme Name: Divi Child - CRBF
 Description: Divi Child Theme for Curing Retinal Blindness Foundation
 Author: Laricos Enterprises, LLC
 Author URI: https://www.laricos.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Style hyperlinks

p a {
	color: #00a3f4;
	text-decoration: underline;
}

p a:hover {
	color: #0092db;
	text-decoration: underline;
}

p a:visited {
	color: #562e98;
	text-decoration: underline;
}

*/

/* The below code removes the sidebar that is included by default in individual event pages from the WP Event Manager Plugin */

.single-event_listing #sidebar {
    display: none;
}
.single-event_listing #left-area {
    padding: 0;
    width: 100%;
}
.single-event_listing #main-content .container:before{
    display: none;
}

/* The following code styles the newsletter signup forms - both inline, and the one generated by popup */

/* 1. Main Container: Targets all Constant Contact form wrappers regardless of render order (_0, _1, etc.) */
body .ctct-form-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 120px 100px 225px !important;
    background-color: #224b99 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    clear: both !important;
    position: relative !important;
}

body .ctct-form-wrapper form.ctct-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Success Message: Bold white alert inside the blue box */
body .ctct-form-wrapper .ctct-message,
body .ctct-form-wrapper .ctct-form-success,
body .ctct-form-wrapper .ctct-success {
    display: block !important;
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid #ffffff !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    padding: 20px 24px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    order: -1 !important;
}

/* 3. Heading */
body .ctct-form-wrapper form.ctct-form::before {
    content: "Join Our Newsletter";
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    color: #ffffff !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 26px !important;
    order: 0 !important;
}

/* Hide Constant Contact success message icons, pseudo-elements, and close buttons */
body .ctct-form-wrapper .ctct-message::before,
body .ctct-form-wrapper .ctct-message::after,
body .ctct-form-wrapper .ctct-form-success::before,
body .ctct-form-wrapper .ctct-form-success::after,
body .ctct-form-wrapper .ctct-message span.ctct-message-icon,
body .ctct-form-wrapper .ctct-message .ctct-dismiss,
body .ctct-form-wrapper .ctct-message button.close,
body .ctct-form-wrapper .ctct-message a.close {
    display: none !important;
    content: none !important;
    background: none !important;
}

body .ctct-form-wrapper .ctct-message,
body .ctct-form-wrapper .ctct-form-success {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* 4. Resets & Disclosures */
body .ctct-form-wrapper p.ctct-form-field {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body .ctct-form-wrapper span.ctct-label-top {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .ctct-form-wrapper label {
    display: none !important;
}

body .ctct-form-wrapper .ctct-disclosure,
body .ctct-form-wrapper .ctct-disclosure-container {
    display: none !important;
}

/* 5. Field Columns */
body .ctct-form-wrapper p.ctct-form-field-text {
    width: 48.5% !important;
    max-width: 48.5% !important;
    flex: 0 0 48.5% !important;
    order: 1 !important;
}

body .ctct-form-wrapper p.ctct-form-field-email {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: 2 !important;
}

body .ctct-form-wrapper p.ctct-form-field-submit {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: 3 !important;
    margin-bottom: 0 !important;
}

/* 6. Inputs */
body .ctct-form-wrapper input.ctct-text,
body .ctct-form-wrapper input.ctct-email {
    display: block !important;
    width: 100% !important;
    height: 90px !important;
    min-height: 70px !important;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0 22px !important;
    font-size: 28px !important;
	font-weight: 600 !important;
    color: #000000 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 70px !important;
}

body .ctct-form-wrapper input.ctct-text::placeholder,
body .ctct-form-wrapper input.ctct-email::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-size: 28px !important;
	font-weight: 600 !important;
}

/* 7. Submit Button */
body .ctct-form-wrapper input.ctct-submit {
    display: block !important;
    width: 100% !important;
    height: 90px !important;
    min-height: 74px !important;
    background-color: #e74252 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    padding: 0 20px !important;
    margin: 8px 0 0 0 !important;
    line-height: 74px !important;
    box-shadow: none !important;
    transition: background-color 0.25s ease !important;
}

body .ctct-form-wrapper input.ctct-submit:hover {
    background-color: #af313d !important;
}

/* 8. Tablet Breakpoint */
@media screen and (max-width: 980px) {
    body .ctct-form-wrapper {
        padding: 65px 65px 125px !important;
        border-radius: 12px !important;
    }
    body .ctct-form-wrapper form.ctct-form::before {
        font-size: 30px !important;
        margin-bottom: 20px !important;
    }
    body .ctct-form-wrapper input.ctct-text,
    body .ctct-form-wrapper input.ctct-email {
        height: 62px !important;
        min-height: 62px !important;
        line-height: 62px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }
    body .ctct-form-wrapper input.ctct-text::placeholder,
    body .ctct-form-wrapper input.ctct-email::placeholder {
        font-size: 18px !important;
    }
    body .ctct-form-wrapper input.ctct-submit {
        height: 66px !important;
        min-height: 66px !important;
        line-height: 66px !important;
        font-size: 18px !important;
        border-radius: 8px !important;
    }
}

/* 9. Mobile Breakpoint */
@media screen and (max-width: 767px) {
    body .ctct-form-wrapper {
        padding: 55px 35px 75px !important;
        border-radius: 14px !important;
    }
    body .ctct-form-wrapper form.ctct-form::before {
        font-size: 25px !important;
        margin-bottom: 16px !important;
    }
    body .ctct-form-wrapper p.ctct-form-field-text {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    body .ctct-form-wrapper input.ctct-text,
    body .ctct-form-wrapper input.ctct-email {
        height: 56px !important;
        min-height: 56px !important;
        line-height: 56px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    body .ctct-form-wrapper input.ctct-text::placeholder,
    body .ctct-form-wrapper input.ctct-email::placeholder {
        font-size: 16px !important;
    }
    body .ctct-form-wrapper input.ctct-submit {
        height: 58px !important;
        min-height: 58px !important;
        line-height: 58px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
}

/* Prevent Divi MediaElement background video container from causing CLS */
.et_pb_section_video_bg,
.et_pb_section_video_bg .mejs-container,
.et_pb_section_video_bg .mejs-inner,
.et_pb_section_video_bg .mejs-mediaelement,
.et_pb_section_video_bg video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.et_pb_section_video_bg video {
    object-fit: cover !important;
}
