/* ObozGlobal Contact Popup v2.0 */

/* ── Overlay ────────────────────────────────────────────────────────────── */
#oboz-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 18, 35, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    /* animation applied when shown */
}

#oboz-popup-overlay.oboz-visible {
    display: flex;
    animation: obozFadeIn 0.22s ease forwards;
}

@keyframes obozFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Box ─────────────────────────────────────────────────────────────────── */
#oboz-popup-box {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(10, 18, 35, 0.28), 0 4px 16px rgba(10, 18, 35, 0.1);
    width: 100%;
    max-width: 580px;
    padding: 36px 32px 32px;
    position: relative;
    box-sizing: border-box;
    animation: obozSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes obozSlideUp {
    from { transform: translateY(28px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── Close button ────────────────────────────────────────────────────────── */
#oboz-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f3f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    padding: 0;
}
#oboz-popup-close:hover {
    background: #e2e6ed;
    color: #111;
    transform: rotate(90deg);
}
#oboz-popup-close:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#oboz-popup-header {
    text-align: center;
    margin-bottom: 28px;
}

.oboz-popup-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0b4eab 0%, #1a73e8 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

#oboz-popup-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 8px;
    line-height: 1.25;
}

#oboz-popup-header p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6b7a99;
    margin: 0;
    line-height: 1.5;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
#oboz-popup-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.oboz-card {
    border: 1.5px solid #e8ecf4;
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.oboz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 18, 35, 0.1);
}

.oboz-card-call { border-color: #d0e4ff; background: #f6f9ff; }
.oboz-card-call:hover { border-color: #1a73e8; }

.oboz-card-wa   { border-color: #c7f0d8; background: #f3fdf6; }
.oboz-card-wa:hover   { border-color: #25d366; }

/* card icon */
.oboz-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.oboz-card-call .oboz-card-icon { background: #dbeafe; color: #1a73e8; }
.oboz-card-wa   .oboz-card-icon { background: #dcfce7; color: #25d366; }

.oboz-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 6px;
}

.oboz-card p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12.5px;
    color: #6b7a99;
    margin: 0 0 16px;
    line-height: 1.5;
    flex-grow: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.oboz-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    white-space: nowrap;
    border: none;
}

.oboz-btn-call {
    background: linear-gradient(135deg, #0b4eab, #1a73e8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}
.oboz-btn-call:hover {
    background: linear-gradient(135deg, #0940a0, #1565d8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.45);
    color: #fff;
    text-decoration: none;
}

.oboz-btn-wa {
    background: linear-gradient(135deg, #1da851, #25d366);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.oboz-btn-wa:hover {
    background: linear-gradient(135deg, #179a49, #22c55e);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #fff;
    text-decoration: none;
}

.oboz-btn:focus-visible {
    outline: 3px solid #0b4eab;
    outline-offset: 2px;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    #oboz-popup-box {
        padding: 28px 18px 22px;
        border-radius: 14px;
    }
    #oboz-popup-cards {
        grid-template-columns: 1fr;
    }
    #oboz-popup-header h2 {
        font-size: 19px;
    }
}

/* ── Prevent background scroll when open ────────────────────────────────── */
body.oboz-noscroll {
    overflow: hidden !important;
}
