/* Majestic Glass · architectural enquiry panel · version 1.1.0
 * A continuous light surface; existing words, links, fields and handlers stay.
 * Shared form styles cover the live inline widget, drawer and isolated embed.
 */

#mg30-quote-tab {
  position: fixed;
  z-index: 998;
  inset: auto 24px 24px auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(112,143,98,.48);
  border-radius: 9px;
  background: linear-gradient(125deg, #fff, #f2f7ed);
  color: #193d23;
  box-shadow: inset 0 1px #fff, 0 6px 24px rgba(12,33,19,.18);
  font: 700 14px/1.35 Inter, Arial, sans-serif;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#mg30-quote-tab:hover {
  color: #193d23;
  border-color: #527e43;
  box-shadow: inset 0 1px #fff, 0 8px 28px rgba(12,33,19,.22);
  transform: translateY(-2px);
}
#mg30-quote-tab:focus-visible {
  outline: 3px solid #6b984f;
  outline-offset: 4px;
}
#mg30-quote-tab .mg30-quote-tab-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #cadbc0;
  border-radius: 5px;
  background: linear-gradient(135deg, #f7fbf2, #dfead5);
  color: #426b35;
}
#mg30-quote-tab .mg30-quote-tab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
#mg30-quote-tab .mg30-quote-tab-arrow,
#mg30-quote-tab .mg30-quote-tab-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #426b35;
}
body:has(#mg30-quote-dialog[open]) #mg30-quote-tab {
  visibility: hidden;
  pointer-events: none;
}

/* The full-viewport transparent dialog remains the outside-click target. */
#mg30-quote-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  color: #193021;
  font-family: Inter, Arial, sans-serif;
}
#mg30-quote-dialog[open] {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
}
#mg30-quote-dialog::backdrop {
  background: rgba(9,24,16,.57);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: background-color 220ms ease-out, backdrop-filter 220ms ease-out;
}
#mg30-quote-dialog:not(.is-visible)::backdrop {
  background: rgba(9,24,16,0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}
#mg30-quote-dialog,
#mg30-quote-dialog *,
#mg30-quote-dialog *::before,
#mg30-quote-dialog *::after {
  box-sizing: border-box;
}
#mg30-quote-dialog .mg30-quote-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  height: auto;
  min-height: 0;
  max-height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(242,250,234,.9);
  border-radius: 16px;
  background: linear-gradient(137deg, #fff 0%, #f8faf5 62%, #f0f5e9 100%);
  box-shadow: 0 25px 90px rgba(5,19,10,.3), inset 0 0 0 1px rgba(145,175,128,.12);
  transform: translate3d(calc(100% + 24px), 0, 0);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
#mg30-quote-dialog .mg30-quote-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(90deg, #709a59, #d8e7cb 42%, rgba(247,252,240,.75));
  opacity: .65;
  pointer-events: none;
}
#mg30-quote-dialog.is-visible .mg30-quote-panel {
  transform: translate3d(0, 0, 0);
}

/* Open typography on one continuous surface, with glass detail at its edge. */
#mg30-quote-dialog .mg30-quote-head {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  padding: 38px 40px 28px;
  border: 0;
  background: transparent;
  color: #193021;
}
#mg30-quote-dialog .mg30-quote-head > :is(p,h2) {
  position: relative;
  z-index: 1;
}
#mg30-quote-dialog .mg30-quote-kicker {
  max-width: calc(100% - 52px);
  margin: 0 0 23px;
  padding: 0;
  color: #59754d;
  font: 650 10px/1.6 Inter, Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#mg30-quote-dialog #mg30-quote-title {
  width: min(100%, 10.4ch);
  max-width: calc(100% - 32px);
  margin: 0 0 17px;
  padding: 0;
  color: #193021;
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-size: 48px;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.055em;
  text-transform: none;
  text-wrap: balance;
}
#mg30-quote-dialog #mg30-quote-title:focus { outline: none; }
#mg30-quote-dialog .mg30-quote-head > p:not(.mg30-quote-kicker) {
  max-width: 34ch;
  margin: 0;
  padding: 0;
  color: #586b54;
  font: 400 15px/1.65 Inter, Arial, sans-serif;
}
#mg30-quote-dialog .mg30-quote-glass {
  position: absolute;
  z-index: 0;
  top: -35px;
  right: -58px;
  width: 330px;
  height: 330px;
  overflow: hidden;
  opacity: .5;
  pointer-events: none;
  background-image: var(--mg31-quote-art, var(--mg30-architecture-light, none));
  background-repeat: no-repeat;
  background-size: 850px auto;
  background-position: right -135px top -120px;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 52%);
}
#mg30-quote-dialog .mg30-quote-glass span { display: none; }
#mg30-quote-dialog .mg30-quote-glass::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  opacity: 0;
  transform: skewX(-19deg);
}
#mg30-quote-dialog.is-visible .mg30-quote-glass::after {
  animation: mg31-quote-reflection 900ms ease-out 180ms 1 both;
}
@keyframes mg31-quote-reflection {
  0% { transform: translateX(0) skewX(-19deg); opacity: 0; }
  20% { opacity: .5; }
  100% { transform: translateX(420%) skewX(-19deg); opacity: 0; }
}
#mg30-quote-dialog .mg30-quote-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd9c2;
  border-radius: 7px;
  background: rgba(255,255,255,.8);
  color: #25472d;
  box-shadow: inset 0 1px #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
