/**
 * GENZ Onboarding Styles
 * -----------------------
 * Purpose: Styles for the multi‑step onboarding popup (Gravity Forms + Popup Maker).
 * Scope: Location + Headline steps, progress bar, modal layout, mobile full‑screen.
 */

/* ==========================================================================
   Onboarding Popup — Desktop + Mobile Layout
   ========================================================================== */

/* ------------------------------
   DESKTOP (default)
   ------------------------------ */
/* IMPORTANT: Correct selector — target the actual modal container */
.pum-container.pum-theme-104862 {
    width: 600px !important;
    max-width: 90% !important;
    margin: auto !important;
    border-radius: 12px !important;
    padding: 2rem !important;

    /* Height behavior */
    height: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;

    /* Premium feel */
    background: #fff !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ==========================================================================
   FORCE FULLSCREEN OPAQUE OVERLAY (CORRECT SELECTOR FOR YOUR INSTALL)
   ========================================================================== */
.pum-overlay.popmake-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;

    background: rgba(255,255,255,1) !important; /* solid white */
    z-index: 999999999 !important;

    /* Center the modal content */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;
}




/* ------------------------------
   MOBILE (fullscreen)
   ------------------------------ */
@media (max-width: 768px) {
    .pum-container.pum-theme-104862 {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 1.75rem !important;
        overflow-y: auto !important;
    }

    /* Solid white overlay on mobile */
    .pum-overlay.pum-theme-104862 {
        background: #fff !important;
    }
}

/* Remove close button */
.pum-close {
    display: none !important;
}


/* ==========================================================================
   Welcome Message & Gravity Forms Spacing
   ========================================================================== */

/* 1. Tighten spacing between GF HTML fields */
.pum .gfield_html {
    margin: 0 0 8px 0 !important;
}

/* 2. Tighten spacing between h3 and helper text */
.pum .gfield_html h3 {
    margin: 0 0 4px 0 !important;
}

/* 3. Tighten spacing between helper text and field label */
.pum .gfield_html p {
    margin: 0 0 6px 0 !important;
}

/* 4. Remove stray duplicate helper text outside GF wrapper */
.pum .gform_wrapper > p {
    margin: 0 0 6px 0 !important;
}

/* 5. Tighten spacing above field labels */
.pum .gfield_label {
    margin-top: 4px !important;
}

/* 6. Style the welcome message so it stands out */
.pum .onboarding-welcome {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0 !important;
    text-align: center;
}


/* ==========================================================================
   Progress Bar Styling
   ========================================================================== */
.gform_progress_bar {
  background-color: #e6e6e6;
  border-radius: 4px;
  height: 8px;
  margin-bottom: 20px;
}

.gform_progress_bar_percentage {
  background-color: #0073b1;
  height: 8px;
  border-radius: 4px;
}

/* ==========================================================================
   BUTTON HIERARCHY — PRIMARY vs SECONDARY
   ========================================================================== */

/* Primary buttons: Continue, Launch Profile */
.pum .gform_wrapper .gform_next_button,
.pum .gform_wrapper .gform_button {
    background: #0073b1 !important; /* LinkedIn blue */
    color: #fff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

/* Secondary button: Back */
.pum .gform_wrapper .gform_previous_button {
    background: transparent !important;
    color: #0073b1 !important;
    border: 1px solid #0073b1 !important;
    padding: 12px 22px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

/* Hover states */
.pum .gform_wrapper .gform_next_button:hover,
.pum .gform_wrapper .gform_button:hover {
    background: #005f8f !important;
}

.pum .gform_wrapper .gform_previous_button:hover {
    background: rgba(0,115,177,0.08) !important;
}