:root {
  --egeam-primary: #0759a6;
  --egeam-primary-dark: #06457f;
  --egeam-accent: #1c7ed6;
  --egeam-ink: #172033;
  --egeam-muted: #657084;
  --egeam-border: #dbe3ec;
  --egeam-soft: #f4f7fa;
  --egeam-white: #ffffff;
  --egeam-success: #15803d;
  --egeam-danger: #c62828;
  --egeam-shadow: 0 16px 40px rgba(24, 42, 69, .10);
  --egeam-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.egeam-quote-shell,
.egeam-quote-shell *,
.egeam-quote-shell *::before,
.egeam-quote-shell *::after {
  box-sizing: border-box;
  font-family: var(--egeam-font) !important;
  font-synthesis: none;
}

.egeam-quote-shell {
  width: 100%;
  color: var(--egeam-ink);
  background: var(--egeam-white);
  text-rendering: optimizeLegibility;
}

.egeam-quote-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.egeam-quote-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 34px;
  background:
    radial-gradient(circle at 88% 16%, rgba(54, 141, 226, .30), transparent 28%),
    linear-gradient(135deg, #0f1726 0%, #111d31 52%, #0759a6 150%);
  color: var(--egeam-white);
}

.egeam-quote-hero::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  width: min(36vw, 420px);
  height: min(40vw, 520px);
  background: url('../img/callcenter-agent.png') right bottom / contain no-repeat;
  opacity: .95;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 14px 38px rgba(0,0,0,.35));
}

.egeam-quote-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.03), 0 0 0 84px rgba(255,255,255,.02);
  z-index: 0;
}

.egeam-quote-hero .egeam-quote-container {
  position: relative;
  z-index: 2;
}

.egeam-quote-kicker {
  margin-bottom: 14px;
  color: #7ec3ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .12em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.egeam-quote-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-family: var(--wd-title-font, "Arial Nova", "Helvetica Neue", Arial, sans-serif) !important;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 600;
}

.egeam-quote-hero p {
  max-width: 600px;
  margin: 22px 0 34px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.65;
}

.egeam-step-progress {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 22px;
}

.egeam-step-dot {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  transition: .2s ease;
}

.egeam-step-dot:not(:disabled) {
  cursor: pointer;
}

.egeam-step-dot.is-active {
  border-color: #ffffff;
  background: var(--egeam-accent);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,.78), 0 0 18px rgba(255,255,255,.18);
}

.egeam-step-dot.is-complete {
  border-color: rgba(126,195,255,.75);
  background: rgba(28,126,214,.40);
  color: #fff;
}

.egeam-step-line {
  flex: 1 1 auto;
  min-width: 14px;
  height: 1px;
  background: rgba(255,255,255,.22);
}

.egeam-mobile-progress,
.egeam-progress-bar {
  display: none;
}

