/* ── Shakumbhri Herbals CRM — Frontend Public Styles ── */
:root {
    --sh-green:  var(--sh-brand, #2D5016);
    --sh-green2: #1a3a0a;
    --sh-gold:   var(--sh-accent, #B8860B);
    --sh-cream:  #FDF8F0;
    --sh-border: #D4C5A0;
    --sh-radius: 10px;
    --sh-shadow: 0 4px 24px rgba(45,80,22,.13);
}

/* ── Form Wrapper ── */
.sh-crm-form-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Hero Banner ── */
.sh-form-hero {
    background: linear-gradient(135deg, #1a3a0a 0%, var(--sh-green) 100%);
    border-radius: var(--sh-radius) var(--sh-radius) 0 0;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}
.sh-form-hero::after {
    content: '🌿';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 72px;
    opacity: .12;
    pointer-events: none;
}
.sh-form-hero h2 {
    color: #FFD700;
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 600;
}
.sh-form-hero p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    margin: 0;
    max-width: 500px;
}
.sh-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.sh-hero-badge {
    background: rgba(255,215,0,.15);
    border: 1px solid rgba(255,215,0,.35);
    color: #FFD700;
    font-size: 10px;
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: .4px;
}

/* ── Stats Strip ── */
.sh-form-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    background: var(--sh-green2);
    text-align: center;
}
.sh-form-stat {
    padding: 12px 8px;
    border-right: 1px solid rgba(255,255,255,.08);
}
.sh-form-stat:last-child { border-right: none; }
.sh-form-stat .num { display: block; font-size: 20px; font-weight: 700; color: #FFD700; }
.sh-form-stat .lbl { display: block; font-size: 10px; color: rgba(255,255,255,.55); margin-top: 2px; letter-spacing: .5px; text-transform: uppercase; }

/* ── Form Body ── */
.sh-form-body {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-top: none;
    border-radius: 0 0 var(--sh-radius) var(--sh-radius);
    padding: 28px 32px;
}

/* ── Two-col layout ── */
.sh-form-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Form fields ── */
.sh-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.sh-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sh-field.full { grid-column: 1 / -1; }
.sh-field label {
    font-size: 12px;
    font-weight: 600;
    color: #2D5016;
    letter-spacing: .2px;
}
.sh-field label .req { color: #c0392b; }
.sh-input-f, .sh-select-f, .sh-textarea-f {
    border: 1.5px solid #d0c8b0;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 13px;
    color: #222;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.sh-input-f:focus, .sh-select-f:focus, .sh-textarea-f:focus {
    outline: none;
    border-color: #2D5016;
    box-shadow: 0 0 0 3px rgba(45,80,22,.1);
}
.sh-textarea-f { resize: vertical; min-height: 80px; }

/* ── Product checkboxes ── */
.sh-products-label {
    font-size: 12px;
    font-weight: 600;
    color: #2D5016;
    margin-bottom: 8px;
    display: block;
}
.sh-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 7px;
    margin-bottom: 16px;
}
.sh-checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    padding: 5px 8px;
    border: 1px solid #e0d8c8;
    border-radius: 5px;
    transition: .15s;
}
.sh-checkbox-item:hover { border-color: #2D5016; background: #f5f9f0; }
.sh-checkbox-item input { accent-color: #2D5016; }
.sh-checkbox-item.checked { border-color: #2D5016; background: #edf5e4; color: #2D5016; font-weight: 500; }

/* ── Submit ── */
.sh-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2D5016, #4a7a28);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
    letter-spacing: .3px;
    position: relative;
}
.sh-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,80,22,.3); }
.sh-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.sh-submit-btn .sh-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sh-spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
.sh-submit-btn.loading .sh-spinner { display: inline-block; }
@keyframes sh-spin { to { transform: rotate(360deg); } }

/* ── Trust row ── */
.sh-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    justify-content: center;
}
.sh-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

