/* ============================================================
   SMS PERSONNEL — essential-guide-onboarding-page.css
   All styles for page-essential-guide-onboarding.php (obp- prefix).

   Enqueue from functions.php:
   if ( is_page( 'essential-guide-onboarding' ) ) {
       wp_enqueue_style( 'smsp-obp', $uri.'/assets/essential-guide-onboarding-page.css', ['smsp-main'], $v );
   }

   Depends on main.css for: --green, --green-d, --black, --mid,
   --border, --font, --r4, --r8, --r12, --shadow-h,
   .btn, .btn-green, .logos-strip, .testi-section, .tcard, .tc-*
============================================================ */

/* ── PAGE WRAPPER ────────────────────────────────────────────*/
.obp-wrap {
    background: #fff;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   1. HERO
   Left col: pure black, text + badges
   Right col: pure black, floating white form card
══════════════════════════════════════════════════════════════ */
.obp-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: #000;
}

/* Left column */
.obp-hero-left {
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}
.obp-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #4CAF50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.obp-hero h1 {
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.obp-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 420px;
}
.obp-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.obp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(76,175,80,.15);
    border: 1px solid rgba(76,175,80,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4CAF50;
}
.obp-badge i { font-size: 11px; }

/* Right column */
.obp-hero-right {
    background: #000;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Form card — white card floating on black col ── */
.obp-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 1em;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.obp-form-card h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 4px;
}
.obp-form-card > p {
    font-size: 13px;
    color: #555555;
    margin-bottom: 20px;
}
.obp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.obp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.obp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.obp-field input,
.obp-field select {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111111;
    background: #fff;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.obp-field input::placeholder { color: #aaa; }
.obp-field input:hover,
.obp-field select:hover   { border-color: #b5c9b5; }
.obp-field input:focus,
.obp-field select:focus   { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,.12); }

/* Consent checkbox row */
.obp-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555555;
    line-height: 1.5;
    cursor: pointer;
}
.obp-consent input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #4CAF50;
    flex-shrink: 0;
    margin-top: 1px;
}
.obp-consent a { color: #4CAF50; text-decoration: none; }
.obp-consent a:hover { text-decoration: underline; }

/* Submit button */
.obp-submit {
    width: 100%;
    height: 46px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.obp-submit:hover { background: #388E3C; transform: translateY(-1px); }

/* Form success */
.obp-form-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 20px;
}
.obp-form-success i { font-size: 22px; color: #4CAF50; flex-shrink: 0; margin-top: 1px; }
.obp-form-success p { font-size: 14.5px; color: #2e7d32; font-weight: 500; margin: 0; }

/* Form errors */
.obp-form-errors {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.obp-form-errors p { font-size: 13px; color: #c62828; margin: 4px 0; }
.obp-form-errors p:first-child { margin-top: 0; }
.obp-form-errors p:last-child  { margin-bottom: 0; }
.obp-form-errors i { margin-right: 5px; }

/* ══════════════════════════════════════════════════════════════
   2. PROBLEM SECTION
   White bg | image placeholder left | text right
══════════════════════════════════════════════════════════════ */
.obp-problem {
    padding: 64px 60px;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.obp-problem-img {
    background-color: transparent;
    min-height: 380px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.obp-problem-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,.03) 0px, rgba(0,0,0,.03) 1px,
        transparent 1px, transparent 24px
    );
}
.obp-problem-text h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #111111;
    margin-bottom: 16px;
    line-height: 1.2;
}
.obp-problem-text p {
    font-size: 14.5px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 14px;
}
.obp-problem-text p:last-child { margin-bottom: 0; }
.obp-problem-text strong { color: #111111; }

/* ══════════════════════════════════════════════════════════════
   3. WHAT'S INSIDE — 8 feature cards, 4-col grid
══════════════════════════════════════════════════════════════ */
.obp-inside {
    padding: 64px 60px;
    background: #f7f9f7;
}
.obp-inside-inner { max-width: 1200px; margin: 0 auto; }
.obp-inside-head  { text-align: center; margin-bottom: 40px; }
.obp-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4CAF50;
    margin-bottom: 10px;
    display: block;
}
.obp-inside-head h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #111111;
    margin-bottom: 0;
}
.obp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.obp-feature {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all .2s;
}
.obp-feature::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #4CAF50;
    transform: scaleX(0);
    transition: transform .35s;
}
.obp-feature:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); border-color: transparent; transform: translateY(-3px); }
.obp-feature:hover::after { transform: scaleX(1); }
.obp-feature-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(76,175,80,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 17px;
    margin-bottom: 12px;
    transition: all .2s;
}
.obp-feature:hover .obp-feature-ico { background: #4CAF50; color: #fff; }
.obp-feature h3 { font-size: 14px; font-weight: 700; color: #111111; margin-bottom: 6px; line-height: 1.3; }
.obp-feature p  { font-size: 13px; color: #555555; line-height: 1.6; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   4. GUIDE PREVIEW
   White bg | image placeholder left | text + CTA right
══════════════════════════════════════════════════════════════ */
.obp-preview { padding: 64px 60px; background: #fff; }
.obp-preview-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.obp-preview-img {
    background: #d0d0d0;
    min-height: 340px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    background-size: cover;
    background-position: center;
}
.obp-preview-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,.03) 0px, rgba(0,0,0,.03) 1px,
        transparent 1px, transparent 24px
    );
}
.obp-preview-img i {
    font-size: 48px;
    color: rgba(0,0,0,.15);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}
.obp-preview-text h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    color: #111111;
    margin-bottom: 14px;
    line-height: 1.2;
}
.obp-preview-text p {
    font-size: 14.5px;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════════
   5. WHO IT'S FOR — 4 persona cards
══════════════════════════════════════════════════════════════ */
.obp-who { padding: 64px 60px; background: #f7f9f7; }
.obp-who-inner { max-width: 1200px; margin: 0 auto; }
.obp-who-head  { text-align: center; margin-bottom: 40px; }
.obp-who-head h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
}
.obp-who-head p { font-size: 15px; color: #555555; max-width: 580px; margin: 0 auto; line-height: 1.7; }
.obp-who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.obp-persona {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    transition: all .2s;
}
.obp-persona:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); transform: translateY(-3px); }
.obp-persona-ico {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(76,175,80,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 20px;
    margin: 0 auto 14px;
    transition: all .2s;
}
.obp-persona:hover .obp-persona-ico { background: #4CAF50; color: #fff; }
.obp-persona h3 { font-size: 15px; font-weight: 700; color: #111111; margin-bottom: 6px; }
.obp-persona p  { font-size: 13px; color: #555555; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   6. ABOUT SMS PERSONNEL — cert badges + 4 stat boxes
══════════════════════════════════════════════════════════════ */
.obp-about { padding: 64px 60px; background: #fff; }
.obp-about-inner  { max-width: 1200px; margin: 0 auto; }
.obp-about-head   { text-align: center; margin-bottom: 40px; }
.obp-about-head h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: #111111;
    margin-bottom: 14px;
}
.obp-about-head p { font-size: 15px; color: #555555; max-width: 720px; margin: 0 auto; line-height: 1.75; }
.obp-certs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.obp-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7f9f7;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #111111;
}
.obp-cert-badge i { color: #4CAF50; }
/* About — image placeholder cards (match theme .ip-hl-img highlight cards) */
.obp-hl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 36px;
}
.obp-hl {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: box-shadow .2s, transform .2s;
}
.obp-hl:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); transform: translateY(-2px); }
.obp-hl-img {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.obp-hl-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,.03) 0px, rgba(0,0,0,.03) 1px,
        transparent 1px, transparent 20px
    );
}
.obp-hl-img i { font-size: 28px; color: rgba(0,0,0,.18); position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════
   9. FINAL CTA BANNER
   Whole-banner: gray image bg + diagonal texture + dark overlay
   Text left-aligned inside rounded card
══════════════════════════════════════════════════════════════ */
.obp-cta-wrap {
    padding: 29px 60px;
    background: #fff;
}
.obp-cta {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 280px;
    background-color: transparent;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.obp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,.04) 0px, rgba(0,0,0,.04) 1px,
        transparent 1px, transparent 28px
    );
    pointer-events: none;
}
.obp-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,10,10,.92) 30%,
        rgba(10,10,10,.65) 65%,
        rgba(10,10,10,.2)  100%
    );
}
.obp-cta-content {
    position: relative;
    z-index: 2;
    padding: 56px 72px;
    max-width: 680px;
    text-align: left;
}
.obp-cta-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}
.obp-cta-content p {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin-bottom: 28px;
    max-width: 480px;
}
.obp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4CAF50;
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 3px 12px rgba(76,175,80,.35);
}
.obp-cta-btn:hover { background: #388E3C; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,80,.45); }

/* ── TABLET ≤ 1024px ─────────────────────────────────────────*/
@media (max-width: 1024px) {
    .obp-hero             { grid-template-columns: 1fr; }
    .obp-hero-left        { padding: 40px 28px; }
    .obp-hero-right       { padding: 36px 28px; background: #000; }
    .obp-problem          { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
    .obp-preview-inner    { grid-template-columns: 1fr; gap: 32px; }
    .obp-inside           { padding: 40px 28px; }
    .obp-who              { padding: 40px 28px; }
    .obp-about            { padding: 40px 28px; }
    .obp-preview          { padding: 40px 28px; }
    .obp-cta-wrap         { padding: 22px 28px; }
    .obp-cta-content      { padding: 36px 36px; }
    .obp-features-grid    { grid-template-columns: repeat(2, 1fr); }
    .obp-who-grid         { grid-template-columns: repeat(2, 1fr); }
    .obp-hl-grid          { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE ≤ 768px ──────────────────────────────────────────*/
@media (max-width: 768px) {
    .obp-hero             { grid-template-columns: 1fr; }
    .obp-hero-left        { padding: 28px 16px; }
    .obp-hero-right       { padding: 24px 16px; background: #000; }
    .obp-hero h1          { font-size: clamp(22px, 7vw, 28px); }
    .obp-form-row         { grid-template-columns: 1fr; }
    .obp-problem          { grid-template-columns: 1fr; padding: 28px 16px; gap: 24px; }
    .obp-problem-img      { min-height: 240px; }
    .obp-preview-inner    { grid-template-columns: 1fr; gap: 24px; }
    .obp-preview-img      { min-height: 240px; }
    .obp-inside           { padding: 28px 16px; }
    .obp-who              { padding: 28px 16px; }
    .obp-about            { padding: 28px 16px; }
    .obp-preview          { padding: 28px 16px; }
    .obp-cta-wrap         { padding: 18px 16px; }
    .obp-cta-content      { padding: 28px 20px; }
    .obp-features-grid    { grid-template-columns: 1fr; }
    .obp-who-grid         { grid-template-columns: 1fr; }
    .obp-hl-grid          { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── SMALL MOBILE ≤ 480px ────────────────────────────────────*/
@media (max-width: 480px) {
    .obp-hero-left        { padding: 24px 14px; }
    .obp-hero-right       { padding: 20px 14px; }
    .obp-form-card        { padding: 1em; }
    .obp-hl-grid          { grid-template-columns: 1fr; }
    .obp-cta-content      { padding: 24px 16px; }
}