#mg30-quote-dialog .mg30-quote-close:hover {
  background: #edf4e6;
  border-color: #7f9b6f;
  color: #25472d;
}
#mg30-quote-dialog .mg30-quote-close:focus-visible {
  outline: 3px solid #6b984f;
  outline-offset: 3px;
}
#mg30-quote-dialog .mg30-quote-scroll {
  display: flex;
  flex-direction: column;
  gap: 27px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 2px 40px calc(29px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #b4c5a9 transparent;
  background: transparent;
}
#mg30-quote-dialog .mg30-quote-scroll > #mg30-quote-form-slot {
  flex: 0 0 auto;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#mg30-quote-dialog .mg30-quote-help {
  flex: 0 0 auto;
  margin: 0;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid #d1ddc8;
  text-align: left;
}
#mg30-quote-dialog .mg30-quote-help a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #24482b;
  text-decoration: none;
}
#mg30-quote-dialog .mg30-quote-help a > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}
#mg30-quote-dialog .mg30-quote-help-label {
  color: #64785c;
  font: 400 13px/1.5 Inter, Arial, sans-serif;
}
#mg30-quote-dialog .mg30-quote-help strong {
  color: #24482b;
  font: 650 20px/1.35 "Plus Jakarta Sans", Inter, Arial, sans-serif;
  letter-spacing: -.025em;
}
#mg30-quote-dialog .mg30-quote-help svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #668d53;
}
#mg30-quote-dialog .mg30-quote-help a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
#mg30-quote-dialog .mg30-quote-help a:focus-visible {
  outline: 2px solid #557e41;
  outline-offset: 5px;
}