.egeam-quote-content {
  min-height: 620px;
  padding: 30px 0 82px;
  background: linear-gradient(#fff, #f8fafc);
}

.egeam-step-heading {
  margin-bottom: 34px;
}

.egeam-step-number {
  margin-bottom: 9px;
  color: var(--egeam-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.egeam-step-heading h2 {
  max-width: 980px;
  margin: 0;
  color: var(--egeam-ink);
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

.egeam-step-heading p {
  margin: 12px 0 0;
  color: var(--egeam-muted);
  font-size: 16px;
}

.egeam-form-step {
  display: none;
  animation: egeamFadeIn .28s ease both;
}

.egeam-form-step.is-current {
  display: block;
}

@keyframes egeamFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.egeam-card-grid {
  display: grid;
  gap: 18px;
}

.egeam-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.egeam-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.egeam-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.egeam-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.egeam-choice-card,
.egeam-color-card {
  position: relative;
  display: flex;
  min-height: 174px;
  padding: 28px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  border: 1px solid var(--egeam-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 42, 69, .05);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
}

.egeam-choice-card:hover,
.egeam-color-card:hover {
  transform: translateY(-2px);
  border-color: #aac8e3;
  box-shadow: var(--egeam-shadow);
}

.egeam-choice-card.is-selected,
.egeam-color-card.is-selected {
  border-color: var(--egeam-primary);
  background: linear-gradient(145deg, var(--egeam-primary), var(--egeam-primary-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(7,89,166,.24);
}

.egeam-choice-card input,
.egeam-color-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.egeam-choice-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--egeam-primary);
}

.egeam-choice-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.egeam-choice-card.is-selected .egeam-choice-icon {
  color: #fff;
}

.egeam-choice-label {
  max-width: 260px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.egeam-choice-check {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--egeam-border);
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.egeam-choice-card.is-selected .egeam-choice-check,
.egeam-color-card.is-selected .egeam-choice-check {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.16);
  color: #fff;
}

.egeam-other-field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--egeam-border);
  border-radius: 12px;
  background: #fff;
}

.egeam-other-field label,
.egeam-field label {
  color: var(--egeam-ink);
  font-size: 15px;
  font-weight: 600;
}

.egeam-other-field input,
.egeam-field input,
.egeam-field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid var(--egeam-border);
  border-radius: 8px;
  background: #fff;
  color: var(--egeam-ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.egeam-other-field input:focus,
.egeam-field input:focus,
.egeam-field select:focus {
  border-color: var(--egeam-primary);
  box-shadow: 0 0 0 4px rgba(7,89,166,.10);
}

.egeam-color-card {
  min-height: 188px;
  padding: 16px;
  overflow: hidden;
}

.egeam-color-swatch {
  display: block;
  width: 100%;
  height: 104px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 9px;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.egeam-color-name {
  font-size: 16px;
  font-weight: 600;
}

.egeam-color-card.is-selected .egeam-color-name {
  color: #fff;
}

.egeam-step-error {
  min-height: 24px;
  margin-top: 18px;
  color: var(--egeam-danger);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.egeam-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.egeam-next-btn,
.egeam-submit-btn,
.egeam-back-btn {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.egeam-next-btn,
.egeam-submit-btn {
  border: 1px solid var(--egeam-primary);
  background: var(--egeam-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7,89,166,.18);
}

.egeam-next-btn:hover,
.egeam-submit-btn:hover {
  border-color: var(--egeam-primary-dark);
  background: var(--egeam-primary-dark);
  transform: translateY(-1px);
}

.egeam-back-btn {
  border: 0;
  background: transparent;
  color: var(--egeam-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.egeam-back-btn:hover {
  color: var(--egeam-primary);
}

.egeam-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.egeam-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.egeam-field.has-error input,
.egeam-field.has-error select {
  border-color: var(--egeam-danger);
}

.egeam-field-error {
  min-height: 18px;
  color: var(--egeam-danger);
  font-size: 13px;
}

.egeam-consents {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--egeam-border);
  border-radius: 12px;
  background: var(--egeam-soft);
}

.egeam-consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  color: #465165;
  font-size: 14px;
  line-height: 1.6;
}

.egeam-consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--egeam-primary);
}

.egeam-consent-row a {
  color: var(--egeam-primary);
  text-decoration: underline;
}

.egeam-consent-row.has-error {
  color: var(--egeam-danger);
}

.egeam-submit-error {
  min-height: 26px;
  margin-top: 18px;
  color: var(--egeam-danger);
  font-weight: 700;
  text-align: center;
}

.egeam-nav-final {
  justify-content: space-between;
}

.egeam-submit-btn {
  position: relative;
  width: min(100%, 420px);
  min-height: 58px;
}

.egeam-btn-spinner {
  display: none;
  width: 21px;
  height: 21px;
  margin-left: 10px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: egeamSpin .8s linear infinite;
}

.is-submitting .egeam-submit-btn {
  pointer-events: none;
  opacity: .85;
}

.is-submitting .egeam-btn-spinner {
  display: inline-block;
}

@keyframes egeamSpin { to { transform: rotate(360deg); } }

.egeam-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.egeam-thank-you {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--egeam-shadow);
  text-align: center;
}

@media (max-width: 1100px) {
  .egeam-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .egeam-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .egeam-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .egeam-quote-container {
    width: min(100% - 28px, 1240px);
  }

  .egeam-quote-hero {
    padding: 44px 0 28px;
  }

  .egeam-quote-hero::before {
    right: 8px;
    bottom: 0;
    width: 150px;
    height: 185px;
    background-size: contain;
    opacity: .98;
  }

  .egeam-quote-hero h1 {
    font-size: 36px;
  }

  .egeam-quote-hero p {
    margin: 18px 0 26px;
    font-size: 16px;
  }

  .egeam-step-progress {
    display: none;
  }

  .egeam-mobile-progress {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 600;
  }

  .egeam-progress-bar {
    display: block;
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
  }

  .egeam-progress-bar span {
    display: block;
    width: 9%;
    height: 100%;
    border-radius: inherit;
    background: #5bb4ff;
    transition: width .25s ease;
  }

  .egeam-quote-content {
    min-height: 540px;
    padding: 24px 0 56px;
  }

  .egeam-step-heading {
    margin-bottom: 24px;
  }

  .egeam-step-heading h2 {
    font-size: 28px;
  }

  .egeam-grid-2,
  .egeam-grid-3,
  .egeam-grid-4,
  .egeam-grid-5,
  .egeam-contact-grid {
    grid-template-columns: 1fr;
  }

  .egeam-card-grid {
    gap: 13px;
  }

  .egeam-choice-card {
    min-height: 112px;
    padding: 18px 50px 18px 18px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .egeam-choice-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  .egeam-choice-label {
    font-size: 16px;
  }

  .egeam-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egeam-color-card {
    min-height: 150px;
  }

  .egeam-color-swatch {
    height: 80px;
  }

  .egeam-other-field {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .egeam-nav,
  .egeam-nav-final {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .egeam-next-btn,
  .egeam-submit-btn,
  .egeam-back-btn {
    width: 100%;
  }

  .egeam-back-btn {
    min-height: 44px;
  }

  .egeam-consents {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .egeam-quote-hero::before {
    right: 6px;
    width: 135px;
    height: 168px;
  }

  .egeam-color-grid {
    grid-template-columns: 1fr;
  }
}

.egeam-inline-success {
  max-width: 760px;
  margin: 20px auto;
  padding: 56px 36px;
  border: 1px solid #cfe8d7;
  border-radius: 18px;
  background: #f4fbf6;
  box-shadow: var(--egeam-shadow);
  text-align: center;
}

.egeam-inline-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--egeam-success);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.egeam-inline-success h2 {
  margin: 0 0 12px;
  color: var(--egeam-ink);
  font-size: clamp(28px, 4vw, 40px);
}

.egeam-inline-success p {
  margin: 0;
  color: var(--egeam-muted);
  font-size: 17px;
  line-height: 1.7;
}


/* Compatibilitate cu tema WoodMart / Elementor pe pagina dedicată formularului. */
body.egeam-has-quote-form .page-title {
  display: none !important;
}

body.egeam-has-quote-form .main-page-wrapper {
  padding-top: 0 !important;
}

body.egeam-has-quote-form .site-content {
  margin-top: 0 !important;
}

.egeam-quote-shell button.egeam-step-dot {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  appearance: none;
  -webkit-appearance: none;
}

/* Ascundere imediată în browserele moderne; clasa JS de mai sus rămâne fallback. */
body:has(.egeam-quote-shell) .page-title {
  display: none !important;
}

body:has(.egeam-quote-shell) .main-page-wrapper {
  padding-top: 0 !important;
}

/* Material profile corner images */
.egeam-choice-icon .egeam-material-corner {
  display: block;
  width: 132px;
  height: 104px;
  max-width: none;
  object-fit: contain;
  border-radius: 0;
}
.egeam-choice-card:has(.egeam-material-corner) .egeam-choice-icon {
  width: 132px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .egeam-choice-icon .egeam-material-corner,
  .egeam-choice-card:has(.egeam-material-corner) .egeam-choice-icon {
    width: 112px;
    height: 90px;
  }
}


/* v1.0.9: profile images with true transparency and lighter typography. */
.egeam-material-corner {
  background: transparent !important;
  box-shadow: none !important;
}

.egeam-choice-card:has(.egeam-material-corner) {
  overflow: hidden;
}


/* v1.0.10: larger, tightly cropped PVC/aluminium corner samples. */
.egeam-choice-card:has(.egeam-material-corner) {
  min-height: 210px;
  gap: 12px;
}
.egeam-choice-card:has(.egeam-material-corner) .egeam-choice-icon {
  width: 190px;
  height: 138px;
}
.egeam-choice-icon .egeam-material-corner {
  width: 190px;
  height: 138px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 767px) {
  .egeam-choice-card:has(.egeam-material-corner) {
    min-height: 190px;
  }
  .egeam-choice-card:has(.egeam-material-corner) .egeam-choice-icon,
  .egeam-choice-icon .egeam-material-corner {
    width: 160px;
    height: 120px;
  }
}


/* v1.0.16: quantity cards use clear typographic badges instead of ambiguous SVG icons. */
.egeam-choice-icon:has(.egeam-quantity-badge) {
  width: auto;
  min-width: 96px;
  height: 62px;
}

.egeam-quantity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 62px;
  padding: 0 18px;
  border: 2px solid currentColor;
  border-radius: 16px;
  font-family: Arial, "DejaVu Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.egeam-choice-card.is-selected .egeam-quantity-badge {
  border-color: rgba(255,255,255,.78);
}

@media (max-width: 767px) {
  .egeam-choice-icon:has(.egeam-quantity-badge),
  .egeam-quantity-badge {
    min-width: 82px;
    height: 54px;
  }

  .egeam-quantity-badge {
    padding: 0 14px;
    border-radius: 14px;
    font-size: 24px;
  }
}

/* v1.0.18: toate butoanele de navigare folosesc albastrul eGeam. */
.egeam-quote-shell .egeam-next-btn,
.egeam-quote-shell .egeam-submit-btn,
.egeam-quote-shell .egeam-back-btn {
  border: 1px solid var(--egeam-primary) !important;
  background: var(--egeam-primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(7,89,166,.18) !important;
}

.egeam-quote-shell .egeam-next-btn:hover,
.egeam-quote-shell .egeam-submit-btn:hover,
.egeam-quote-shell .egeam-back-btn:hover {
  border-color: var(--egeam-primary-dark) !important;
  background: var(--egeam-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.egeam-inline-success a {
  color: var(--egeam-primary);
  font-weight: 700;
  text-decoration: underline;
}

.egeam-inline-success p + p {
  margin-top: 14px;
}


/* v1.0.20: Pasul 1 fără iconuri. */
.egeam-choice-card-no-icon {
  min-height: 112px;
  padding: 24px 48px 24px 24px;
  gap: 0;
}
.egeam-choice-card-no-icon .egeam-choice-label {
  max-width: 100%;
}


/* v1.0.22: imagine dedicată pentru materialul Geam. */
.egeam-choice-icon .egeam-glass-icon {
  width: 170px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(7, 48, 87, .18));
}
@media (max-width: 767px) {
  .egeam-choice-icon .egeam-glass-icon {
    width: 145px;
    height: 110px;
  }
}

/* v1.0.30: iconul Ridicare personală are aceeași amprentă vizuală ca iconul Transport. */
.egeam-choice-icon .egeam-pickup-icon {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
  background: transparent !important;
}
.egeam-choice-card:has(.egeam-pickup-icon) .egeam-choice-icon {
  width: 64px;
  height: 64px;
}
@media (max-width: 767px) {
  .egeam-choice-icon .egeam-pickup-icon,
  .egeam-choice-card:has(.egeam-pickup-icon) .egeam-choice-icon {
    width: 46px;
    height: 46px;
    max-width: 46px;
  }
}


/* Elimină spațiul gol dintre meniul site-ului și formular pe pagina cu widgetul. */
body.egeam-has-quote-form .wd-page-title,
body.egeam-has-quote-form .title-size-default,
body.egeam-has-quote-form .entry-header,
body.egeam-has-quote-form .entry-meta {
  display: none !important;
}

body.egeam-has-quote-form .main-page-wrapper,
body.egeam-has-quote-form .content-layout-wrapper,
body.egeam-has-quote-form .wd-content-layout,
body.egeam-has-quote-form .site-content,
body.egeam-has-quote-form .entry-content,
body.egeam-has-quote-form .elementor-widget-container,
body.egeam-has-quote-form .elementor-section-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.egeam-has-quote-form .egeam-quote-shell,
body.egeam-has-quote-form .egeam-quote-hero {
  margin-top: 0 !important;
}

body.egeam-has-quote-form .elementor-widget-egeam_quote_form_widget,
body.egeam-has-quote-form .elementor-widget-shortcode {
  margin-top: 0 !important;
}

/* Fallback modern când clasa body nu este prezentă încă. */
body:has(.egeam-quote-shell) .wd-page-title,
body:has(.egeam-quote-shell) .title-size-default,
body:has(.egeam-quote-shell) .entry-header,
body:has(.egeam-quote-shell) .entry-meta {
  display: none !important;
}

body:has(.egeam-quote-shell) .content-layout-wrapper,
body:has(.egeam-quote-shell) .wd-content-layout,
body:has(.egeam-quote-shell) .entry-content,
body:has(.egeam-quote-shell) .elementor-widget-container,
body:has(.egeam-quote-shell) .elementor-section-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* Elimină și spațiul de jos rămas între widget și footer. */
body.egeam-has-quote-form .main-page-wrapper,
body.egeam-has-quote-form .content-layout-wrapper,
body.egeam-has-quote-form .wd-content-layout,
body.egeam-has-quote-form .site-content,
body.egeam-has-quote-form .entry-content,
body.egeam-has-quote-form .elementor-widget-container,
body.egeam-has-quote-form .elementor-section-wrap,
body.egeam-has-quote-form .elementor-section,
body.egeam-has-quote-form .elementor-container,
body.egeam-has-quote-form .elementor-column,
body.egeam-has-quote-form .elementor-widget-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.egeam-has-quote-form .egeam-quote-shell,
body.egeam-has-quote-form .egeam-quote-form,
body.egeam-has-quote-form .elementor-widget-egeam_quote_form_widget,
body.egeam-has-quote-form .elementor-widget-shortcode {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Păstrează înălțimea de jos a antetului; nu lăsa regulile Elementor să o anuleze după inițializarea JS. */
body.egeam-has-quote-form .egeam-quote-hero {
  margin-bottom: 0 !important;
  padding-bottom: 34px !important;
}

@media (max-width: 760px) {
  body.egeam-has-quote-form .egeam-quote-hero {
    padding-bottom: 28px !important;
  }
}

body.egeam-has-quote-form .egeam-quote-shell > *:last-child,
body.egeam-has-quote-form .egeam-quote-form > *:last-child {
  margin-bottom: 0 !important;
}

/* Fallback modern pentru containerele Elementor/WoodMart care includ formularul. */
body:has(.egeam-quote-shell) .main-page-wrapper,
body:has(.egeam-quote-shell) .content-layout-wrapper,
body:has(.egeam-quote-shell) .wd-content-layout,
body:has(.egeam-quote-shell) .site-content,
body:has(.egeam-quote-shell) .entry-content,
body:has(.egeam-quote-shell) .elementor-widget-container,
body:has(.egeam-quote-shell) .elementor-section-wrap,
body:has(.egeam-quote-shell) .elementor-section,
body:has(.egeam-quote-shell) .elementor-container,
body:has(.egeam-quote-shell) .elementor-column,
body:has(.egeam-quote-shell) .elementor-widget-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body:has(.egeam-quote-shell) .elementor-top-section:has(.egeam-quote-shell),
body:has(.egeam-quote-shell) .elementor-section:has(.egeam-quote-shell),
body:has(.egeam-quote-shell) .elementor-column:has(.egeam-quote-shell) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