/* ── Success message ── */
.sh-success-msg {
    display: none;
    background: #e8f5e0;
    border: 1.5px solid #a8d080;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    text-align: center;
}
.sh-success-msg .sh-success-icon { font-size: 36px; margin-bottom: 8px; }
.sh-success-msg h3 { color: #2D5016; font-size: 18px; margin: 0 0 6px; }
.sh-success-msg p  { color: #555; font-size: 13px; margin: 0; }

/* ── Error msg ── */
.sh-error-msg {
    display: none;
    background: #fde8e8;
    border: 1px solid #f0a0a0;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 14px;
}

/* ── Why Us column ── */
.sh-why-list { display: flex; flex-direction: column; gap: 10px; }
.sh-why-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f8f4ed;
    border-radius: 8px;
    padding: 12px 14px;
}
.sh-why-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.sh-why-text h4 { font-size: 13px; font-weight: 600; color: #2D5016; margin: 0 0 3px; }
.sh-why-text p  { font-size: 11px; color: #666; margin: 0; line-height: 1.5; }

/* ── Contact card ── */
.sh-contact-card {
    background: #fffbf0;
    border: 1.5px solid #D4A843;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
}
.sh-contact-card p { font-size: 12px; color: #555; margin: 4px 0; }
.sh-contact-card strong { color: #222; }
.sh-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    margin-top: 8px;
    transition: .2s;
}
.sh-wa-link:hover { background: #1da851; }

/* ── Why Us shortcode ── */
.sh-why-us { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.sh-why-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}
.sh-why-card {
    background: #f5f9f0;
    border: 1.5px solid #d0e0c0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: .2s;
}
.sh-why-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,80,22,.12); border-color: #2D5016; }
.sh-why-card .sh-why-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.sh-why-card h3 { font-size: 14px; font-weight: 600; color: #2D5016; margin: 0 0 6px; }
.sh-why-card p  { font-size: 12px; color: #666; margin: 0; line-height: 1.5; }

/* ── Product grid shortcode ── */
.sh-product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sh-product-card {
    background: #fff;
    border: 1.5px solid #d0e0c0;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    transition: .2s;
}
.sh-product-card:hover { border-color: #2D5016; box-shadow: 0 6px 18px rgba(45,80,22,.1); }
.sh-product-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.sh-product-card h4 { font-size: 13px; font-weight: 600; color: #2D5016; margin: 0 0 5px; }
.sh-product-card p  { font-size: 11px; color: #777; margin: 0; line-height: 1.4; }

/* ── Popup button ── */
.sh-popup-btn {
    background: linear-gradient(135deg, #2D5016, #4a7a28);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: .2s;
}
.sh-popup-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45,80,22,.3); }

/* ── Popup modal ── */
.sh-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sh-popup-overlay.open { display: flex; }
.sh-popup-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.sh-popup-header {
    background: linear-gradient(135deg, #1a3a0a, #2D5016);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}
.sh-popup-header h3 { color: #FFD700; margin: 0; font-size: 16px; font-family: inherit; }
.sh-popup-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.sh-popup-close:hover { color: #fff; }
.sh-popup-body { padding: 24px; }

/* ── Exit popup ── */
.sh-exit-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999998;
    align-items: center;
    justify-content: center;
}
.sh-exit-popup-overlay.open { display: flex; }
.sh-exit-popup {
    background: linear-gradient(135deg, #1a3a0a, #2D5016);
    color: #fff;
    border-radius: 14px;
    max-width: 460px;
    width: 90%;
    padding: 32px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
    position: relative;
}
.sh-exit-popup h2 { color: #FFD700; font-size: 22px; margin: 0 0 8px; font-family: -apple-system, sans-serif; }
.sh-exit-popup p  { color: rgba(255,255,255,.8); font-size: 14px; margin: 0 0 20px; line-height: 1.6; }
.sh-exit-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 24px;
    cursor: pointer;
}
.sh-exit-offer {
    background: rgba(255,215,0,.15);
    border: 1px solid rgba(255,215,0,.4);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #FFD700;
    line-height: 1.7;
}
.sh-exit-cta {
    background: #B8860B;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-family: inherit;
    transition: .2s;
}
.sh-exit-cta:hover { background: #9a700a; }
.sh-exit-skip { color: rgba(255,255,255,.4); font-size: 11px; cursor: pointer; background: none; border: none; text-decoration: underline; }

/* ── Compact form ── */
.sh-form-compact .sh-field-grid { grid-template-columns: 1fr 1fr; }
.sh-form-compact .sh-checkbox-grid { grid-template-columns: repeat(2,1fr); }
.sh-form-compact .sh-form-cols { grid-template-columns: 1fr; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sh-form-cols { grid-template-columns: 1fr; }
    .sh-form-stats { grid-template-columns: repeat(2,1fr); }
    .sh-field-grid { grid-template-columns: 1fr; }
    .sh-checkbox-grid { grid-template-columns: repeat(2,1fr); }
    .sh-why-grid { grid-template-columns: 1fr 1fr; }
    .sh-product-grid { grid-template-columns: 1fr 1fr; }
    .sh-form-hero { padding: 20px; }
    .sh-form-body { padding: 20px; }
}
@media (max-width: 480px) {
    .sh-why-grid { grid-template-columns: 1fr; }
    .sh-product-grid { grid-template-columns: 1fr 1fr; }
    .sh-checkbox-grid { grid-template-columns: 1fr 1fr; }
}
