/* Custom Color Variables */
:root {
	--wp--font--primary: 'AllianceNo2', sans-serif;
  	--wp--font--secondary: 'Eurostile', sans-serif;
  	--wp--font--secondary--ext: 'Eurostile Extended', sans-serif;
    --wp--color--black: #000000;
    --wp--color--dark-gray: #262626;
    --wp--color--medium-gray: #cccccc;
    --wp--color--light-gray: #EAEAEA;
    --wp--color--white: #ffffff;
    --wp--color--primary: #152D6F;
	--wp--color--ecam-blue: #152D6F;
    --wp--color--secondary: #262626;
    --wp--color--accent: #F4AF00;
    --wp--color--action: #F4AF00;
}


/*  Overlay  */

body.popup-open {
    overflow: hidden;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-overlay.is-open {
    display: block;
}

/*  Content box  */

.popup-content {
    position: relative;
    background: #fff;
    max-width: min(1150px, 95vw);
    width: 100%;
    margin: 0 auto;
    padding: 0;
    top:3rem;
}

.popup-content:focus {
    outline: none;
}

/*  Close button  */

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333333;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #000000;
}

.popup-close:focus {
    outline: 2px solid #00aeef;
    outline-offset: 2px;
}

/*  Contact page column padding overrides  */

#talk-to-expert-popup .wp-block-columns.contact-page-cols > .wp-block-column.contact-page-content-col.contact-page-content-col-min,
#talk-to-expert-popup .wp-block-columns.contact-page-cols > .wp-block-column.contact-page-form-col {
    padding: 1.5rem 2rem !important;
}

/*  Contact page layout inside popup  */

/*
 * show-desktop-only / show-mobile-only are used in the popup's block content
 * but have no frontend CSS in style.css (only in the block editor wrapper).
 * Define them here scoped to the popup.
 */
#talk-to-expert-popup .show-desktop-only { display: block; }
#talk-to-expert-popup .show-mobile-only  { display: none;  }

/*
 * h1 size Ã¢â‚¬â€ normally set by .contact-page h1 in style.css, but the popup
 * doesn't carry a .contact-page parent class.
 */
#talk-to-expert-popup .wp-block-columns.contact-page-cols h1 {
    font-size: 2rem;
    font-style: normal;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: var(--wp--font--primary);
    line-height: 1.2;
    text-transform: none;
}

/* h2 size Ã¢â‚¬â€ overrides .contact-page-content-col h2 (1.25rem) in style.css */
#talk-to-expert-popup .contact-page-content-col h2,
#talk-to-expert-popup .contact-page-form-col h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-Row{
    margin-bottom:0.5rem;
}

@media (max-width:430px) {
    #talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-Row {
        gap:0.5rem;
    }
}

#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-TextareaField>*:not(:last-child),
#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-EmailField>*:not(:last-child),
#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-PhoneField>*:not(:last-child),
#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-DropdownField>*:not(:last-child),
#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-TextField>*:not(:last-child) {
    margin-bottom:0!important;
}

#talk-to-expert-popup .hsfc-Renderer .recaptcha-disclaimer p{
    margin:0!important;
    margin-top:1rem!important;
}

#talk-to-expert-popup [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
    padding-bottom:1rem;
    border-bottom:1px solid #ddd;
    margin-bottom:1rem;
}

.popup-phone-cta-cols .wp-block-column {
    display:flex;
    justify-content:space-between;
    gap:1rem;
}

.popup-phone-cta-cols p{
    font-size:.75rem;
}

.popup-phone-cta-cols p.phone-link{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:0.4rem;
}

.popup-phone-cta-cols p.phone-link::before{
    content:'';
    display:inline-block;
    width:0.75rem;
    height:0.75rem;
    background:url('/wp-content/uploads/phone-solid-1.svg') no-repeat center / contain;
    flex-shrink:0;
}

.popup-phone-cta-cols p.phone-link a{
    text-decoration:none;
    color:#000;
    font-weight:bold;
}

.popup-phone-cta-cols p.phone-link a:focus,
.popup-phone-cta-cols p.phone-link a:hover {
    color:#f4af00;
}

#talk-to-expert-popup p.testimonial-text{
    font-size:1rem;
    line-height:1.5;
}

#talk-to-expert-popup p.testimonial-name{
    font-size:.675rem;
    padding-left:.75rem;
    padding-right:0;
}

#talk-to-expert-popup .testimonial-person img{
    height:32px;
    width:auto;
}

#talk-to-expert-popup h3.small-h3{
    font-family:var(--wp--font--primary);
    font-size:.675rem;
    opacity:0.65;
    letter-spacing:1px;
}

/* Responsive  */

@media only screen and (max-width: 1200px) {
    #talk-to-expert-popup .wp-block-columns.contact-page-cols h1 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 1081px) {
    #talk-to-expert-popup .contact-page-content-col h2,
    #talk-to-expert-popup .contact-page-form-col h2 {
        font-size: 1.25rem;
    }

    .popup-phone-cta-cols .wp-block-column {
        flex-direction: column;
        gap:.5rem!important;
    }

    .popup-phone-cta-cols .wp-block-column {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .popup-phone-cta-cols,
    .popup-phone-cta-cols p {
        text-align: left;
        margin: 0;
    }

    .popup-phone-cta-cols p.phone-link {
        justify-content: flex-start;
    }

    .popup-phone-cta-cols {
        margin-bottom: 0;
        row-gap:.5rem
    }
}

@media only screen and (max-width: 781px) {
    #talk-to-expert-popup .show-desktop-only { display: none;  }
    #talk-to-expert-popup .show-mobile-only  { display: block; }
}