/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Dec 02 2026 | 22:01:10 */

/* ==================================================
   COLUMBIA COLLEGE - WEBSITE DEVELOPMENT

   NAME: Global Gravity Forms Popup Styling
   VERSION: 1.0
   DEPARTMENT: Marketing

   PURPOSE:
   Provides reusable popup styling for Gravity Forms,
   information requests, event registrations and
   other website content.

   DEPENDENCIES:
   Divi 4
   Global Popup JavaScript
   Gravity Forms (when displaying forms)

   IMPORTANT:
   Do not delete or deactivate without reviewing
   the impact on website forms and popups.
   ================================================== */


/* ==================================================
   01. POPUP DESIGN VARIABLES
   ================================================== */

:root {
    --cc-popup-overlay: rgba(4, 19, 35, 0.75);
    --cc-popup-background: #FFFFFF;
    --cc-popup-width: 600px;
    --cc-popup-radius: 12px;
    --cc-popup-padding: 40px;
    --cc-popup-button-radius: 8px;
    --cc-popup-navy: #00364D;
    --cc-popup-red: #D32229;
}


/* ==================================================
   02. POPUP OVERLAY
   ================================================== */

body .et_pb_section.gravity-popup {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    background: var(--cc-popup-overlay) !important;
    background-image: none !important;
    padding: 20px !important;
    margin: 0 !important;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


/* Visible popup */

body .et_pb_section.gravity-popup.active {
    display: flex !important;
}


/* Prevent Divi background masks and patterns */

.gravity-popup > .et_pb_background_mask,
.gravity-popup > .et_pb_background_pattern {
    display: none !important;
}


/* ==================================================
   03. POPUP CONTENT CONTAINER
   ================================================== */

.gravity-popup .gravity-popup-content {
    background: var(--cc-popup-background) !important;
    background-image: none !important;
    width: 100% !important;
    max-width: var(--cc-popup-width) !important;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: var(--cc-popup-padding) !important;
    border-radius: var(--cc-popup-radius);
    position: relative;
    margin: auto !important;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    overscroll-behavior: contain;
}


/* ==================================================
   04. OPTIONAL POPUP SIZES
   ================================================== */

/* Small popup */

.gravity-popup.gravity-popup-small {
    --cc-popup-width: 450px;
}

/* Standard popup */

.gravity-popup.gravity-popup-medium {
    --cc-popup-width: 600px;
}

/* Large popup */

.gravity-popup.gravity-popup-large {
    --cc-popup-width: 800px;
}

/* Extra large popup */

.gravity-popup.gravity-popup-xl {
    --cc-popup-width: 1000px;
}


/* ==================================================
   05. CLOSE BUTTON
   ================================================== */

.gravity-popup .gravity-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0 !important;
    font-size: 30px;
    line-height: 1;
    color: var(--cc-popup-navy);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.gravity-popup .gravity-popup-close:hover {
    background: #EEF3F8;
    color: var(--cc-popup-red);
}

.gravity-popup .gravity-popup-close:focus-visible {
    outline: 2px solid var(--cc-popup-navy);
    outline-offset: 2px;
}


/* ==================================================
   06. GRAVITY FORMS STYLING
   ================================================== */

.gravity-popup .gform_wrapper {
    width: 100%;
}

/* Form fields */

.gravity-popup .gform_wrapper input:not([type="checkbox"]):not([type="radio"]),
.gravity-popup .gform_wrapper select,
.gravity-popup .gform_wrapper textarea {
    border-radius: 6px;
    box-sizing: border-box;
}

/* Submit button */

.gravity-popup .gform_wrapper .gform_button {
    width: 100%;
    padding: 14px 24px !important;
    border-radius: var(--cc-popup-button-radius) !important;
    cursor: pointer;
}

/* Confirmation message */

.gravity-popup .gform_confirmation_message {
    line-height: 1.7;
}


/* ==================================================
   07. BACKGROUND SCROLL LOCK
   Requires JavaScript to apply the body class
   ================================================== */

body.gravity-popup-open {
    overflow: hidden !important;
}


/* ==================================================
   08. MOBILE RESPONSIVENESS
   ================================================== */

@media (max-width: 767px) {

    body .et_pb_section.gravity-popup {
        padding: 12px !important;
    }

    .gravity-popup .gravity-popup-content {
        padding: 40px 20px 24px !important;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 10px;
    }

    .gravity-popup .gravity-popup-close {
        top: 6px;
        right: 8px;
    }
}

@media (max-width: 479px) {

    .gravity-popup .gravity-popup-content {
        padding: 40px 16px 20px !important;
    }
}


/* ==================================================
   09. ACCESSIBILITY
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .gravity-popup *,
    .gravity-popup *::before,
    .gravity-popup *::after {
        transition: none !important;
    }
}
