/*
 * Rank website: the marketing sections (Rank\Content\Sections\Marketing) and the forms (Rank\Content\Forms).
 * Ported from the <style> blocks of SiteStakes' SectionRenderer.js, EbookCta.js and HelpForm.module.css, each scoped by
 * the section's class. Colors that came from fields are custom properties set on the section (dark_intro).
 */

/* ---------- shared: text spacing inside rich text ---------- */
.section-mock_lead_card .mlc-body p { margin: 0 0 1rem; }
.section-mock_lead_card .mlc-body p:last-child { margin-bottom: 0; }
.section-brand_cta .bc-body p { margin: 0 0 1rem; }
.section-brand_cta .bc-body p:last-child { margin-bottom: 0; }
.section-long_form_text .article-content p { margin: 0 0 1rem; }
.section-long_form_text .article-content p:last-child { margin-bottom: 0; }
.section-long_form_text .article-content ul,
.section-long_form_text .article-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.section-long_form_text .article-content li { margin: 0 0 0.5rem; }
.section-long_form_text .article-content li:last-child { margin-bottom: 0; }
.section-image_text .ms-body p { margin: 0 0 1rem; }
.section-image_text .ms-body p:last-child { margin-bottom: 0; }
.section-image_text.it-dark .ms-body p { color: rgba(255,255,255,0.75); }
.section-ss_help .ss-help-body p { margin: 0 0 .75rem; }
.section-ss_help .ss-help-body p:last-child { margin-bottom: 0; }
.section-ss_help .ss-help-body ul,
.section-ss_help .ss-help-body ol { margin: .5rem 0 0; padding-left: 1.25rem; }
.section-ss_help .ss-help-body li { margin: 0 0 .4rem; }
.section-ss_help .ss-help-body li:last-child { margin-bottom: 0; }
.section-promo_card .promo-body p { margin: 0; }
.section-accordion details .ms-body p,
.section-dynamic_faq details .ms-body p { margin: 0 0 1rem; }
.section-accordion details .ms-body p:last-child,
.section-dynamic_faq details .ms-body p:last-child { margin-bottom: 0; }
.section-accordion details .ms-body ul, .section-accordion details .ms-body ol,
.section-dynamic_faq details .ms-body ul, .section-dynamic_faq details .ms-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.section-dynamic_faq summary::-webkit-details-marker { display: none; }
.section-dynamic_faq summary::marker { content: ''; }

