/* ===== BASE STYLES ===== */
.bh-popup-unique * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== MODAL OVERLAY ===== */
.bh-popup-unique-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.bh-popup-unique-overlay.bh-popup-active {
    display: flex;
    opacity: 1;
    display: block;
    justify-content: center;
    align-items: center;
}

/* ===== MAIN MODAL STYLES ===== */
.bh-popup-unique-container {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    align-self: center;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    animation: bhPopupFloat 6s ease-in-out infinite;
    left: 20%;
    position: absolute;
    top: 2%;
    z-index: 9999999999;
}

@keyframes bhPopupFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

.bh-popup-unique-overlay.bh-popup-active .bh-popup-unique-container {
    transform: translateY(0);
}

/* ===== MODAL HEADER ===== */
.bh-popup-header {
    padding: 20px;
    background: linear-gradient(135deg, #09009F 0%, #1000ff 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    color: white;
}

.bh-popup-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bh-popup-close-btn {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bh-popup-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* ===== MODAL BODY ===== */
.bh-popup-main-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.bh-popup-text-content {
    height: 100%;
    overflow-y: auto;
}

.bh-popup-text-content h2 {
    font-size: 16px;
    color: #09009F;
    margin: 20px 0 10px;
    font-weight: 600;
}

.bh-popup-text-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
}

.bh-popup-text-content ul,
.bh-popup-text-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.bh-popup-text-content li {
    margin-bottom: 8px;
    color: #495057;
}

/* ===== MODAL FOOTER ===== */
.bh-popup-footer {
    padding: 20px;
    background: #1104f61a;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.bh-popup-disclosure {
    margin-bottom: 15px;
}

.bh-popup-disclosure h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.bh-popup-disclosure p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* ===== BUTTONS ===== */
.bh-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.bh-popup-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
    transform: scale(1);
    min-width: 120px;
    text-align: center;
}

.bh-popup-btn:active {
    transform: scale(0.98);
}

.bh-popup-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 88, 228, 0.3);
}

.bh-popup-btn-accept {
    background: linear-gradient(to right, #09009F, #1000ff);
    color: white;
    box-shadow: 0 2px 10px rgba(20, 88, 228, 0.3);
}

.bh-popup-btn-accept:hover {
    background: linear-gradient(to right, #09019F, #1010ff);
    box-shadow: 0 4px 15px rgba(20, 88, 228, 0.4);
    transform: translateY(-2px);
}

.bh-popup-btn-decline {
    background: white;
    color: #1458E4;
    border: 1px solid #dee2e6;
}

.bh-popup-btn-decline:hover {
    background: #f1f6ff;
    border-color: #1458E4;
}

/* Ripple Effect */
.bh-popup-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.bh-popup-btn:focus:not(:active)::after {
    animation: bhPopupRipple 0.6s ease-out;
}

@keyframes bhPopupRipple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* ===== PAGE 2 STYLES ===== */
.bh-popup-contact-page {
    display: none;
}

.bh-popup-contact-title {
    font-size: 20px;
    text-align: center;
    margin: 20px 0 10px;
    color: #1458E4;
    font-weight: 600;
}

.bh-popup-contact-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.bh-popup-contact-content {
    overflow-y: auto;
    padding-right: 10px;
}

.bh-popup-contact-row {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}

.bh-popup-contact-row:last-child {
    border-bottom: none;
}

.bh-popup-contact-label {
    width: 40%;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.bh-popup-contact-value {
    width: 60%;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

.bh-popup-contact-value p {
    margin: 0 0 8px 0;
}

.bh-popup-back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 4px;
}

.bh-popup-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bh-popup-back-btn svg {
    width: 14px;
    height: 14px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .bh-popup-buttons {
        flex-direction: column;
    }

    .bh-popup-btn {
        width: 100%;
    }

    .bh-popup-contact-row {
        flex-direction: column;
    }

    .bh-popup-contact-label,
    .bh-popup-contact-value {
        width: 100%;
    }

    .bh-popup-contact-label {
        margin-bottom: 8px;
    }

    .bh-popup-header {
        padding: 15px;
    }

    .bh-popup-main-content {
        padding: 20px;
    }

    .bh-popup-unique-container {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .bh-popup-unique-container {
        width: 95%;
        border-radius: 10px;
    }

    .bh-popup-logo-text {
        font-size: 16px;
    }

    .bh-popup-main-content {
        padding: 15px;
    }

    .bh-popup-footer {
        padding: 15px;
    }
}

/* ===== CHECKMARK ANIMATION ===== */
.bh-popup-checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    transform: scale(0);
    animation: bhPopupCheckmark 0.4s ease forwards;
}

@keyframes bhPopupCheckmark {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}
