.home-promo-modal .modal-dialog {
    max-width: 650px;
    width: calc(100% - 30px);
    margin: auto auto 35px auto !important;
}

.home-promo-modal .modal-dialog-centered {
    display: flex;
    align-items: flex-end !important;
    justify-content: center;
    min-height: calc(100vh - 90px);
}

.home-promo-modal .modal-content {
    border: 0;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    background: #fff;
}

.home-promo-modal .modal-body {
    padding: 0;
    height: 340px;
    overflow: hidden;
}

/* left col 310px, right col 290px => 600 total */
.home-promo-shell {
    display: grid;
    grid-template-columns: minmax(0, 310px) minmax(0, 339px);
    height: 340px;
    background: #fff;
}

.home-promo-copy {
    padding: 16px 14px 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.home-promo-title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    width: 100%;
}

.home-promo-subtitle {
    margin: 0;
    font-size: 11px;
    line-height: 14px;
    color: #6b7280;
    width: 100%;
}

.home-promo-subtitle:empty {
    display: none;
}

.home-promo-formwrap {
    padding: 0;
    display: block;
    width: 100%;
    background: #fff;
    overflow: visible;
}

.home-promo-formwrap .stadium-contact-card {
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible;
}

.home-promo-formwrap .stadium-contact-card h3 {
    display: none !important;
}

/* form row gap = 6px */
.home-promo-formwrap .stadium-fg {
    margin-bottom: 6px;
}

/* input: 28px tall, radius 6, border #e5e7eb */
.home-promo-formwrap .stadium-fg input,
.home-promo-formwrap .stadium-fg textarea {
    width: 100%;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 12px !important;
    line-height: 14px !important;
    color: #111827 !important;
    box-sizing: border-box;
}

.home-promo-formwrap .stadium-fg input::placeholder,
.home-promo-formwrap .stadium-fg textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

/* textarea: 48px tall */
.home-promo-formwrap .stadium-fg textarea {
    height: 65px !important;
    min-height: 48px !important;
    resize: none;
}

/* phone row: dial 76px + 6px gap + input */
.home-promo-formwrap .iti {
    gap: 6px !important;
}

.home-promo-formwrap .iti--separate-dial-code .iti__selected-flag {
    width: 76px !important;
    height: 28px !important;
    min-height: 28px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    justify-content: space-between !important;
}

.home-promo-formwrap .iti__selected-dial-code {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    color: #1a1a1a !important;
    margin-left: 0 !important;
}

.home-promo-formwrap .iti__arrow {
    margin-left: 0 !important;
}

.home-promo-formwrap .iti input[type="tel"] {
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 14px !important;
    color: #111827 !important;
}

.home-promo-formwrap .iti input[type="tel"]::placeholder {
    color: #6b7280 !important;
}

.home-promo-formwrap .s-phone-row .dial {
    width: 76px;
    height: 28px;
    min-height: 28px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 16px;
    color: #1a1a1a;
}

/* button: pill 110 x 32, #6d50d1 */
.home-promo-formwrap .form-submit {
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.home-promo-formwrap .s-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 6px 28px;
    background: #6d50d1;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    transform: none;
}

.home-promo-formwrap .s-connect-btn:hover {
    background: #5c41bd;
    transform: none;
}

/* image: 278 x 314, radius 12, inset top 12 / right 12 / bottom 14 */
.home-promo-visual {
    position: relative;
    height: 340px;
    padding: 12px 12px 14px 0;
    display: flex;
    align-items: stretch;
    background: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.home-promo-visual .home-promo-visual-inner {
    position: relative;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #e9edf2;
}

.home-promo-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* invalid fields: the validation script writes an inline red border, which the
       base rules above would otherwise beat with !important -- match it back */
.home-promo-formwrap .stadium-fg input[style*="red"],
.home-promo-formwrap .stadium-fg textarea[style*="red"],
.home-promo-formwrap .iti input[type="tel"][style*="red"] {
    border: 1.5px solid #dc3545 !important;
}

.home-promo-formwrap .stadium-fg input[style*="red"]::placeholder,
.home-promo-formwrap .stadium-fg textarea[style*="red"]::placeholder,
.home-promo-formwrap .iti input[type="tel"][style*="red"]::placeholder {
    color: #e08b93 !important;
}

    /* validation messages stay hidden in the home popup - the red field border
       conveys the error. !important beats the inline display jQuery .show() writes,
       so the layout never shifts and the card stays exactly 400px. */
    .home-promo-formwrap #MobileNoID,
    .home-promo-formwrap #firstNameID,
    .home-promo-formwrap #EmailNameID,
    .home-promo-formwrap #messageNameID {
        display: none !important;
    }

/* X circle: 17 x 17, 11px from image top-right */
.home-promo-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border: 2px solid #bbb;
    outline: 0;
    border-radius: 50% !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #8b9099 !important;
    font-size: 0;
    line-height: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    opacity: 1 !important;
    text-shadow: none;
    cursor: pointer;
    transition: background-color .2s;
}

.home-promo-close svg {
    width: 20px;
    height: 14px;
    display: block;
    stroke: #fff;
}

.home-promo-close:hover,
.home-promo-close:focus {
    color: #fff !important;
    background: #6b7280 !important;
    background-color: #6b7280 !important;
    opacity: 1 !important;
}

.home-promo-modal .modal-backdrop.show {
    opacity: .6;
}

/* ---------- responsive: release the fixed 400px height when stacked ---------- */
@media (max-width: 991px) {
    .home-promo-modal .modal-dialog {
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .home-promo-modal .modal-content {
        height: auto;
    }

    .home-promo-modal .modal-body {
        height: auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .home-promo-shell {
        grid-template-columns: 1fr;
        height: auto;
    }

    .home-promo-copy {
        padding: 24px 22px 18px;
        gap: 14px;
    }

    .home-promo-title {
        font-size: 26px;
        line-height: 32px;
    }

    .home-promo-visual {
        order: 2;
        height: 220px;
        min-height: 220px;
        padding: 0 18px 18px;
    }
}

@media (max-width: 575px) {
    .home-promo-modal .modal-dialog {
        max-width: calc(100% - 12px);
        width: calc(100% - 12px);
        margin: 12px auto;
    }

    .home-promo-copy {
        padding: 20px 16px 14px;
        gap: 12px;
    }

    .home-promo-title {
        font-size: 22px;
        line-height: 28px;
    }

    .home-promo-visual {
        height: 170px;
        min-height: 170px;
        padding: 0 14px 14px;
    }

    .home-promo-formwrap .s-connect-btn {
        width: 100%;
        padding: 8px 20px;
    }
}