/* ---------- concepts_list ---------- */
.section-concepts_list .ms-concept-body a { color: var(--cl-link, #16a34a); font-weight: 600; text-decoration: underline; }
.section-concepts_list .ms-concept-body p { margin: 0 0 .6rem; }
.section-concepts_list .ms-concept-body p:last-child { margin-bottom: 0; }
.section-concepts_list .ms-concept-body ul,
.section-concepts_list .ms-concept-body ol { margin: 0 0 .6rem; padding-left: 1.15rem; }
.section-concepts_list .ms-concept-body img { max-width: 100%; height: auto; border-radius: 8px; margin: .6rem 0; display: block; }
.section-concepts_list .ms-concept-body blockquote { margin: .7rem 0; padding: .4rem 0 .4rem .9rem; border-left: 3px solid var(--cl-link, #16a34a); font-style: italic; opacity: .9; }
.section-concepts_list .ms-concept-body h3,
.section-concepts_list .ms-concept-body h4 { font-size: 1rem; font-weight: 800; margin: .8rem 0 .35rem; line-height: 1.35; }
.section-concepts_list .ms-concept-body h3:first-child,
.section-concepts_list .ms-concept-body h4:first-child { margin-top: 0; }

/* ---------- comparison_cta ---------- */
@media (max-width: 560px) { .section-comparison_cta .cc-card { padding: 1.75rem 1.25rem 1.5rem !important; } }

/* ---------- dark_intro (colors from the section's custom properties) ---------- */
.section-dark_intro .di-body p { margin: 0 0 1rem; color: var(--di-body); }
.section-dark_intro .di-body p:last-child { margin-bottom: 0; }
.section-dark_intro .di-body ul, .section-dark_intro .di-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.section-dark_intro .di-body li { margin: 0 0 .35rem; }
.section-dark_intro .di-body a { color: var(--di-accent); font-weight: 700; text-decoration: underline; }
.section-dark_intro .di-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 6px 16px; border: 1px solid var(--di-eyebrow-border); border-radius: 20px; background: var(--di-eyebrow-bg); color: var(--di-accent); }
.section-dark_intro .di-eyebrow-wrap { margin: 0 0 1rem; position: relative; }
.section-dark_intro .di-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 1.5rem; position: relative; }
.section-dark_intro .di-cards.di-cols-1 { grid-template-columns: 1fr; }
.section-dark_intro .di-cards.di-connected { gap: 14px; }
@media (max-width: 640px) { .section-dark_intro .di-cards { grid-template-columns: 1fr; } }
.section-dark_intro .di-marker-number .di-card.di-marked { padding-left: 52px; position: relative; }
.section-dark_intro .di-marker-dot .di-card.di-marked { padding-left: 44px; position: relative; }
.section-dark_intro .di-mark { position: absolute; top: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; z-index: 1; }
.section-dark_intro .di-marker-number .di-mark { left: 14px; }
.section-dark_intro .di-marker-dot .di-mark { left: 16px; }
.section-dark_intro .di-mark-number { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; color: #fff; }
.section-dark_intro .di-mark-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--di-dot-border); top: 20px; }
.section-dark_intro .di-cards.di-connected::before { content: ''; position: absolute; top: 24px; bottom: 24px; width: 2px; background: var(--di-line); opacity: .35; border-radius: 2px; }
.section-dark_intro .di-marker-number.di-connected::before { left: 26px; }
.section-dark_intro .di-marker-dot.di-connected::before { left: 21px; }
.section-dark_intro .di-card { padding: 18px 20px; background: var(--di-card-bg); border-radius: 10px; border: 1px solid var(--di-card-border); }
.section-dark_intro .di-card-t { font-size: 14px; font-weight: 800; color: var(--di-card-title); margin-bottom: 6px; }
.section-dark_intro .di-card-d { font-size: 13px; color: var(--di-card-text); line-height: 1.6; }
.section-dark_intro .di-card-d p { margin: 0 0 .6rem; }
.section-dark_intro .di-card-d p:last-child { margin-bottom: 0; }
.section-dark_intro .di-card-d ul, .section-dark_intro .di-card-d ol { margin: 0 0 .6rem; padding-left: 1.1rem; }
.section-dark_intro .di-card-d li { margin: 0 0 .3rem; }
.section-dark_intro .di-card-d strong { color: var(--di-card-strong); }
.section-dark_intro .di-card-d img { max-width: 100%; height: auto; border-radius: 6px; margin: .5rem 0; display: block; }
.section-dark_intro .di-card-d blockquote { margin: .6rem 0; padding: .35rem 0 .35rem .75rem; border-left: 3px solid var(--di-card-accent, var(--di-accent)); font-style: italic; opacity: .9; }
.section-dark_intro .di-card-d h3, .section-dark_intro .di-card-d h4 { color: var(--di-card-title); font-size: 13px; font-weight: 800; margin: .7rem 0 .3rem; line-height: 1.35; }
.section-dark_intro .di-card-d h3:first-child, .section-dark_intro .di-card-d h4:first-child { margin-top: 0; }
.section-dark_intro .di-card-d a { color: var(--di-card-accent, #fbbf24); font-weight: 700; text-decoration: underline; }
.section-dark_intro .di-card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: .7rem; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.section-dark_intro .di-card-link:hover { text-decoration: underline; }
.section-dark_intro .di-card-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: .85rem; padding: 8px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: #0f172a; }

/* ---------- reviews ---------- */
.section-review_card .review-card-img-wrap img { max-width: 100%; }
@media (max-width: 720px) {
  .section-review_card .review-card-wrap { flex-direction: column !important; align-items: stretch !important; padding: 1.5rem !important; gap: 1.25rem !important; }
  .section-review_card .review-card-img-wrap { justify-content: center !important; }
  .section-review_card .review-card-img-wrap img { width: auto !important; max-width: 100% !important; }
  .section-review_card.rc-bottom .review-card-wrap { flex-direction: column-reverse !important; }
}
@media (max-width: 1024px) { .section-reviews_multi .rm-grid.rm-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 768px) { .section-reviews_multi .rm-grid { grid-template-columns: 1fr !important; } }

/* ---------- video ---------- */
.section-video_embed .ms-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; display: block; }
.section-video_embed .ms-video-btn { transition: transform .2s ease, background .2s ease; outline: 2px solid rgba(255,255,255,.22); }
.section-video_embed .ms-video-play:hover .ms-video-btn,
.section-video_embed .ms-video-play:focus-visible .ms-video-btn { transform: translate(-50%, -50%) scale(1.08) !important; background: rgba(0,0,0,0.85) !important; }
.section-video_embed .ms-video-play:focus-visible { outline: 3px solid var(--green, #16a34a); outline-offset: -3px; }

/* ---------- mock lead card on phones ---------- */
@media (max-width: 560px) { .section-mock_lead_card .mlc-card > div { padding-left: 16px !important; padding-right: 16px !important; } .section-mock_lead_card .mlc-card > div:nth-child(4) { margin-left: 12px !important; margin-right: 12px !important; } }

/* ---------- forms: shared ---------- */
.msf [hidden], .msf-wrap [hidden], .msf-wrap[hidden], .msf[hidden] { display: none !important; }
.msf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.msf input, .msf textarea, .msf select { color: var(--text, #1e293b); max-width: 100%; box-sizing: border-box; }
.msf input:focus, .msf textarea:focus { outline: none; border-color: var(--green, #16a34a) !important; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.msf .msf-bad { border-color: #ef4444 !important; background: #fef2f2 !important; }
.msf button[disabled] { opacity: .65; cursor: wait; }
.msf-err { color: #dc2626; font-size: 14px; line-height: 1.5; margin: 0; text-align: left; }
.msf-newsletter .msf-err { margin-top: 10px; text-align: center; }
.msf-ts, .ebcta-ts, .hf-ts { min-height: 0; }
.msf-done { text-align: center; padding: 12px 0; outline: none; }
.msf-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 26px; font-weight: 700; margin: 0 auto 12px; }
.msf-done-p { font-size: 16px; line-height: 1.6; color: var(--text, #1e293b); margin: 0; }
@media (max-width: 480px) { .msf-newsletter .msf-row { flex-direction: column; } }

/* ---------- guide (EbookCta) ---------- */
.ebcta { max-width: 760px; margin: 0 auto; text-align: left; }
.ebcta-card { display: flex; gap: 28px; align-items: center; background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 28px 32px; box-shadow: 0 4px 20px rgba(15,23,42,.06); }
.ebcta-cover img { height: auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.18); display: block; max-width: 100%; }
.ebcta-body { flex: 1; min-width: 0; }
.ebcta-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #16a34a; margin: 0 0 6px; }
.ebcta-h { font-family: var(--font-display, var(--font-heading, inherit)); font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; line-height: 1.25; }
.ebcta-sum { font-size: 14.5px; color: #475569; line-height: 1.55; margin: 0 0 16px; }
.ebcta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ebcta-input { flex: 1; min-width: 200px; border: 2px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: #1e293b; outline: none; font-family: inherit; }
.ebcta-input:focus { border-color: #16a34a !important; box-shadow: 0 0 0 4px rgba(22,163,74,.10) !important; }
.ebcta-btn { background: #16a34a; color: #fff; border: none; border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none; display: inline-block; }
.ebcta-btn:hover { background: #15803d; color: #fff; }
.ebcta-err { color: #dc2626; font-size: 13px; margin: 8px 0 0; }
.ebcta-fine { font-size: 12px; color: #94a3b8; margin: 10px 0 0; }
.ebcta-ts { margin-top: 12px; }
.ebcta-done { text-align: center; padding: 10px 0; outline: none; }
.ebcta-done[hidden] { display: none !important; }
.ebcta-done-icon { font-size: 34px; margin-bottom: 10px; }
.ebcta-done-h { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.ebcta-done-p { font-size: 14.5px; color: #475569; margin: 0; }
@media (max-width: 560px) {
  .ebcta-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .ebcta-row { justify-content: center; }
  .ebcta-input { min-width: 0; width: 100%; }
  .ebcta-btn { width: 100%; }
  .ebcta-cover { flex-basis: auto !important; }
}

/* ---------- help (HelpForm.module.css) ---------- */
.hf-layout { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; text-align: left; }
.hf-layout.hf-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 820px) { .hf-layout { grid-template-columns: 1fr; padding: 0 20px; } }
.hf-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06); }
.hf-form { display: flex; flex-direction: column; gap: 18px; }
.hf-title { font-family: var(--font-display, var(--font-heading, system-ui)); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); color: #1e293b; margin: 0 0 4px; letter-spacing: -0.01em; }
.hf-lead { font-family: var(--font-body, system-ui); font-size: 14px; color: #64748b; margin: 0 0 8px; line-height: 1.5; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .hf-row { grid-template-columns: 1fr; } }
.hf-field { display: flex; flex-direction: column; gap: 6px; }
.hf-label { font-family: var(--font-body, system-ui); font-size: 13px; font-weight: 600; color: #334155; }
.hf-input { width: 100%; font-family: var(--font-body, system-ui); font-size: 15px; color: #1e293b; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 14px; transition: border 0.15s, box-shadow 0.15s; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.hf-input::placeholder { color: #94a3b8; }
.hf-input:hover { border-color: #94a3b8; }
.msf .hf-input:focus { outline: none; border-color: #2563eb !important; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.msf .hf-input-error { border-color: #ef4444 !important; background: #fef2f2; }
.msf .hf-input-error:focus { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.hf-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.hf-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.hf-count { font-size: 11px; color: #94a3b8; margin-top: 2px; text-align: right; }
.hf-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: 8px; font-family: var(--font-body, system-ui); font-size: 14px; line-height: 1.5; }
.hf-ctx { font-size: 12.5px; color: #64748b; margin: 0; line-height: 1.5; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.hf-ctx strong { color: #334155; font-weight: 600; }
.hf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hf-submit { background: #16a34a; color: #ffffff; font-family: var(--font-body, system-ui); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; border: none; padding: 14px 24px; border-radius: 10px; cursor: pointer; transition: background 0.15s, transform 0.05s, box-shadow 0.15s; box-shadow: 0 2px 6px rgba(22,163,74,0.25); }
.hf-submit:hover:not(:disabled) { background: #15803d; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.30); }
.hf-submit:active:not(:disabled) { transform: translateY(0); }
.hf-submit:disabled { background: #94a3b8; cursor: wait; box-shadow: none; opacity: 1; }
.hf-small { font-size: 11px; color: #94a3b8; margin: 0; line-height: 1.5; }
.hf-sidebar { display: flex; flex-direction: column; gap: 22px; }
.hf-sidebar-block { font-family: var(--font-body, system-ui); }
.hf-sidebar-heading { font-family: var(--font-display, var(--font-heading, system-ui)); font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 6px; letter-spacing: -0.005em; }
.hf-sidebar-body { font-size: 14px; color: #475569; line-height: 1.55; }
.hf-sidebar-body p { margin: 0 0 0.75em; }
.hf-sidebar-body p:last-child { margin-bottom: 0; }
.hf-sidebar-body ol, .hf-sidebar-body ul { margin: 0; padding-left: 22px; font-size: 13.5px; }
.hf-sidebar-body li { margin-bottom: 6px; }
.hf-sidebar-body li:last-child { margin-bottom: 0; }
.hf-sidebar-body a { color: #2563eb; text-decoration: underline; }
.hf-sidebar-body a:hover { color: #1d4ed8; }
.hf-success { text-align: center; padding: clamp(8px, 2vw, 24px) 0; outline: none; }
.hf-success[hidden] { display: none !important; }
.hf-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 36px; font-weight: 700; margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(22,163,74,0.18); }
.hf-success-title { font-family: var(--font-display, var(--font-heading, system-ui)); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); color: #1e293b; margin: 0 0 12px; letter-spacing: -0.01em; }
.hf-success-body { font-family: var(--font-body, system-ui); font-size: 15px; color: #475569; line-height: 1.6; margin: 0 auto 12px; max-width: 480px; }
.hf-success-foot { font-family: var(--font-body, system-ui); font-size: 13px; color: #64748b; margin: 24px 0 0; }

/* Forms made in Website → Forms (Forms::custom): the help form's look, fields in two columns where set to half width */
.ff-card { max-width: 100%; }
.ff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ff-f { min-width: 0; grid-column: span 2; }
.ff-half { grid-column: span 1; }
@media (max-width: 540px) { .ff-half { grid-column: span 2; } }
.ff-req { color: #dc2626; font-weight: 700; }
.ff-help { font-family: var(--font-body, system-ui); font-size: 12.5px; color: #64748b; margin: 2px 0 0; line-height: 1.45; }
.ff-help a, .ff-opt a, .hf-label a { color: #2563eb; text-decoration: underline; }
.ff-set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ff-set legend { padding: 0; margin: 0 0 2px; }
.ff-opts { display: flex; flex-direction: column; gap: 8px; }
.ff-opt { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body, system-ui); font-size: 15px; color: #1e293b; line-height: 1.45; cursor: pointer; }
.ff-opt input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #16a34a; cursor: pointer; }
.ff-check .ff-help { margin-left: 28px; }
.msf .ff-set.hf-input-error .ff-opt, .msf .ff-check.hf-input-error .ff-opt { color: #b91c1c; }
.msf .ff-set.hf-input-error, .msf .ff-check.hf-input-error { background: #fef2f2; border-radius: 8px; padding: 8px 10px; }
.msf .ff-opt input.hf-input-error { outline: 2px solid #ef4444; outline-offset: 1px; }
.ff-plain .hf-form { gap: 18px; }
.section-form_embed .ff-wrap { margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.section-form_embed .ff-head { text-align: center; margin: 0 auto 28px; }
.section-form_embed .ff-head .ms-h2 { margin: 0 0 10px; }
.section-form_embed .ff-head p { margin: 0 auto; max-width: 620px; color: var(--text-secondary, #475569); font-size: 17px; line-height: 1.6; }
