@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --hp-primary: #3b82f6;
    --hp-primary-dark: #1e3a8a;
    --hp-accent: #f59e0b;
    --hp-bg-glass: rgba(255, 255, 255, 0.85);
    --hp-text-dark: #0f172a;
    --hp-text-light: #64748b;
    --hp-white: #ffffff;
    --hp-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hp-popup-card {
    background: var(--hp-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: var(--hp-shadow);
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    padding: 40px;
    text-align: center;
}

.hp-overlay.active .hp-popup-card {
    transform: translateY(0) scale(1);
}

.hp-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--hp-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.hp-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.hp-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.hp-main-icon {
    font-size: 40px;
    z-index: 2;
    position: relative;
    display: block;
    line-height: 80px;
}

.hp-icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hp-primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: hp-pulse 2s infinite;
}

@keyframes hp-pulse {
    0% { transform: scale(1); opacity: 0.4; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.hp-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hp-text-dark);
    margin: 0 0 20px;
    line-height: 1.2;
}

.hp-title span {
    color: var(--hp-primary);
}

.hp-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--hp-text-light);
    margin-bottom: 24px;
}

.hp-greeting {
    font-weight: 600;
    color: var(--hp-text-dark);
    margin-bottom: 12px;
}

.hp-highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.hp-highlight-box p {
    margin: 0;
    color: var(--hp-primary-dark);
    font-weight: 500;
}

.hp-thanks {
    font-style: italic;
}

.hp-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    margin-top: 10px;
}

.hp-footer-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669; /* Green for informative confirmation */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .hp-popup-card {
        padding: 30px 20px;
    }
    .hp-title {
        font-size: 22px;
    }
    .hp-body {
        font-size: 14px;
    }
}
