/* Webbranding semantic components: site-owned, flat editorial, no runtime JS.
 * Values: project tokens.json and webbranding-components.css.
 * Roots do not depend on body.wb-native or legacy --wb-font.
 */
.wb-form,
.wb-ranking-heading,
.wb-section-title {
  --wb-component-surface: #ffffff;
  --wb-component-ink: #1b2330;
  --wb-component-primary: #134695;
  --wb-component-heading: #0c2a63;
  --wb-component-outline: #6f7b8d;
  --wb-component-error: #c62828;
  --wb-component-font: Vazirmatn, Tahoma, sans-serif;
  background: var(--wb-component-surface);
  color: var(--wb-component-ink);
  font-family: var(--wb-component-font);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

/* Property-level exception for Elementor's independently configured inner
 * surface (parent-confirmed blue on contact 334). This does not reset widgets
 * globally, typography, field visibility, padding or plugin error containers.
 */
.wb-form > .elementor-widget-container {
  background-color: var(--wb-component-surface) !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Text targets only: never reset fonts on icons or all descendants. */
.wb-form :is(p, label, legend, .ff-el-input--label) {
  font-family: var(--wb-component-font);
}

.wb-form :is(input:not([type]), input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select) {
  box-sizing: border-box;
  background-color: var(--wb-component-surface);
  color: var(--wb-component-ink);
  border: 1px solid var(--wb-component-outline);
  border-radius: 4px;
  padding: 10px 16px;
  min-height: 48px;
  max-inline-size: 100%;
  min-inline-size: 0;
  font-family: var(--wb-component-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  box-shadow: none;
}

.wb-form textarea {
  resize: vertical;
}

.wb-form :is(input[type="email"], input[type="url"], input[type="tel"]) {
  direction: ltr;
  text-align: left;
}

/* Fluent Forms messages/visibility/icons remain plugin-owned. */
.wb-form :is(input, textarea, select)[aria-invalid="true"],
.wb-form .ff-el-is-error :is(input:not([type]), input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select) {
  border-color: var(--wb-component-error);
}

/* Fluent Forms' generated per-form style element may load later. Override
 * only submit colors, leaving plugin states, geometry and icons alone. */
.wb-form :is(button[type="submit"], input[type="submit"], button.ff-btn-submit) {
  box-sizing: border-box;
  background-color: var(--wb-component-primary) !important;
  color: var(--wb-component-surface) !important;
  border: 1px solid transparent;
  border-radius: 4px;
  min-height: 44px;
  max-inline-size: 100%;
  padding: 10px 24px;
  font-family: var(--wb-component-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  box-shadow: none;
  background-image: none;
}

.wb-form :is(button[type="submit"], input[type="submit"], button.ff-btn-submit):hover:not(:disabled) {
  background-color: var(--wb-component-heading) !important;
}

.wb-form .ff-default .ff-btn-submit:focus-visible,
.wb-form :is(input, textarea, select, button, a):focus-visible,
.wb-ranking-heading a:focus-visible,
.wb-section-title a:focus-visible {
  outline: 3px solid var(--wb-component-primary);
  outline-offset: 2px;
}

/* Saved Elementor widget typography outranks semantic classes. Only these
 * text properties override ordinary saved styles; icon fonts stay untouched.
 * Solid type replaces the retired text-gradient, not its content or sizing. */
.wb-ranking-heading,
.wb-ranking-heading .elementor-heading-title {
  color: var(--wb-component-heading) !important;
  font-family: var(--wb-component-font) !important;
}

.wb-ranking-heading,
.wb-ranking-heading .elementor-heading-title,
.wb-ranking-heading span {
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.wb-ranking-heading span {
  color: inherit;
}

/* One editorial section-title definition; native heading or widget wrapper. */
.wb-section-title {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  border-top: 2px solid var(--wb-component-ink);
  padding-top: 12px;
}

.wb-section-title,
.wb-section-title .elementor-heading-title {
  color: var(--wb-component-heading) !important;
  background-image: none;
  font-family: var(--wb-component-font) !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .wb-section-title,
  .wb-section-title .elementor-heading-title {
    font-size: 24px;
    line-height: 38px;
  }
}
