@font-face { font-family: 'Demo Plex'; src: url('../fonts/ibmplexsans-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Demo Plex'; src: url('../fonts/ibmplexsans-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

@font-face { font-family: 'Demo Arabic'; src: url('../fonts/ibmplexsansarabic-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Demo Arabic'; src: url('../fonts/ibmplexsansarabic-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

.demo-page { background: #f9f9f7; }
.demo-page > [data-header] { background: #fff; }
.demo-stage { padding: 48px 40px 64px; color: #15151a; font-family: 'Demo Plex', sans-serif; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-width: 1160px; margin: 0 auto; border: 1px solid #e8e5ec; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 12px 40px #30234a06; }
.demo-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.demo-booking { min-width: 0; padding: 42px 48px 30px; scroll-margin-top: 88px; }
.demo-form-heading { margin-bottom: 30px; }
.demo-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-heading-row h1 { min-width: 0; }
.demo-language { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 4px; flex: 0 0 auto; color: #6240c4; font: 400 14px/1.5 'Demo Plex', sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.demo-language[lang="ar"] { font-family: 'Demo Arabic', sans-serif; }
.demo-form-heading h1 { color: #15151a; margin: 0; font: 600 clamp(36px, 3.6vw, 48px)/1.12 'Demo Plex', sans-serif; letter-spacing: -.055em; }
.demo-form-heading p { font-size: 15px; line-height: 1.6; color: #706a78; margin: 15px 0 0; }
.demo-companion { display: flex; flex-direction: column; min-width: 0; padding: 39px 36px 28px; color: #fff; background: #764ff6; overflow: hidden; }
.demo-companion h2 { color: #fff; font: 600 38px/1.13 'Demo Plex', sans-serif; letter-spacing: -.045em; margin: 0; }
.demo-companion-intro > p { color: #fff; font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.demo-data-flow { width: 100%; max-width: 420px; margin: 27px auto 0; }
.demo-data-sources { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.demo-data-source { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; color: #fff; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.demo-source-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff4a; border-radius: 9px; background: #ffffff0d; }
.demo-source-icon svg { width: 23px; height: 23px; }
.demo-flow-connections { display: block; width: 100%; height: 57px; margin-top: 10px; color: #e1d6ff; }
.demo-sfere-hub { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 174px; padding: 17px 12px 13px; margin: 0 auto; border: 1px solid #e6ddfa; border-radius: 12px; background: #fff; color: #72677f; box-shadow: 0 5px 15px #371b801a; }
.demo-sfere-hub img { display: block; width: 124px; height: auto; }
.demo-sfere-hub > span { font-size: 12px; line-height: 1.3; }
.demo-profile-connector { display: block; width: 24px; height: 36px; margin: 0 auto; color: #e5daff; }
.demo-customer-profile { position: relative; width: 100%; max-width: 320px; margin: 0 auto; padding: 17px 19px 0; border: 1px solid #e7def8; border-radius: 12px; background: #fff; color: #15151a; box-shadow: 0 8px 24px #3c22801a; }
.demo-profile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #62596e; font-size: 12px; line-height: 1.5; }
.demo-example-label { font-size: 11px; line-height: 1.3; padding: 3px 6px; border: 1px solid #e9e2f2; border-radius: 4px; color: #776e83; background: #fcfaff; }
.demo-profile-person { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.demo-profile-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #f0e9fb; overflow: hidden; }
.demo-profile-avatar svg { width: 100%; height: 100%; }
.demo-profile-person h3 { font: 600 17px/1.35 'Demo Plex', sans-serif; letter-spacing: -.025em; color: #21182f; margin: 0; }
.demo-profile-person p { margin: 2px 0 0; color: #6d6279; font-size: 12px; line-height: 1.5; }
.demo-profile-connected { margin-inline-start: auto; display: grid; place-items: center; width: 26px; height: 26px; background: #f4efff; color: #764ff6; border-radius: 50%; }
.demo-profile-connected .demo-icon { width: 16px; height: 16px; }
.demo-profile-details { display: grid; gap: 10px; padding: 16px 0 18px; margin: 0; }
.demo-profile-details > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.5; }
.demo-profile-details dt { color: #6d6279; }
.demo-profile-details dd { margin: 0; color: #40334f; text-align: end; }
.demo-profile-summary { display: flex; align-items: center; gap: 6px; padding: 12px 0; border-top: 1px solid #ede7f5; font-size: 11px; line-height: 1.5; color: #6b4ca6; }
.demo-profile-summary .demo-icon { width: 13px; height: 13px; }
.demo-data-flow figcaption { margin-top: 13px; color: #fff; font-size: 12px; line-height: 1.5; text-align: center; }
.demo-contact-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; margin-top: auto; padding-top: 22px; font-size: 12px; line-height: 1.6; min-height: 44px; }
.demo-contact-link strong { color: #fff; font-weight: 600; }
.demo-contact-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.demo-contact-link .demo-icon { width: 18px; height: 18px; transition: transform .18s; }


/* Keep provider fields, validation and submission in their native renderer. */
.demo-booking .pdform-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 21px; }
.demo-booking .pdform-intro, .demo-booking .pdform-actions, .demo-booking .pdform-status, .demo-booking .pdform-notes, .demo-booking .pdform-field:has(textarea) { grid-column: 1 / -1; }
.demo-booking .pdform-field { min-width: 0; }
.demo-booking .pdform-loading { padding: 28px 0; min-height: 420px; color: #706a78; font-size: 14px; }
.demo-booking .pdform-label { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; color: #302a39; margin-bottom: 8px; }
.demo-booking .pdform-required { color: #764ff6; }
.demo-booking .pdform-optional { font-weight: 400; color: #706a78; margin-inline-start: 3px; }
.demo-booking .pdform-input { box-sizing: border-box; width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #94899f; border-radius: 7px; background: #fdfcfe; color: #15151a; font: 400 16px/1.5 'Demo Plex', sans-serif; scroll-margin-block: 88px 24px; transition: border-color .16s, box-shadow .16s; }

.demo-booking .pdform-input:focus { outline: 0; border-color: #764ff6; box-shadow: 0 0 0 3px #764ff621; background: #fff; }
.demo-booking .pdform-input::placeholder { color: #827b8c; opacity: 1; font-size: 13px; }
.demo-booking textarea.pdform-input { display: block; min-height: 108px; resize: vertical; }
.demo-booking .pdform-input.is-invalid { border-color: #bb253c; }
.demo-booking .pdform-error { font-size: 12px; line-height: 1.5; color: #a42036; margin: 6px 0 0; }
.demo-booking .pdform-help { font-size: 12px; color: #706a78; margin: 6px 0 0; }
.demo-booking .pdform-submit { width: 100%; display: block; border: 0; background: #764ff6; color: #fff; border-radius: 7px; min-height: 52px; padding: 13px 20px; font: 600 15px/1.5 'Demo Plex', sans-serif; cursor: pointer; transition: background .16s, transform .16s; touch-action: manipulation; }

.demo-booking .pdform-submit:disabled { opacity: .65; cursor: wait; }
.demo-booking .pdform-status { font-size: 13px; line-height: 1.5; color: #706a78; margin: 0; text-align: center; }
.demo-booking .pdform-status:empty { display: none; }
.demo-booking .pdform-notes { font-size: 11px; line-height: 1.65; color: #777080; margin-top: -6px; }
.demo-booking .pdform-note { margin: 0 0 5px; }
.demo-booking .pdform-note a { color: #6842c6; text-decoration: underline; text-underline-offset: 2px; }
.demo-form-footer { margin-top: 17px; padding-top: 17px; border-top: 1px solid #eeeaf2; }
.demo-form-footer p { font-size: 12px; line-height: 1.6; color: #706a78; margin: 0; }
.demo-form-footer a, .demo-direct-form a { color: #6240c4; text-decoration: underline; text-underline-offset: 3px; }
.demo-form-footer .demo-response { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.demo-response .demo-icon { width: 14px; height: 14px; color: #764ff6; }
.demo-booking .pipedriveWebForms { min-height: 680px; }
.demo-booking iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.demo-booking .pdform-error-panel { padding: 14px; background: #fff0f1; border: 1px solid #f3bec6; border-radius: 7px; color: #942637; font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.demo-booking .pdform-error-panel strong { display: block; margin-bottom: 4px; }
.demo-booking .pdform-success { padding: 52px 0 64px; text-align: center; }
.demo-booking .pdform-title { font: 600 26px/1.25 'Demo Plex', sans-serif; color: #15151a; }
.demo-booking .pdform-message { font-size: 15px; line-height: 1.6; color: #706a78; margin-top: 12px; }
.demo-page .grecaptcha-badge { visibility: hidden; }
.demo-stage :is(a, button, [tabindex]):focus-visible { outline: 3px solid #764ff6; outline-offset: 4px; }
.demo-companion a:focus-visible { outline-color: #fff; }

.demo-flow-connections path { vector-effect: non-scaling-stroke; }
.demo-booking .pdform-submit:active:not(:disabled) { background: #5630cd; transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .demo-booking .pdform-input:hover:not(:focus):not(.is-invalid) { border-color: #746580; }
  .demo-booking .pdform-submit:hover:not(:disabled) { background: #6038db; }
  .demo-contact-link:hover .demo-icon { transform: translateX(3px); }
}

@media (max-width: 1100px) {
  .demo-stage { padding: 32px 24px 48px; }
  .demo-booking { padding: 36px 30px 28px; }
  .demo-companion { padding: 36px 24px 28px; }
  .demo-companion h2 { font-size: 35px; }
  .demo-contact-link { align-items: flex-start; }
  .demo-contact-link strong { display: block; }
}
@media (max-width: 850px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .demo-booking { padding: 36px; }
  .demo-companion { display: flex; padding: 34px 36px 28px; }
  .demo-companion h2 { font-size: 36px; }
  .demo-companion h2 br { display: none; }
  .demo-companion-intro > p { margin-top: 14px; }
  .demo-data-flow { margin-top: 30px; }
  .demo-contact-link { align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid #ffffff35; }
  .demo-contact-link strong { display: inline; }
}
@media (max-width: 480px) {
  .demo-stage { padding: 20px 16px 32px; }
  .demo-layout { border-radius: 14px; }
  .demo-booking { padding: 27px 22px 24px; }
  .demo-form-heading { margin-bottom: 25px; }
  .demo-form-heading h1 { font-size: clamp(32px, 9.5vw, 37px); }
  .demo-form-heading p { font-size: 14px; margin-top: 12px; }
  .demo-form-heading br { display: none; }
  .demo-booking .pdform-form { grid-template-columns: minmax(0, 1fr); row-gap: 17px; }
  .demo-booking .pdform-input { font-size: 16px; }
  .demo-booking textarea.pdform-input { min-height: 98px; }
  .demo-booking .pdform-notes { margin-top: 0; }
  .demo-form-footer { margin-top: 13px; }
  .demo-companion { padding: 29px 22px; }
  .demo-companion h2 { font-size: 32px; max-width: 270px; }
  .demo-companion-intro > p { font-size: 14px; }
  .demo-data-source { font-size: 11px; }
  .demo-source-icon { width: 38px; height: 38px; }
  .demo-source-icon svg { width: 21px; height: 21px; }
  .demo-customer-profile { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-stage *, .demo-stage *::before, .demo-stage *::after { transition: none; }
  .demo-contact-link:hover .demo-icon, .demo-booking .pdform-submit:active:not(:disabled) { transform: none; }
}

/* Arabic uses the same form-first composition and semantic reading order.
   Mirror layout, not the Sfere logo or the Latin email address. */
.demo-page-ar .demo-stage { font-family: 'Demo Arabic', sans-serif; }
.demo-page-ar :is(.demo-form-heading h1, .demo-companion h2, .demo-profile-person h3, .pdform-input, .pdform-submit, .pdform-title) { font-family: 'Demo Arabic', sans-serif; letter-spacing: 0; }
.demo-page-ar .demo-form-heading h1 { font-size: 40px; line-height: 1.5; }
.demo-page-ar .demo-heading-row { align-items: flex-start; }
.demo-page-ar .demo-language { margin-top: 8px; }
.demo-page-ar .demo-form-heading p { font-size: 16px; line-height: 1.85; margin-top: 10px; }
.demo-page-ar .demo-companion { padding-top: 42px; }
.demo-page-ar .demo-companion h2 { font-size: 33px; line-height: 1.5; }
.demo-page-ar .demo-companion-intro > p { font-size: 15px; line-height: 1.9; margin-top: 12px; }
.demo-page-ar .demo-data-source { font-size: 12px; line-height: 1.65; white-space: normal; text-align: center; }
.demo-page-ar .demo-data-source > span:last-child { min-height: 40px; }
.demo-page-ar .demo-flow-connections { margin-top: 3px; }
.demo-page-ar .demo-sfere-hub > span { font-size: 12px; line-height: 1.7; }
.demo-page-ar .demo-profile-top { font-size: 13px; line-height: 1.7; }
.demo-page-ar .demo-example-label { font-size: 11px; }
.demo-page-ar .demo-profile-person h3 { font-size: 19px; line-height: 1.5; }
.demo-page-ar .demo-profile-person p { font-family: 'Demo Plex', sans-serif; }
.demo-page-ar .demo-profile-details > div { font-size: 13px; line-height: 1.8; }
.demo-page-ar .demo-profile-summary { font-size: 12px; line-height: 1.8; }
.demo-page-ar .demo-data-flow figcaption { font-size: 13px; line-height: 1.8; }
.demo-page-ar .demo-contact-link { font-size: 14px; line-height: 1.8; }
.demo-page-ar .demo-contact-link .demo-icon { transform: rotate(180deg); }
.demo-page-ar .pdform-label { font-size: 14px; line-height: 1.8; }
.demo-page-ar .pdform-input { line-height: 1.7; text-align: start; }
.demo-page-ar .pdform-submit { font-size: 16px; line-height: 1.7; }
.demo-page-ar :is(.pdform-notes, .demo-form-footer p) { font-size: 12px; line-height: 1.9; }
.demo-page-ar :is(.pdform-error, .pdform-help, .pdform-status, .pdform-message) { line-height: 1.8; }
@media (hover: hover) and (pointer: fine) {
  .demo-page-ar .demo-contact-link:hover .demo-icon { transform: rotate(180deg) translateX(3px); }
}
@media (max-width: 1100px) {
  .demo-page-ar .demo-form-heading h1 { font-size: 34px; }
  .demo-page-ar .demo-companion h2 { font-size: 29px; }
}
@media (max-width: 850px) {
  .demo-page-ar .demo-companion h2 { font-size: 32px; }
  .demo-page-ar .demo-companion h2 br { display: block; }
}
@media (max-width: 480px) {
  .demo-page-ar .demo-heading-row { gap: 10px; }
  .demo-page-ar .demo-form-heading h1 { font-size: 28px; line-height: 1.55; }
  .demo-page-ar .demo-form-heading p { font-size: 15px; line-height: 1.9; }
  .demo-page-ar .demo-language { margin-top: 0; font-size: 13px; }
  .demo-page-ar .demo-companion { padding-top: 28px; }
  .demo-page-ar .demo-companion h2 { font-size: 28px; max-width: none; }
  .demo-page-ar .demo-companion-intro > p { font-size: 14px; }
  .demo-page-ar .demo-data-source { font-size: 11px; }
  .demo-page-ar .demo-profile-details > div { font-size: 12px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-page-ar .demo-contact-link:hover .demo-icon { transform: rotate(180deg); }
}
