/* Popup overlay */
.thank-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .58);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Mobile only */
@media (max-width: 767.98px) {
    .thank-popup-overlay.show {
        display: flex;
    }
}

/* Popup main box */
.thank-popup {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 21px;
    position: relative;
    padding: 12px 15px 17px;
    max-height: 94vh;
}

/* Close button */
.thank-popup-close {
    position: absolute;
    right: 15px;
    top: 17px;
    width: 24px;
    height: 24px;
    border: 1px solid #222;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-size: 18px;
    line-height: 18px;
    padding: 0;
    z-index: 10;
}

/* Logo */
.thank-popup-logo {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    color: #292267;
    line-height: 32px;
    margin-bottom: 8px;
}

.thank-popup-logo span {
    color: #ed443b;
}

/* Header banner */
.thank-popup-heading {
    background: #251e61;
    color: #fff;
    text-align: center;
    padding: 13px 5px;
    border-radius: 7px;
    margin-bottom: 16px;
}

.thank-popup-heading h2 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.thank-popup-heading h2 span {
    font-weight: 500;
}

.thank-popup-heading p {
    font-size: 10px;
    margin: 0;
}

/* Booking service title */
.thank-popup-service {
    text-align: center;
    padding-bottom: 10px;
}

.thank-popup-service h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .7px;
    color: #333;
    margin: 0 0 5px;
}

.thank-popup-service p {
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    color: #333;
}

/* Family image */
.thank-popup-image {
    width: calc(100% + 30px);
    height: 250px !important;
    margin-left: -15px;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Feature boxes */
.thank-popup-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 9px 0 14px;
}

.thank-popup-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #ededed;
    border-radius: 6px;
    padding: 7px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #222;
    line-height: 1.2;
    min-height: 39px;
}

.thank-popup-feature i {
    background: #292166;
    color: #fff;
    width: 21px;
    height: 21px;
    min-width: 21px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
}

/* Call button */
.thank-popup-call {
    background: #00265e;
    color: #fff;
    text-decoration: none;
    display: block;
    max-width: 245px;
    margin: 0 auto;
    text-align: center;
    border-radius: 7px;
    padding: 6px 8px;
}

.thank-popup-call small {
    display: block;
    font-size: 9px;
    line-height: 12px;
    color: #fff;
}

.thank-popup-call strong {
    font-size: 17px;
    letter-spacing: 1px;
    color: #fff;
}

.thank-popup-call i {
    background: #fff;
    color: #ed443b;
    border-radius: 50%;
    padding: 4px;
    font-size: 14px;
    margin-right: 4px;
}

/* Footer */
.thank-popup-footer {
    text-align: center;
    font-size: 7px;
    color: #444;
    margin-top: 10px;
    letter-spacing: .3px;
}

/* Small mobile */
@media (max-width: 380px) {
    .thank-popup {
        max-width: 340px;
    }

    .thank-popup-image {
        height: 175px;
    }

    .thank-popup-service h3 {
        font-size: 15px;
    }

    .thank-popup-call strong {
        font-size: 15px;
        color: #fff;
    }
}

@media (max-height: 650px) {
    .thank-popup-image {
        height: 130px;
    }
}