/* Nav Dropdowns */

.navContent ul li ul a {
    white-space: normal !important;
    overflow: visible !important;
}

@media only screen and (min-width: 768px) {
    .navContent ul li ul {
        min-width: 250px !important;
        right: auto !important; 
    }
}

/*Mad Accordion*/
.madwire-accordion {
    margin: 30px 0;
}

.madwire-accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.madwire-accordion-title {
    background: #251b42; /* color of accordion title background */
    font-size: 24px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.madwire-accordion-title::after {
    content: '+';
    font-size: 38px;
    margin: 0;
    padding: 0;
    line-height: .5;
}

.madwire-accordion-title.open::after {
    content: '-';
    font-size: 55px;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: absolute;
    top: 43%;
    right: 20px;
}


.madwire-accordion-content {
    color: black; /* color of accordion content */
    padding: 10px 20px;
    background: white;
}

/*Popup CSS*/
.mad-popup-wrap {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 76%);
    z-index: 9999;
}

.mad-popup-wrap.show{
  display:block;
}

.mad-popup-content img {
    max-width: 100%;
    width: 100%;
}

.mad-popup-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    min-width: 500px;
    text-align: center;
    max-width: 420px;
    padding: 40px 24px 24px;
    border-top: 6px solid #313bbe;
    border-radius: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mad-popup-wrap .close {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 30px;
    cursor: pointer;
}

.mad-popup-text {
    padding: 15px;
}

.mad-popup-wrap p.popup-header {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
    margin: 0 0 12px;
}

.mad-popup-wrap p.popup-subheader {
    margin: 0 0 16px;
    font-size: 1rem;
    text-align: center;
    color: #313bbe;
    font-weight: 700;
    line-height: 1.4;
}

.mad-popup-content ul {
    text-align: left;
    margin-bottom: 15px;
}

.mad-popup-content .button{
    background: linear-gradient(135deg, #313bbe, #5382e9);
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(36, 27, 66, 0.35);
    display: inline-block;    
}

@media screen and (max-width: 768px){
  .mad-popup-box {
        min-width: 90%;
        top: 12rem;
        transform: translate(-50%);
    }
}

/*uncomment to change color of the popup text*/
/*p.popup-header, p.popup-subheader {*/
/*    color: black;*/
/*}*/

/*uncomment to change close button to white*/
/*.close svg {*/
/*    filter: invert(1);*/
/*}*/

iframe.house-call-pro {
    width: 100%;
}

/* 2 Column Form */


div#madHero {
    text-align: left;
    padding: 15px;
}

div#madHero > div.madHero-item {
    flex: 1 1 0;
    margin-bottom: 20px;
    margin-left: 20px;
}

.madTitle {
    font-size: 1.8rem; /* accepts decimals */
    /* Changed to dark text so it is readable against the white background */
    color: #fff; 
}

.madContent {
    font-size: 1.1rem; /* accepts decimals */
    /* Changed to dark text so it is readable against the white background */
    color: #fff; 
}

@media only screen and (min-width: 768px) {
    div#madHero {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: 40px; /* Keeps the text and form blocks from touching */
    }
}