/* =================================================================
   demo-request-block.css — Bluworks v2
   Exact styling for font sizes, gaps, padding, and forced 50/50 grid.
   ================================================================= */

.demo-request-section {
  background: var(--bg, #FAFBFD) !important;
  /* Uses the section-tight padding defined in style.css */
  padding: var(--space-section-sm, clamp(48px, 6vw, 64px)) 0 !important;
}

.demo-request-section .container {
  width: 100%;
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  box-sizing: border-box;
}

/* ── 1. The 50/50 Grid (Forced to prevent squishing) ────────────── */
.demo-request-section .demo-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; 
  gap: 40px !important;
  align-items: stretch !important;
  width: 100% !important;
}

@media (max-width: 960px) {
  .demo-request-section .demo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Force the wrapper columns to fill height and stop grid blowout */
.demo-request-section .demo-grid > .reveal {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* ── 2. Left Side: Form Card ────────────────────────────────────── */
.demo-request-section .demo-form-card {
  background: var(--surface, #FFFFFF) !important;
  border: 1px solid var(--line, #E4E8F3) !important;
  border-radius: var(--r-3, 12px) !important;
  padding: clamp(24px, 4vw, 40px) !important;
  box-shadow: 0 4px 14px rgba(10, 15, 30, 0.05) !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.demo-request-section .form-field {
  margin-bottom: 20px !important;
  width: 100% !important;
}

.demo-request-section .form-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

@media (max-width: 600px) {
  .demo-request-section .form-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Form Labels */
.demo-request-section .form-field label {
  display: block !important;
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink, #0A0F1E) !important;
  margin-bottom: 8px !important;
  /* nowrap removed: longer labels (incl. Arabic RTL) were overflowing the
     field on narrow viewports instead of wrapping to a second line. */
  white-space: normal !important;
}

.demo-request-section .form-required {
  color: var(--blu-primary, #1E50E5) !important;
  margin-left: 2px !important;
}
html[dir="rtl"] .demo-request-section .form-required {
  margin-left: 0 !important;
  margin-right: 2px !important;
}

/* Form Inputs */
.demo-request-section .form-field input,
.demo-request-section .form-field select,
.demo-request-section .form-field textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px 14px !important;
  background: var(--surface, #FFFFFF) !important;
  border: 1px solid var(--line, #E4E8F3) !important;
  border-radius: 8px !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--ink, #0A0F1E) !important;
  transition: border-color 220ms ease, box-shadow 220ms ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  height:45px;
}

.demo-request-section .form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7088' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px !important;
  padding-right: 42px !important;
}

html[dir="rtl"] .demo-request-section .form-field select {
  background-position: left 14px center !important;
  padding-right: 14px !important;
  padding-left: 42px !important;
}

/* ── Native HubSpot embed (Arabic) — same look, RTL-aligned ─────── */
.demo-request-section .demo-form-card--native .hs-form {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}
.demo-request-section .demo-form-card--native .hs-form fieldset { max-width: 100% !important; }
.demo-request-section .demo-form-card--native .hs-form-field { margin-bottom: 20px !important; width: 100% !important; }
.demo-request-section .demo-form-card--native .hs-form-field label {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink, #0A0F1E) !important;
  margin-bottom: 8px !important;
  text-align: right !important;
}
.demo-request-section .demo-form-card--native .hs-form-field label .hs-form-required {
  color: var(--blu-primary, #1E50E5) !important;
  margin-left: 0 !important;
  margin-right: 2px !important;
}
.demo-request-section .demo-form-card--native .hs-form-field .input { width: 100% !important; }
.demo-request-section .demo-form-card--native .hs-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  background: var(--surface, #FFFFFF) !important;
  border: 1px solid var(--line, #E4E8F3) !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--ink, #0A0F1E) !important;
  height: 45px !important;
  text-align: right !important;
  direction: rtl !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.demo-request-section .demo-form-card--native textarea.hs-input { height: auto !important; }
.demo-request-section .demo-form-card--native select.hs-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7088' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 18px !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
}
.demo-request-section .demo-form-card--native .hs-input:focus {
  outline: none !important;
  border-color: var(--blu-primary, #1E50E5) !important;
  box-shadow: 0 0 0 3px rgba(30, 80, 229, 0.12) !important;
}
.demo-request-section .demo-form-card--native .hs-error-msgs { list-style: none !important; margin: 4px 0 0 !important; padding: 0 !important; text-align: right !important; }
.demo-request-section .demo-form-card--native .hs-error-msgs label { color: #E53E3E !important; font-size: 13px !important; font-weight: 500 !important; }
.demo-request-section .demo-form-card--native .hs-richtext { text-align: right !important; font-size: 13px !important; color: var(--ink-soft, #4B5068) !important; margin-bottom: 16px !important; }
.demo-request-section .demo-form-card--native input[type="submit"].hs-button,
.demo-request-section .demo-form-card--native .hs-button {
  width: 100% !important;
  padding: 12px 22px !important;
  background: var(--blu-primary, #1E50E5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.demo-request-section .demo-form-card--native input[type="submit"].hs-button:hover,
.demo-request-section .demo-form-card--native .hs-button:hover {
  background: var(--blu-dark, #0A2A8A) !important;
}

.demo-request-section .form-field input:focus,
.demo-request-section .form-field select:focus,
.demo-request-section .form-field textarea:focus {
  outline: none !important;
  border-color: var(--blu-primary, #1E50E5) !important;
  box-shadow: 0 0 0 3px rgba(30, 80, 229, 0.12) !important;
}

.demo-request-section .btn-block {
    width: 100% !important;
    margin-top: auto !important;
    padding: 12px 22px !important;
    background: var(--blu-primary, #1E50E5) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: var(--font-display, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: background 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease !important;
    text-decoration: none !important;
}

.demo-request-section .btn-block:hover {
  background: var(--blu-dark, #0A2A8A) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 16px 40px rgba(30, 80, 229, 0.20) !important;
}

/* Submit Button Arrow — moves on hover only */
.demo-request-section .btn-block .btn-arrow {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.demo-request-section .btn-block:hover .btn-arrow {
  transform: translateX(3px) !important;
}

html[dir="rtl"] .demo-request-section .btn-block .btn-arrow {
  transform: scaleX(-1) !important;
}

html[dir="rtl"] .demo-request-section .btn-block:hover .btn-arrow {
  transform: scaleX(-1) translateX(3px) !important;
}


/* ── 3. Right Side: Text & Lists ────────────────────────────────── */
.demo-request-section .demo-side h3 {
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 28px !important;
  color: var(--ink, #0A0F1E) !important;
}

/* Expectations List */
.demo-request-section .trust-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin-bottom: 48px !important;
}

.demo-request-section .trust-item {
  padding-left: 20px !important;
  border-left: 3px solid var(--blu-soft-2, #DCE6FF) !important;
}

html[dir="rtl"] .demo-request-section .trust-item {
  padding-left: 0 !important;
  padding-right: 20px !important;
  border-left: none !important;
  border-right: 3px solid var(--blu-soft-2, #DCE6FF) !important;
}

.demo-request-section .trust-item strong {
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink, #0A0F1E) !important;
  margin-bottom: 4px !important;
  font-family: var(--font-display, sans-serif) !important;
}

.demo-request-section .trust-item p {
  margin: 0 !important;
  font-size: 15px !important;
  color: var(--ink-mid, #4B5068) !important;
  line-height: 1.55 !important;
  font-weight: 500 !important;
}

/* ── 4. Trust Marquee ───────────────────────────────────────────── */
.demo-request-section .demo-trust-label {
  font-family: var(--font-display, sans-serif) !important;
  font-size: 14px !important;     /* var(--text-micro), was 13px */
  font-weight: 600 !important;    /* unified label-eyebrow weight, was 700 */
  color: var(--ink-muted, #6B7088) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 16px !important;
}

.demo-request-section .demo-marquee {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  margin-bottom: 40px !important;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent) !important;
}

.demo-request-section .demo-marquee-track {
  display: flex !important;
  animation: demo-marquee 45s linear infinite !important;
  gap: 48px !important;
  padding-right: 16px !important;
  width: max-content !important;
}

.demo-request-section .demo-marquee-logo {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.demo-request-section .demo-marquee-logo img {
  height: 36px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;

  transition: opacity 220ms ease, filter 220ms ease !important;
}

.demo-request-section .demo-marquee-logo:hover img {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
}

@keyframes demo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.demo-request-section .demo-quote {
    background: var(--blu-primary, #1E50E5) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 28px !important;
    margin: auto 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    border: none !important;
}

.demo-request-section .demo-quote-author {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.demo-request-section .demo-quote-avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.demo-request-section .demo-quote-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.demo-request-section .demo-quote-author-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.demo-request-section .demo-quote-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff !important;
  line-height: 1.3;
}

.demo-request-section .demo-quote-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.demo-request-section .demo-quote p {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #fff !important;
    font-family: var(--font-display, sans-serif) !important;
    font-style: normal !important;
}

/* =============================================================
   HubSpot form override — matches native Netlify form design.
   Scoped to .demo-form-card so it never leaks.
   ============================================================= */

/* Strip HubSpot canvas theme shell */
.demo-form-card main,
.demo-form-card .container.loaded,
.demo-form-card [data-hs-forms-root] {
  all: unset !important;
  display: block !important;
}

/* Form itself */
.demo-form-card .hs-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}

/* Every row = one field slot */
.demo-form-card .hs-form__row {
  margin-bottom: 20px !important;
  width: 100% !important;
}
.demo-form-card .hs-form__row:last-child {
  margin-bottom: 0 !important;
}

/* Strip HubSpot group/column wrappers */
.demo-form-card .hs-form__group,
.demo-form-card .hs-form__field-row,
.demo-form-card .hs-form__field-row__column,
.demo-form-card .hs-form__field,
.demo-form-card .hs-form__field__phone {
  all: unset !important;
  display: block !important;
  width: 100% !important;
}

/* Labels */
.demo-form-card .hs-form__field__label {
  display: block !important;
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ink, #0A0F1E) !important;
  margin-bottom: 8px !important;
  white-space: normal !important;
  cursor: default !important;
}

/* Required asterisk */
.demo-form-card .hs-form__field__label__required {
  color: var(--blu-primary, #1E50E5) !important;
  margin-left: 2px !important;
  font-weight: 700 !important;
}

/* Inputs & selects */
.demo-form-card .hs-form__field__input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: 45px !important;
  padding: 12px 14px !important;
  background: var(--surface, #FFFFFF) !important;
  border: 1px solid var(--line, #E4E8F3) !important;
  border-radius: 8px !important;
  font-family: var(--font-body, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--ink, #0A0F1E) !important;
  transition: border-color 220ms ease, box-shadow 220ms ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Select arrow */
.demo-form-card select.hs-form__field__input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7088' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px !important;
  padding-right: 42px !important;
  cursor: pointer !important;
}

/* Placeholder select option colour */
.demo-form-card select.hs-form__field__input.is-placeholder {
  color: var(--ink-muted, #9CA3B0) !important;
}

/* Focus states */
.demo-form-card .hs-form__field__input:focus {
  border-color: var(--blu-primary, #1E50E5) !important;
  box-shadow: 0 0 0 3px rgba(30, 80, 229, 0.12) !important;
  outline: none !important;
}

/* Error messages */
.demo-form-card .hs-form__field__error {
  display: block !important;
  font-size: 13px !important;
  color: #E53E3E !important;
  margin-top: 5px !important;
  font-family: var(--font-display) !important;
}

/* Actions row */
.demo-form-card .hs-form__actions {
  display: block !important;
  margin-top: 8px !important;
}

/* Submit button */
.demo-form-card .hs-form__actions__submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 24px !important;
  background: var(--blu-primary, #1E50E5) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r-2, 8px) !important;
  font-family: var(--font-display, 'Neue Haas Grotesk Display', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  transition: background 180ms ease, transform 180ms ease !important;
  margin-top: auto !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.demo-form-card .hs-form__actions__submit:hover {
  background: var(--blu-dark, #1640B8) !important;
  transform: translateY(-1px) !important;
}

/* Hide HubSpot live region & any injected helpers */
.demo-form-card .hs-form__visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Success message */
.demo-form-card .hs-form__thankyou-message {
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  padding: 24px 0 !important;
}

/* =============================================================
   Arabic RTL font overrides — var(--font-display)/var(--font-body)
   resolve to the Latin font, so RTL needs an explicit Arabic swap.
   ============================================================= */
html[dir="rtl"] .demo-request-section .form-field label,
html[dir="rtl"] .demo-request-section .btn-block,
html[dir="rtl"] .demo-request-section .demo-side h3,
html[dir="rtl"] .demo-request-section .trust-item strong,
html[dir="rtl"] .demo-request-section .demo-trust-label,
html[dir="rtl"] .demo-request-section .demo-quote p,
html[dir="rtl"] .demo-form-card .hs-form__field__label,
html[dir="rtl"] .demo-form-card .hs-form__field__error,
html[dir="rtl"] .demo-form-card .hs-form__actions__submit,
html[dir="rtl"] .demo-form-card .hs-form__thankyou-message {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}

html[dir="rtl"] .demo-request-section .form-field input,
html[dir="rtl"] .demo-request-section .form-field select,
html[dir="rtl"] .demo-request-section .form-field textarea,
html[dir="rtl"] .demo-form-card .hs-form__field__input {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif !important;
}