
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f4f4;
}

.popin-open-btn {
    display: block;
    margin: 100px auto;
    padding: 16px 32px;
    font-size: 1.2rem;
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
}
.popin-open-btn:hover {
    background: #005fa3;
}

.popin-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1020;
}
.popin-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


.popin-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: transparent;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-radius: 25px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1021;
    min-width: 350px;
    max-width: 90vw;
    min-height: 350px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popin-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.popin-content {
    position: relative;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    width: 420px;
    max-width: 100vw;
    min-height: 420px;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.popin-main-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}


.popin-inner-text {
    padding: 32px 24px 24px 24px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    text-align: left;
}
.popin-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2.5rem;
    color: #0a2a66;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: left;
}
.popin-desc {
    margin: 0 0 24px 0;
    color: #444;
    font-size: 1rem;
    text-align: left;
}

.popin-cta {
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #F29400;
    color: #fff;
    border: none;
    border-radius: 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}
.popin-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    z-index: 0;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
    border-radius: 0.5rem 0;
}
.popin-cta:hover {
    color: #F29400;
}
.popin-cta:hover::before {
    width: 100%;
}
.popin-cta {
    /* Ensure text is above the animated bg */
}
.popin-cta {
    /* For smooth color transition */
}
.popin-cta span {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.popin-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    z-index: 2;
}
.popin-close-btn:hover {
    background: #f0f0f0;
}
