/* scb-styles.css - styles for Interested in this Solution block and popup */

/* Container box below content */
.scb-contact-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.scb-contact-box {
    border: 1px solid #e0e0e0; /* light gray border */
    padding: 24px;
    /* max-width: 800px; */
    width: 100%;
    text-align: center; /* center align heading, text, button */
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

/* Headings and text */
.scb-contact-heading {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.scb-contact-text {
    margin: 0 0 18px;
    font-size: 1rem;
    color: #333;
}

/* Button */
.scb-open-popup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #4EAC44; /* WP blue */
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-transform: capitalize;
}
.scb-open-popup:focus {
    outline: 3px solid rgba(0,115,170,0.25);
    outline-offset: 2px;
}

/* Popup overall (hidden by default) */
.scb-popup {
    position: fixed;          /* fixed to the viewport, not parent */
    top: 0;
    left: 0;
    width: 100vw;             /* full viewport width */
    height: 100vh;            /* full viewport height */
    display: none;            /* hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 9999;
}

/* overlay */
.scb-popup-overlay {
   position: fixed;           /* cover entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

/* Panel */
.scb-popup-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 620px;
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Overlay visible when popup is active */
.scb-popup.active .scb-popup-overlay {
    opacity: 1;
}

/* === Popup Content Panel === */
.scb-popup-panel {
    position: fixed;           /* fixed to viewport center */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
    max-width: 600px;
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    padding: 30px;
    z-index: 2;                /* above the overlay */
}

/* Visible/animated state */
.scb-popup.active .scb-popup-panel {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* header */
.scb-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}
.scb-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

/* close button */
.scb-popup-close {
    background: transparent;
    border: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

/* body */
.scb-popup-body {
    padding: 18px 20px;
    font-size: 1rem;
    color: #333;
}

/* footer */
.scb-popup-footer {
    padding: 12px 20px 20px;
    display: flex;
    justify-content: flex-end;
}

/* secondary close button */
.scb-btn-secondary {
    background: #f4f4f4;
    color: #111;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
}
/* scb phone & email */
.scb-phone, .scb-email{
    color:#4EAC44;
}
.scb-phone:hover, .scb-email:hover{
    text-decoration:underline;
}
/* When popup is open - we'll add a class "scb-open" on the body via JS */
body.scb-open {
    overflow: hidden; /* prevent background scroll */
}
/* scb-styles.css */
.scb-popup {
  display: none; /* crucial line to hide popup on page load */
  position: fixed;
  inset: 0;
  z-index: 9999;
}



/* Popup base - hidden state */
.scb-popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/* When popup is visible (JS sets display:block), we’ll also add an “active” class */
.scb-popup.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Overlay fade
.scb-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
} */

/* When active */
.scb-popup.active .scb-popup-overlay {
    opacity: 1;
}

/* Popup panel slide + fade */
.scb-popup-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -45%);
    max-width: 620px;
    width: calc(100% - 40px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

/* Active state - slide up slightly & fade in */
.scb-popup.active .scb-popup-panel {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* === Share this Solution Section === */
.scb-share-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    background: #fafafa;
}

.scb-share-heading {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

.scb-share-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.scb-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover Effects */
.scb-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Specific brand colors */
.scb-share-icon.twitter:hover { color: #000; } /* X black */
.scb-share-icon.facebook:hover { color: #1877f2; }
.scb-share-icon.linkedin:hover { color: #0077b5; }
