#popup-july4 .popup-content {
    width: 700px;
    height: 500px;
    padding: 0 15px;
    background-image: url(../images/hero/popup-back.webp);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
}

#popup-july4 .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: 20px;
}

#popup-july4 form {
    margin-top: 15px;
}

#popup-july4 form select,
#popup-july4 form input {
    border-color: #a3a3a6;
}

#popup-july4 .button {
    width: 6.3em;
    height: 2.2em;
    border-radius: 20px;
    font-size: 1.125em;
    margin-top: 10px;
    padding: 0;
    background-color: #b2071c;
}

#popup-july4 .popup-thanks .button {
    margin-top: 24px;
}

#popup-july4 .form-text {
    max-width: 464px;
    font-size: 28px;
    line-height: 40px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    -webkit-text-stroke: 5px #053c63;
    paint-order: stroke fill;
}

#popup-july4 .thanks-top {
    font-size: 36px;
    line-height: 40px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    -webkit-text-stroke: 5px #053c63;
    paint-order: stroke fill;
    margin-bottom: 1em;
}

/* legacy Safari without text-box support */
@supports (background: -webkit-named-image(i)) and (not (text-box: trim-both cap alphabetic)) {
  #popup-july4 .button {
    padding-top: 4px;
  }
}
/* font-metric independent CTA label centering (Safari 18.2+, Chrome 133+);
   <button> needs display:block so text-box applies, its native content
   centering then centers the trimmed text */
@supports (text-box: trim-both cap alphabetic) {
  #popup-july4 button.button {
    display: block;
    text-box: trim-both cap alphabetic;
  }
  #popup-july4 a.button > span {
    display: block;
    text-box: trim-both cap alphabetic;
  }
}

#popup-july4 .popup-thanks .button {
    width: 10.5em;
    height: 2.25em;
}

@media screen and (max-width: 567px) {
    #popup-july4 .popup-content {
        width: 100%;
        height: 100%;
        background-image: url(../images/hero/popup-back-m.webp);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") 2x);
    }

    #popup-july4 form {
        margin-top: 16px;
    }

    #popup-july4 .form-text {
        max-width: 373px;
        font-size: 20px;
        line-height: 30px;
        -webkit-text-stroke: 4px #053c63;
    }

    #popup-july4 .thanks-top {
        max-width: 223px;
        font-size: 27px;
        line-height: 37px;
        -webkit-text-stroke: 4px #053c63;
    }

    #popup-july4 .form-text span {
        font-size: 27px;
    }

    #popup-july4 .button {
        width: 7.3em;
        height: 2.53em;
        margin-top: 7px;
        font-size: 15px;
    }
}