/* Shared form presentation: inline widgets, drawer and isolated embed.
 * The same scoped rules apply to the actual existing Elementor forms.
 * No display/visibility rules are applied to steps, fields or action buttons.
 */
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #17251c;
  font-family: Inter, Arial, sans-serif;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-form {
  width: 100%;
  margin: 0;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-form-fields-wrapper {
  margin-inline: 0 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-field-group {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 17px !important;
  padding-inline: 0 !important;
  padding-bottom: 0 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-field-label {
  margin-bottom: 8px !important;
  padding: 0 !important;
  color: #344b3c !important;
  font: 600 13px/1.5 Inter, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(input.elementor-field-textual, textarea.elementor-field-textual, select.elementor-field-textual) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  margin: 0;
  padding: 13px 14px !important;
  border: 1px solid #b9cbb4 !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  color: #17251c !important;
  -webkit-text-fill-color: #17251c !important;
  font: 400 16px/1.5 Inter, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: 0 2px 5px rgba(20,37,27,.025) !important;
  scroll-margin-block: 24px !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) textarea.elementor-field-textual {
  min-height: 112px !important;
  resize: vertical;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(input.elementor-field-textual, textarea.elementor-field-textual)::placeholder {
  color: #788671 !important;
  -webkit-text-fill-color: #788671 !important;
  opacity: 1 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(input.elementor-field-textual, textarea.elementor-field-textual, select.elementor-field-textual):focus {
  border-color: #557e41 !important;
  outline: 2px solid #557e41 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(85,126,65,.07) !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-select-wrapper::before {
  content: none !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .select-caret-down-wrapper {
  display: none !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) select.elementor-field-textual:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  min-height: 60px !important;
  padding-right: 46px !important;
  border-color: #a7bea0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23367823' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px 16px !important;
  cursor: pointer;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) select.elementor-field-textual option {
  background: #fff;
  color: #17251c;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) input[type="file"] {
  width: 100% !important;
  min-width: 0;
  min-height: 54px !important;
  padding: 8px !important;
  border: 1px solid #b9cbb4 !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #52634a !important;
  font: 400 12px/1.5 Inter, Arial, sans-serif !important;
  scroll-margin-block: 24px !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px !important;
  padding: 8px 12px !important;
  border: 1px solid #c7d8bb !important;
  border-radius: 5px !important;
  background: #edf4e7 !important;
  color: #285e1b !important;
  font: 600 12px/1.4 Inter, Arial, sans-serif !important;
  cursor: pointer;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) input[type="file"]:focus-visible {
  outline: 2px solid #557e41;
  outline-offset: 3px;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(input[type="radio"], input[type="checkbox"]) {
  accent-color: #367823;
  scroll-margin-block: 24px !important;
}

/* The native step state appears as one integrated architectural progress rail. */
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 14px;
  margin: 0 0 29px !important;
  padding: 0;
  border: 0;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator {
  display: flex;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid #d8e2d1;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator__separator { display: none !important; }
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator__number {
  width: auto !important;
  height: auto !important;
  min-width: 17px;
  min-height: 0;
  flex: 0 0 17px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #7b8c72 !important;
  box-shadow: none !important;
  font: 600 15px/1.3 Inter, Arial, sans-serif !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator__label {
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  color: #738269 !important;
  font: 600 10px/1.4 Inter, Arial, sans-serif !important;
  letter-spacing: .025em !important;
  text-align: left;
  text-transform: none !important;
  white-space: normal;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator--state-active { border-bottom-color: #285e32; }
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator--state-completed { border-bottom-color: #8dab77; }
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator--state-active :is(.e-form__indicators__indicator__number,.e-form__indicators__indicator__label) { color: #24482b !important; font-weight: 700 !important; }
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator--state-completed :is(.e-form__indicators__indicator__number,.e-form__indicators__indicator__label) { color: #597c46 !important; }
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator:first-child .e-form__indicators__indicator__label:empty::before { content: "YOUR SERVICE"; }

/* Retain Elementor's own step and action visibility, including its honeypot. */
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons {
  flex-direction: row !important;
  gap: 12px !important;
  margin-top: 6px;
  margin-bottom: 0 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons__wrapper {
  min-width: 0;
  flex: 1 1 0;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(.elementor-button[type="submit"], .e-form__buttons__wrapper__button-next, .e-form__buttons__wrapper__button-previous) {
  width: 100% !important;
  min-height: 56px !important;
  padding: 14px 17px !important;
  border: 1px solid #285e32 !important;
  border-radius: 5px !important;
  background: #285e32 !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(31,68,22,.1) !important;
  font: 650 14px/1.45 Inter, Arial, sans-serif !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  text-decoration: none !important;
  scroll-margin-block: 24px !important;
  transform: none !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(.elementor-button[type="submit"], .e-form__buttons__wrapper__button-next):hover {
  background: #2b621c !important;
  border-color: #2b621c !important;
  box-shadow: 0 5px 15px rgba(31,68,22,.14) !important;
  transform: none !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) button.elementor-button.e-form__buttons__wrapper__button-previous {
  background: transparent !important;
  border-color: #bfcdb6 !important;
  color: #344b3c !important;
  box-shadow: none !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) button.elementor-button.e-form__buttons__wrapper__button-previous:hover {
  background: #eaf1e3 !important;
  border-color: #9db48f !important;
  color: #253e2c !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-button:focus-visible {
  outline: 2px solid #285e1b !important;
  outline-offset: 3px;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-button:disabled {
  opacity: .58;
  cursor: not-allowed;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #d2dfca;
  border-radius: 7px;
  font: 400 14px/1.65 Inter, Arial, sans-serif;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-message-success {
  background: #edf5e7;
  color: #285e1b !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-message-danger {
  border-color: #dfbcb3;
  background: #fff6f2;
  color: #9c3825 !important;
}
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-error,
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) :is(input.elementor-field-textual,textarea.elementor-field-textual,select.elementor-field-textual).elementor-error {
  border-color: #ae4937 !important;
}

/* Iframe fallback: parent can replace the initial height after a size message. */
#mg30-quote-dialog #mg30-quote-frame {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 680px;
  min-height: 400px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
html:has(> body.mg30-quote-embed) {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.mg30-quote-embed {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #17251c;
  font-family: Inter, Arial, sans-serif;
}
body.mg30-quote-embed :is(.mg-mobile-enquiry-bar, .mg30-quote-tab, #mg30-quote-tab) {
  display: none !important;
}
body.mg30-quote-embed #mg30-quote-form-slot,
body.mg30-quote-embed #mg30-quote-form-slot *,
body.mg30-quote-embed #mg30-quote-form-slot *::before,
body.mg30-quote-embed #mg30-quote-form-slot *::after {
  box-sizing: border-box;
}

/* Required fields remain required; their static labels use a quiet cue. */
html:root body .majestic-global-form .elementor-field-required .elementor-field-label::after {
  content: "Required";
  color: #596d50 !important;
  margin-left: 7px;
  padding-left: 0 !important;
  font: 500 10px/1.4 Inter, Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}
html:root body .majestic-global-form .elementor-field-group-field_d366a34 .elementor-field-label::after {
  content: none;
}
/* Mobile uses the existing quote bar; a fallback trigger clears its safe area. */
@media (max-width: 1024px) {
  #mg30-quote-tab {
    inset: auto 16px calc(18px + env(safe-area-inset-bottom, 0px)) auto;
    min-height: 52px;
  }
  body.mg30-has-mobile-quote #mg30-quote-tab { display: none !important; }
}
@media (max-width: 600px) {
  #mg30-quote-dialog[open] { padding: 0; align-items: stretch; }
  #mg30-quote-dialog .mg30-quote-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
  #mg30-quote-dialog .mg30-quote-panel::before { width: 3px; opacity: .45; }
  #mg30-quote-dialog .mg30-quote-head { padding: 26px 24px 24px; }
  #mg30-quote-dialog .mg30-quote-kicker {
    margin-bottom: 19px;
    font-size: 9px;
    letter-spacing: .13em;
  }
  #mg30-quote-dialog #mg30-quote-title {
    max-width: calc(100% - 30px);
    font-size: 37px;
    margin-bottom: 13px;
    line-height: 1.08;
  }
  #mg30-quote-dialog .mg30-quote-head > p:not(.mg30-quote-kicker) { font-size: 14px; }
  #mg30-quote-dialog .mg30-quote-glass { top: -30px; right: -98px; opacity: .38; }
  #mg30-quote-dialog .mg30-quote-close { top: 15px; right: 15px; }
  #mg30-quote-dialog .mg30-quote-scroll {
    gap: 24px;
    padding: 0 24px calc(23px + env(safe-area-inset-bottom, 0px));
  }
  #mg30-quote-dialog .mg30-quote-help { margin-top: auto; padding-top: 15px; }
  #mg30-quote-dialog .mg30-quote-help a > span { display: block; }
  #mg30-quote-dialog .mg30-quote-help-label { display: block; margin-bottom: 4px; font-size: 12px; }
  #mg30-quote-dialog .mg30-quote-help strong { font-size: 19px; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators { gap: 10px; margin-bottom: 25px !important; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator { gap: 6px; padding-bottom: 12px; }
}
@media (max-width: 360px) {
  #mg30-quote-dialog .mg30-quote-head { padding: 23px 20px 22px; }
  #mg30-quote-dialog #mg30-quote-title { font-size: 34px; }
  #mg30-quote-dialog .mg30-quote-scroll { padding-inline: 20px; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons { gap: 9px !important; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators { gap: 8px; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator { gap: 5px; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator__label { font-size: 9px !important; }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__indicators__indicator__number { font-size: 14px !important; flex-basis: 14px; min-width: 14px; }
}
@media (max-height: 620px) {
  #mg30-quote-dialog .mg30-quote-head { padding-top: 21px; padding-bottom: 20px; }
  #mg30-quote-dialog .mg30-quote-kicker { margin-bottom: 13px; }
  #mg30-quote-dialog #mg30-quote-title { width: auto; font-size: 31px; margin-bottom: 10px; }
  #mg30-quote-dialog .mg30-quote-head > p:not(.mg30-quote-kicker) { font-size: 13px; }
}

/* Final-step actions respond to the form width, including narrow desktop cards.
 * The preceding Previous/Next row and native submit behaviour are unchanged.
 */
:is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .elementor-form {
  container-type: inline-size;
  container-name: mg30-enquiry;
}
@container mg30-enquiry (max-width: 340px) {
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) > .e-form__buttons__wrapper {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) .e-form__buttons__wrapper__button-previous {
    width: auto !important;
    min-width: 96px;
    min-height: 44px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] {
    width: 100% !important;
    min-height: 54px !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] .elementor-button-icon {
    display: none !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] .elementor-button-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 600px) {
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) > .e-form__buttons__wrapper {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) .e-form__buttons__wrapper__button-previous {
    width: auto !important;
    min-width: 96px;
    min-height: 44px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] {
    width: 100% !important;
    min-height: 54px !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: normal;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] .elementor-button-icon {
    display: none !important;
  }
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) .e-form__buttons:has(> .elementor-field-type-submit) button[type="submit"] .elementor-button-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
  }
}

@media (prefers-reduced-motion: reduce) {
  #mg30-quote-tab,
  #mg30-quote-dialog::backdrop,
  #mg30-quote-dialog .mg30-quote-panel,
  #mg30-quote-dialog .mg30-quote-close,
  :is(#mg30-quote-dialog #mg30-quote-form-slot, body.mg30-quote-embed #mg30-quote-form-slot, html:root body .majestic-global-form.elementor-widget-form) * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  #mg30-quote-dialog .mg30-quote-glass::after { animation: none !important; }
}
@media print {
  #mg30-quote-tab, #mg30-quote-dialog, #mg30-quote-dialog::backdrop { display: none !important; }
}
