/* ============================================================
   Custom Blog Blocks v1.1.0 — Complete Styles
   ============================================================ */

/* ── 1. EXECUTIVE SUMMARY ────────────────────────────────── */
.cbb-executive-summary { background-color: #dce3f4; padding: 51px; }
.cbb-es__header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cbb-es__icon   { display: inline-flex; align-items: center; flex-shrink: 0; width: 24px; height: 24px; }
.cbb-es__title  { font-size: 18px; font-style: normal; font-weight: 700; line-height: 142%;}
.cbb-es__content, .cbb-es__content p { margin: 0 0 12px; font-size: 18px; font-style: normal; font-weight: 400; line-height: 160%; }
.cbb-es__content p:last-child { margin-bottom: 0; }

/* ── 2. DEFINITION BOX ───────────────────────────────────── */
.cbb-definition-box { position: relative; border: 1.5px solid #e040d0; padding: 40px 51px; margin: 28px 0; background: #fff; overflow: hidden; }
.cbb-db__corner  { position: absolute; top: 0; right: 0; width: 85px; height: 85px;}
.cbb-db__header  { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.cbb-db__icon    { font-size: 1.15rem; }
.cbb-db__title   { font-size: 18px; font-style: normal; font-weight: 700; line-height: 142%; margin: 0; }
.cbb-db__content,
.cbb-db__why     {  max-width: 716px; font-size: 18px; font-style: normal; font-weight: 400; line-height: 160%; }
.cbb-db__why:last-child { margin-bottom: 0; }

/* ── 3. CUSTOM LIST ──────────────────────────────────────── */
.cbb-custom-list-wrap { margin: 15px 0;}
.cbb-custom-list { list-style: none; padding: 0; margin: 0; }
.cbb-custom-list__item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.cbb-list__icon { display: inline-flex; justify-content: center; flex-shrink: 0; min-width: 20px; }
.cbb-list__icon svg { display: block; margin-top: 6px; }
.cbb-list-char  { font-size: 1.1rem; line-height: 1; color: #444; }
.cbb-custom-list__text { flex: 1; margin: 0; padding: 0; }
.cbb-custom-list__item h1,.cbb-custom-list__item h2,.cbb-custom-list__item h3,
.cbb-custom-list__item h4,.cbb-custom-list__item h5,.cbb-custom-list__item h6,
.cbb-custom-list__item p,.cbb-custom-list__item span { margin: 0; padding: 0; }
/* Editor only */
.cbb-custom-list__add { list-style: none; margin-top: 4px; }
.cbb-custom-list__item .rich-text,
.cbb-custom-list__item [contenteditable] { flex: 1; outline: none; min-width: 0; }

/* ── 4. CTA BUTTON ───────────────────────────────────────── */
.cbb-cta-wrap   { position: relative; display: inline-block; margin: 28px 0; }
.cbb-cta-shadow { position: absolute; inset: 0; border-radius: 6px; transform: translate(5px,5px); z-index: 0; }
.cbb-cta-btn    { position: relative; z-index: 1; display: inline-block; padding: 13px 26px; border-radius: 6px; font-size: 0.96rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.15s ease; }
.cbb-cta-btn:hover { transform: translate(-2px,-2px); }

/* ── 5. FAQ ACCORDION ────────────────────────────────────── */
.cbb-faq { margin: 36px 0; }
.cbb-faq__heading { font-size: 2rem; font-weight: 800; margin-bottom: 24px; color: #111; }
.cbb-faq__item { border-bottom: 1px solid #ddd; }
.cbb-faq__item:first-of-type { border-top: 1px solid #ddd; }
.cbb-faq__q-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; width: 100%; background: none; border: none; text-align: left; gap: 14px; }
.cbb-faq__question { font-size: 0.96rem; font-weight: 700; color: #111; flex: 1; }
.cbb-faq__icon  { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 5px; font-size: 1.2rem; color: #1a5c38; flex-shrink: 0; }
.cbb-faq__plus  { display: inline; }
.cbb-faq__minus { display: none; }
.cbb-faq__item.is-open .cbb-faq__plus  { display: none; }
.cbb-faq__item.is-open .cbb-faq__minus { display: inline; }
.cbb-faq__answer { display: none; padding: 0 0 18px; font-size: 0.95rem; line-height: 1.7; color: #333; }
.cbb-faq__answer p { margin: 0; }
/* Show answer open in editor */
.block-editor-block-list__block .cbb-faq__answer { display: block; }

/* ── 6. AUTHOR BIO ───────────────────────────────────────── */
.cbb-author-bio { display: flex; align-items: flex-start; gap: 33px; padding: 50px 50px 44px 50px; margin: 36px 0; }
.cbb-author-bio__avatar { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: #e8c76a; display: flex; align-items: center; justify-content: center; }
.cbb-author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbb-avatar-ph  { font-size: 1.6rem; color: #fff; }
.cbb-author-bio__content { flex: 1; }
.cbb-author-bio__byline  { margin: 0 0 8px; font-size: 16px; font-style: normal; font-weight: 400; line-height: 160%; }
.cbb-author-bio__bio     { margin: 0 0 12px; font-size: 16px; font-style: normal; font-weight: 400; line-height: 160%; max-width: 530px;}
.cbb-author-bio__link    { font-size: 14px; font-style: normal; font-weight: 400; line-height: 160%; /* 22.4px */ text-decoration-line: underline; text-decoration-style: solid; text-decoration-skip-ink: auto; text-decoration-thickness: auto; text-underline-offset: auto; text-underline-position: from-font;}

/* ── 7. PULL QUOTE ───────────────────────────────────────── */
.cbb-pull-quote { margin: 36px 0; padding: 26px 30px; border-radius: 8px; border: none; }
.cbb-pull-quote__text   { font-size: 1.1rem; font-style: italic; font-weight: 500; line-height: 1.6; margin: 0 0 18px; }
.cbb-pull-quote__footer { display: flex; align-items: center; gap: 12px; }
.cbb-pull-quote__avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #d4a5b0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cbb-pull-quote__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbb-pull-quote__meta   { display: flex; flex-direction: column; gap: 2px; }
.cbb-pull-quote__meta strong { font-size: 0.88rem; font-weight: 700; color: #111; }
.cbb-pull-quote__role   { font-size: 0.8rem; color: #666; }

/* ── 8. IMAGE CARD ───────────────────────────────────────── */
.cbb-image-card { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.1); background: #fff; max-width: 280px; margin: 24px 0; display: block; text-decoration: none; color: inherit; }
.cbb-image-card__img-area { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f5e6f0; position: relative; }
.cbb-image-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbb-image-card__placeholder { width: 100%; height: 100%; background: #f5e6f0; display: flex; align-items: center; justify-content: center; position: relative; }
.cbb-image-card__placeholder::before,
.cbb-image-card__placeholder::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - .5px), #e4b8d0 calc(50% - .5px), #e4b8d0 calc(50% + .5px), transparent calc(50% + .5px)), linear-gradient(to bottom left, transparent calc(50% - .5px), #e4b8d0 calc(50% - .5px), #e4b8d0 calc(50% + .5px), transparent calc(50% + .5px)); }
.cbb-image-card__placeholder span { position: relative; z-index: 1; font-size: 0.75rem; color: #999; }
.cbb-image-card__body  { padding: 12px 14px 16px; }
.cbb-image-card__title { display: block; font-size: 0.93rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.cbb-image-card__desc  { font-size: 0.83rem; line-height: 1.5; color: #444; margin: 0; }

/* ── 9. STAT CARD (both styles) ──────────────────────────── */
.cbb-stat-card {
    position: relative;
    border: 1.5px solid #c8d4f0;
    overflow: hidden;
    background: #f0f4ff;
    display: inline-flex;
    flex-direction: column;
    min-width: 180px;
    max-width: 280px;
    margin: 24px 0;
}
.cbb-stat-card__accent {
    position: absolute;
    top: 0; right: 0;
    width: 52px; height: 52px;
    flex-shrink: 0;
}

/* ── Style B: Stat number (centred value + label) ── */
.cbb-stat-card--stat .cbb-stat-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px 32px;
    text-align: center;
    gap: 6px;
}
.cbb-stat-card__value { }
.cbb-stat-card__label { }

/* ── Style A: Label card (title + description, left-aligned) ── */
.cbb-stat-card--label .cbb-stat-card__label-body {
    display: flex;
    flex-direction: column;
    padding: 60px 24px 28px;
    gap: 8px;
}
.cbb-stat-card__title { font-size: 18px; font-style: normal; font-weight: 700; line-height: 142%;margin: 0; }
.cbb-stat-card__desc  { font-size: 18px; font-style: normal; font-weight: 400; line-height: 160%; margin: 0; }

/* keep heading/p tags tidy inside both styles */
.cbb-stat-card h1,.cbb-stat-card h2,.cbb-stat-card h3,
.cbb-stat-card h4,.cbb-stat-card h5,.cbb-stat-card h6,
.cbb-stat-card p { margin: 0; padding: 0; }

/* ── Editor input styles ── */
.cbb-stat-card .cbb-stat-input-value input { font-size: 2rem !important; font-weight: 800 !important; color: #111 !important; text-align: center !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.cbb-stat-card .cbb-stat-input-label input { font-size: 0.95rem !important; color: #444 !important; text-align: center !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.cbb-stat-card .cbb-stat-input-title input { font-size: 1rem !important; font-weight: 700 !important; color: #111 !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.cbb-stat-card .cbb-stat-input-desc input  { font-size: 0.92rem !important; color: #444 !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.cbb-stat-card__value-wrap,.cbb-stat-card__label-wrap { width: 100%; }
.cbb-stat-card__value-wrap .components-base-control__field,
.cbb-stat-card__label-wrap .components-base-control__field { margin-bottom: 0 !important; }


/* ── Disable drag handle on all custom blocks ────────────── */
/* Hides the 6-dot drag gripper that appears on hover        */
[data-type^="cbb/"] .block-editor-block-mover,
[data-type^="cbb/"] .block-editor-block-mover__drag-handle,
[data-type^="cbb/"] .components-draggable__handler {
    display: none !important;
    pointer-events: none !important;
}

.cbb-primaryButton {
  background-color: var(--color-1-shade-6, #B0FFDE);
  color: #fff;
  border: none;
  display: inline-flex;
  padding: 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cbb-btnspan {
  display: flex;
  background-color: var(--color-1-shade-1, #005C36);
  padding: 16px 24px;
  align-items: center;
  gap: 8px;
  transform: translate3d(6px, -6px, 0);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.cbb-lightbtn {
  background-color: var(--color-1, #21D68B);
}

.cbb-primaryButton:hover .cbb-btnspan {
  transform: translate3d(10px, -10px, 0);
}

.cbb-tertiarybtn {
  border: none;
  color: var(--color-1-shade-1, #005C36);
  cursor: pointer;
  padding: 16px 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.cbb-tertiarybtn:hover {
  color: var(--color-1, #21D68B);
}

.cbb-tertiarybtn:hover svg path {
  fill: var(--color-1, #21D68B);
  transition: fill 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}
/* ── DIVIDER LINE ────────────────────────────────────────── */
.cbb-divider-wrap { margin: 20px 0; }
.cbb-divider-line { display: block; }

/* ── HUBSPOT FORM ────────────────────────────────────────── */
.cbb-hubspot-form { margin: 24px 0; }
.cbb-hubspot-form--empty {
    padding: 20px;
    background: #fff8f0;
    border: 1.5px dashed #ff7a59;
    border-radius: 8px;
    color: #c05c35;
    font-size: 0.9rem;
}

/* Editor preview card */
.cbb-hubspot-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff8f5;
    border: 1.5px solid #ffd7cc;
    border-radius: 8px;
    margin: 8px 0;
}
.cbb-hubspot-preview__icon { flex-shrink: 0; }
.cbb-hubspot-preview__info { display: flex; flex-direction: column; gap: 6px; }
.cbb-hubspot-preview__info strong { font-size: 0.97rem; color: #111; }
.cbb-hubspot-preview__ids { display: flex; flex-direction: column; gap: 3px; }
.cbb-hubspot-preview__ids code {
    font-size: 0.75rem;
    background: #ffe8e0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #c05c35;
    font-family: monospace;
}
.cbb-hubspot-preview__empty { font-size: 0.84rem; color: #c05c35; margin: 0; }

/* ── HUBSPOT FORM — Frontend Styles ─────────────────────────
   Matches the exact form design from the screenshot:
   white card, clean labels, outlined inputs, green submit btn
──────────────────────────────────────────────────────────── */

/* Wrapper card */
.cbb-hubspot-form .hs-form-iframe { display: none; }
.cbb-hubspot-form .hbspt-form,
.cbb-hubspot-form form.hs-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
}

/* Field groups */
.cbb-hubspot-form .hs-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

/* Labels */
.cbb-hubspot-form .hs-form-field > label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
    margin: 0;
}

/* Required asterisk */
.cbb-hubspot-form .hs-form-field > label .hs-form-required,
.cbb-hubspot-form .hs-form-field > label span[aria-label="required"] {
    color: #e53e3e;
    margin-left: 2px;
}

/* Text inputs & textarea */
.cbb-hubspot-form input[type="text"],
.cbb-hubspot-form input[type="email"],
.cbb-hubspot-form input[type="tel"],
.cbb-hubspot-form input[type="number"],
.cbb-hubspot-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.cbb-hubspot-form input[type="text"]::placeholder,
.cbb-hubspot-form input[type="email"]::placeholder,
.cbb-hubspot-form input[type="tel"]::placeholder,
.cbb-hubspot-form textarea::placeholder {
    color: #9ca3af;
}

.cbb-hubspot-form input[type="text"]:focus,
.cbb-hubspot-form input[type="email"]:focus,
.cbb-hubspot-form input[type="tel"]:focus,
.cbb-hubspot-form input[type="number"]:focus,
.cbb-hubspot-form textarea:focus {
    border-color: #005C36;
    box-shadow: 0 0 0 3px rgba(0, 92, 54, 0.08);
}

/* Select dropdown */
.cbb-hubspot-form select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 0.9rem;
    color: #9ca3af;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.cbb-hubspot-form select:focus {
    border-color: #005C36;
    box-shadow: 0 0 0 3px rgba(0, 92, 54, 0.08);
}

.cbb-hubspot-form select option:not([value=""]) {
    color: #333;
}

/* Actions row (submit + secondary link) */
.cbb-hubspot-form .hs-submit,
.cbb-hubspot-form .actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Submit button — matches PrimaryButton style */
.cbb-hubspot-form input[type="submit"],
.cbb-hubspot-form .hs-button {
    background-color: #005C36;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #a8d9c5;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cbb-hubspot-form input[type="submit"]:hover,
.cbb-hubspot-form .hs-button:hover {
    box-shadow: 6px 6px 0 #a8d9c5;
    transform: translate(-1px, -1px);
}

/* Secondary "Request a Demo" link */
.cbb-hubspot-form .hs-richtext a,
.cbb-hubspot-form .legal-consent-container a {
    color: #111;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Error messages */
.cbb-hubspot-form .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}
.cbb-hubspot-form .hs-error-msgs li label {
    font-size: 0.78rem;
    color: #e53e3e;
    font-weight: 400;
}

/* Success message */
.cbb-hubspot-form .submitted-message {
    font-size: 0.95rem;
    color: #005C36;
    font-weight: 500;
    padding: 16px 0;
}

/* Hide HubSpot branding / GDPR boilerplate if desired */
.cbb-hubspot-form .hs-recaptcha { display: none; }

/* Responsive */
@media (max-width: 600px) {
    .cbb-hubspot-form .hbspt-form,
    .cbb-hubspot-form form.hs-form {
        padding: 28px 20px;
    }
    .cbb-hubspot-form .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
