/**
 * Lead Form Block Section Styles
 * Matches live Morae 50/50 split (Dark left content + Natural right contact form)
 */

:root {
  /* Lead Form & Testimonial Slider Tokens */
  --morae-lead-quote-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --morae-lead-quote-line-height: 1.5;
  --morae-lead-quote-color: var(--morae-natural-100, #f5f2ef);
  --morae-lead-author-size: clamp(0.9375rem, 0.90009rem + 0.15962vw, 1.04375rem);
  --morae-lead-author-line-height: 1.5;
  --morae-lead-author-color: #d0c9c3;
  --morae-lead-company-size: clamp(0.8125rem, 0.7866rem + 0.1105vw, 0.868rem);
  --morae-lead-company-line-height: 1.5;
  --morae-lead-company-color: #d0c9c3;
  --morae-lead-slider-border-color: var(--morae-primary, #e03100);
  --morae-lead-slider-btn-size: 48px;
  --morae-lead-slider-btn-border: #424242;
  --morae-lead-section-pt: clamp(4.375rem, 7.57vw, 6.8125rem);
  --morae-lead-title-size: clamp(1.625rem, 1.3660220994475138rem + 1.1049723756906076vw, 2.25rem);
  --morae-lead-title-line-height: clamp(2.25rem, 1.8874309392265194rem + 1.5469613259668509vw, 3.125rem);
  --morae-font-size-display-xl-lead: var(--morae-lead-title-size);
}

.morae-lead-form-section {
  width: 100%;
  min-height: calc(100vh - 65px);
  position: relative;
  box-sizing: border-box;
  background: linear-gradient(to right, var(--morae-bg-dark, #0f0f0f) 50%, var(--morae-bg-natural, #f5f2ef) 50%);
}

.morae-lead-form-container {
  max-width: 1920px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .morae-lead-form-section {
    background: var(--morae-bg-dark, #0f0f0f);
  }

  .morae-lead-form-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Left Column (Dark Side)
   ========================================================================== */
.morae-lead-form-section .left-content {
  background-color: var(--morae-bg-dark, #0f0f0f);
  color: var(--morae-text-dark, #f5f4f0);
  padding: var(--morae-lead-section-pt, clamp(4.375rem, 6.8vw, 7.6875rem)) var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) clamp(4rem, 6vw, 7.6875rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

@media (max-width: 767.98px) {
  .morae-lead-form-section .left-content {
    padding: clamp(3rem, 5.5vw, 4.375rem) var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) clamp(2.5rem, 4vw, 3.5rem);
  }
}

/* Brand Logo on Single Lead Form pages */
.morae-lead-form-section .morae-brand {
  display: inline-block;
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
  text-decoration: none;
}

.morae-lead-form-section .morae-logo {
  height: clamp(32px, 3.5vw, 42px);
  width: auto;
  max-width: 180px;
  display: block;
}

/* Signature Topline in Orange (matches live) */
.morae-lead-topline,
h1.morae-lead-topline {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-font-size-topline, clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem)) !important;
  line-height: var(--morae-line-height-topline, 1.5) !important;
  font-weight: var(--morae-font-weight-topline, 500) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--morae-topline-color, var(--morae-primary, #e03100)) !important;
  margin: 0;
}

.morae-lead-title {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-lead-title-size, clamp(1.625rem, 1.3660220994475138rem + 1.1049723756906076vw, 2.25rem));
  line-height: var(--morae-lead-title-line-height, clamp(2.25rem, 1.8874309392265194rem + 1.5469613259668509vw, 3.125rem));
  font-weight: 400;
  color: var(--morae-title-color-dark, #f5f2ef);
  margin: 0.4em 0 0 0;
  text-wrap: normal;
}

h1.morae-lead-title,
.morae-lead-title.display-2xl {
  font-size: var(--morae-font-size-display-2xl, clamp(1.9375rem, 1.5231rem + 1.768vw, 2.9375rem));
  line-height: var(--morae-line-height-display-2xl, clamp(2.5rem, 1.9302rem + 2.431vw, 3.875rem));
}

.morae-lead-text {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  margin-top: var(--spacing-xl, clamp(1.75rem, 1.4651243093922652rem + 1.2154696132596685vw, 2.4375rem));

  margin-bottom: 0;
}

.morae-lead-text p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #f5f2ef;
  margin: 0;
}

.morae-lead-text p strong {
  color: #f5f2ef;
  font-weight: 700;
  font-size: 1.25rem;
}

.morae-lead-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, clamp(1.0625rem, 1.0366022099447514rem + .11049723756906078vw, 1.125rem));
}

.morae-lead-text ul li {
  position: relative;
  list-style: none;
  padding-left: 2.2em;
  font-size: var(--morae-lead-author-size, 1.04375rem);
  line-height: 1.5;
  color: #d0c9c3;
}

.morae-lead-text ul li p {
  margin: 0;
  display: inline;
}

.morae-lead-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2212%22%20fill%3D%22%23ff3600%22%2F%3E%3Cpath%20d%3D%22M7%2012L10.5%2015.5L17%209%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Testimonial Quote / Slider in Left Column (Matches Live Morae) */
.morae-lead-testimonials {
  font-size: var(--morae-lead-quote-size, 1.25rem);
  /* 20px */
  margin-top: clamp(2.5rem, 5.8vw, 5.8125rem);
  /* mt-4xl ~93px */
  margin-bottom: 0;
  margin-left: -0.5em;
  /* -10px */
  position: relative;
  width: 100%;
  border-left: 2px solid var(--morae-lead-slider-border-color, #e03100);
  padding-left: calc(1.6em);
  /* 32px */
  box-sizing: border-box;
}

.morae-lead-testimonials-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.3s ease;
}

.morae-lead-testimonials-track {
  display: flex;
  width: 100%;
  align-items: flex-start;
  will-change: transform;
}

.morae-lead-testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: block;
  pointer-events: none;
}

.morae-lead-testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.morae-lead-testimonial-figure {
  margin: 0;
  padding: 0 0 0 0.5em;
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  /* space-y-[1.6em] = 32px */
  box-sizing: border-box;
}

.morae-lead-testimonial-figure blockquote {
  margin: 0;
  padding: 0;
}

.morae-lead-testimonial-quote {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-lead-quote-size, 1.25rem);
  /* 20px */
  line-height: var(--morae-lead-quote-line-height, 1.5);
  /* 30px */
  font-weight: 400;
  color: var(--morae-lead-quote-color, #f5f2ef);
  margin: 0;
  position: relative;
  quotes: "“" "”";
}

.morae-lead-testimonial-quote::before {
  content: open-quote;
  margin-left: -0.5em;
}

.morae-lead-testimonial-quote::after {
  content: close-quote;
}

.morae-lead-testimonial-caption {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.morae-lead-author-name {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-lead-author-size, 1.04375rem);
  /* 16.7px */
  line-height: var(--morae-lead-author-line-height, 1.5);
  /* 25.05px */
  font-weight: 400;
  color: var(--morae-lead-author-color, #d0c9c3);
  margin: 0;
}

.morae-lead-author-designation {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-lead-company-size, 0.868rem);
  /* 13.89px */
  line-height: var(--morae-lead-company-line-height, 1.5);
  /* 20.835px */
  font-weight: 400;
  color: var(--morae-lead-company-color, #d0c9c3);
  margin: 0;
}

/* Navigation Controls (Circular buttons matching Live Morae) */
.morae-lead-testimonial-nav {
  display: flex;
  align-items: center;
  gap: 0.4em;
  /* 8px */
  margin-top: clamp(2rem, 2.44rem, 2.44rem);
  /* mt-xl ~39px */
  margin-left: 0.5em;
  /* 10px */
}

.morae-lead-testimonial-btn {
  width: var(--morae-lead-slider-btn-size, 48px);
  height: var(--morae-lead-slider-btn-size, 48px);
  border-radius: 9999px;
  border: 2px solid var(--morae-lead-slider-btn-border, #424242);
  background-color: transparent;
  color: var(--morae-lead-slider-btn-color, #424242);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.1s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.1s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  pointer-events: auto;
}

.morae-lead-testimonial-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

/* Hover effect on ALL buttons (matches reference hover:bg-minimal hover:border-minimal hover:text-icon) */
.morae-lead-testimonial-btn:hover {
  background-color: var(--morae-charcoal-700, #262626) !important;
  border-color: var(--morae-charcoal-700, #262626) !important;
}

/* Interactive state (when multiple slides) */
.morae-lead-testimonial-btn:not(:disabled):not(.is-disabled) {
  color: var(--morae-lead-author-color, #d0c9c3);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.morae-lead-testimonial-btn:not(:disabled):not(.is-disabled):hover {
  color: #ffffff;
}

/* Disabled state */
.morae-lead-testimonial-btn:disabled,
.morae-lead-testimonial-btn.is-disabled {
  color: #424242;
  border-color: #424242;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.morae-lead-testimonial-btn:disabled:hover,
.morae-lead-testimonial-btn.is-disabled:hover {
  background-color: var(--morae-charcoal-700, #262626) !important;
  border-color: var(--morae-charcoal-700, #262626) !important;
  color: var(--morae-lead-author-color, #d0c9c3) !important;
}

/* Badge in Left Column */
.morae-lead-badge {
  margin-top: clamp(2rem, 3.25rem, 3.25rem);
  /* mt-2xl ~52px */
  width: 100%;
  /* max-width: 560px; */
  aspect-ratio: 138 / 97;
  position: relative;
}

.morae-lead-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Contact Page 2x2 Grid & Action Links (L-Shaped Borders matching Image 2)
   ========================================================================== */
.morae-lead-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 2.5vw, 1.75rem);
  row-gap: clamp(1.75rem, 1.75rem, 1.75rem);
  margin-top: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-bottom: 0 !important;
  border: none !important;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .morae-lead-contact-grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
}

.morae-lead-contact-item {
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: none !important;
  border-right: none !important;
  padding: clamp(0.75rem, 1.7vw, 1.7vw) clamp(0.75rem,1.7vw,1.7vw) clamp(1.25rem, 1.75vw, 1.5rem) clamp(1rem, 1.5vw, 1.5rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

.morae-lead-contact-title {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: clamp(1rem, 1.1111vw, 1.333rem) !important;
  font-weight: 500 !important;
  color: #ffffff;
  margin: 0 0 0.719em 0;
  line-height: 1.5 !important;
}

.morae-lead-contact-content {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: clamp(0.9375rem, 1.15972vw, 1.39rem) !important;
  line-height: 1.5 !important;
  color: rgb(208, 201, 195) !important;
  margin: 0;
}

.morae-lead-contact-content p,
.morae-lead-contact-content a {
  font-size: clamp(0.9375rem, 1.15972vw, 1.39rem) !important;
  line-height: 1.5 !important;
}

.morae-lead-contact-content p {
  margin: 0 0 0.35rem 0;
}

.morae-lead-contact-content p:last-child {
  margin-bottom: 0;
}

.morae-lead-contact-content a {
  color: #f5f4f0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.morae-lead-contact-content a:hover {
  color: var(--morae-primary, #ff3600) !important;
  text-decoration: underline !important;
}

.morae-lead-contact-action {
  margin-top: auto;
  padding-top: 1rem;
}

.morae-lead-contact-action a,
.morae-lead-contact-action .morae-btn {
  color: #ffffff !important;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent !important;
  border: none !important;
  padding: 10px !important;
  transition: all 0.2s ease;
}

.morae-lead-contact-action a:hover,
.morae-lead-contact-action .morae-btn:hover {
  /* text-decoration: underline !important; */
  color: #ffffff !important;
}

.morae-lead-contact-action svg {
  width: 14px;
  height: 14px;
  fill: var(--morae-primary, #ff3600) !important;
  transition: transform 0.2s ease;
}

.morae-lead-contact-action a:hover svg,
.morae-lead-contact-action .morae-btn:hover svg {
  transform: translateX(4px);
}

.morae-lead-contact-actions-wrap {
  margin-top: clamp(1.5rem, 2vw, 2rem);
}

.morae-lead-contact-actions-wrap .morae-btn-primary,
.morae-lead-contact-actions-wrap .morae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  background-color: var(--morae-btn-primary-bg, #ff3600) !important;
  color: #ffffff !important;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--morae-btn-primary-bg, #ff3600) !important;
  transition: all 0.2s ease;
}

.morae-lead-contact-actions-wrap .morae-btn-primary:hover,
.morae-lead-contact-actions-wrap .morae-btn:hover {
  background-color: #e13000 !important;
  border-color: #e13000 !important;
}

.morae-lead-contact-actions-wrap svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.morae-lead-contact-actions-wrap a:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Right Column (Light/Natural Form Side)
   ========================================================================== */
.morae-lead-form-section .right-content {
  background-color: var(--morae-bg-natural, #f5f2ef);
  color: var(--morae-charcoal-900, #262626);
  padding: var(--morae-lead-section-pt, clamp(4.375rem, 6.8vw, 7.6875rem)) var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) clamp(4rem, 6vw, 7.6875rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 767.98px) {
  .morae-lead-form-section .right-content {
    padding: clamp(2.5rem, 5vw, 4rem) var(--morae-side-padding, clamp(1rem, -0.408rem + 6.009vw, 5rem)) clamp(2.5rem, 4vw, 3.5rem);
  }
}

.morae-lead-header {
  margin-bottom: clamp(1.375rem, 1.528vw, 1.833rem);
}

.morae-lead-form-heading {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: var(--morae-font-size-display-md, clamp(1.625rem, 1.85417vw, 2.222rem));
  line-height: 1.5;
  font-weight: 400;
  color: #262626;
  margin: 0;
}

.morae-lead-form-subline {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  line-height: 1.5;
  font-size: var(--morae-lead-author-size, clamp(0.9375rem, 1.15972vw, 1.39rem));
  margin-top: clamp(0.75rem, 1.04167vw, 1.25rem);
  margin-bottom: 0;
  color: #262626;
}

/* Contact Form 7 Layout & Grid */
.morae-lead-form-wrap .wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 1.528vw, 1.833rem);
  width: 100%;
}

.morae-lead-form-wrap .contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 1.528vw, 1.833rem);
  width: 100%;
}

@media (max-width: 640px) {
  .morae-lead-form-wrap .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

.morae-lead-form-wrap .form-col {
  width: 100%;
}

.morae-lead-form-wrap .form-col p,
.morae-lead-form-wrap .form-col-full p {
  margin: 0;
}

/* Full Width Rows (Email, Message, Privacy, Button) */
.morae-lead-form-wrap .form-col-full {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Floating Label Wrap */
.morae-floating-wrap {
  position: relative;
  background-color: white;
  border-bottom: 1px solid #8c8c8c;
  transition: background-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.morae-floating-wrap {
  min-height: 58px;
}

.morae-floating-wrap::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #262626;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.morae-floating-wrap.is-focused::after {
  transform: scaleX(1);
}

.morae-floating-wrap.is-focused {
  background-color: white;
}

.morae-floating-label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 0.9375rem;
  color: #6e6e6e;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 2rem);
  z-index: 2;
}

.morae-floating-wrap.is-active .morae-floating-label,
.morae-floating-wrap.is-focused .morae-floating-label {
  top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #595959;
}

/* .morae-floating-wrap.is-focused .morae-floating-label {
  color: var(--morae-primary, #ff3600);
} */

/* Input Fields */
.morae-lead-form-wrap input[type="text"],
.morae-lead-form-wrap input[type="email"],
.morae-lead-form-wrap input[type="tel"] {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  padding: 1.45rem 1rem 0.5rem 1rem;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 1.04375rem;
  line-height: 1.5;
  color: #262626;
  background-color: transparent;
  box-sizing: border-box;
}

/* Custom Select Dropdowns */
.morae-lead-form-wrap select {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  padding: 1.45rem 2.5rem 0.5rem 1rem;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 1.04375rem;
  line-height: 1.5;
  color: #262626;
  background-color: transparent;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201.5L6%206.5L11%201.5%22%20stroke%3D%22%23595959%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.morae-floating-wrap.is-select:not(.is-active):not(.is-focused) select {
  color: transparent !important;
}

.morae-floating-wrap.is-select.is-active select,
.morae-floating-wrap.is-select.is-focused select {
  color: #262626 !important;
}

.morae-lead-form-wrap select option {
  color: #262626;
  background-color: #ffffff;
}

.morae-lead-form-wrap textarea {
  width: 100%;
  min-height: 125px;
  border: none;
  outline: none;
  padding: 1.5rem 1rem 0.5rem 1rem;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  font-size: 1.04375rem;
  line-height: 1.5;
  color: #262626;
  background-color: transparent;
  box-sizing: border-box;
  resize: none;
}

.morae-floating-wrap.is-active input::placeholder,
.morae-floating-wrap.is-focused input::placeholder,
.morae-floating-wrap.is-active textarea::placeholder,
.morae-floating-wrap.is-focused textarea::placeholder {
  color: transparent !important;
}

/* Fallback if JS hasn't wrapped inputs */
.morae-lead-form-wrap:not(.floating-ready) input[type="text"],
.morae-lead-form-wrap:not(.floating-ready) input[type="email"],
.morae-lead-form-wrap:not(.floating-ready) input[type="tel"],
.morae-lead-form-wrap:not(.floating-ready) select,
.morae-lead-form-wrap:not(.floating-ready) textarea {
  background-color: #f0ede8;
  border-bottom: 1px solid #8c8c8c;
  padding: 1rem;
}

.morae-lead-form-wrap:not(.floating-ready) input:focus,
.morae-lead-form-wrap:not(.floating-ready) textarea:focus {
  border-bottom: 2px solid var(--morae-primary, #ff3600);
}

/* Acceptance & Checkboxes (Newsletter & Privacy) */
.morae-lead-form-wrap .wpcf7-acceptance,
.morae-lead-form-wrap .wpcf7-checkbox {
  display: block;
  margin-top: 0.25rem;
}

.morae-lead-form-wrap .wpcf7-acceptance label,
.morae-lead-form-wrap .wpcf7-checkbox label,
.morae-lead-form-wrap .wpcf7-checkbox .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif) !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: #262626 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.wpcf7-list-item {
  margin: 0 !important;
}

.morae-lead-form-wrap .wpcf7-acceptance .wpcf7-list-item-label,
.morae-lead-form-wrap .wpcf7-checkbox .wpcf7-list-item-label {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif) !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: #262626 !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.morae-lead-form-wrap .wpcf7-acceptance input[type="checkbox"],
.morae-lead-form-wrap .wpcf7-checkbox input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  accent-color: black !important;
  cursor: pointer !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.morae-lead-form-wrap .wpcf7-acceptance a,
.morae-lead-form-wrap .wpcf7-checkbox a {
  color: #262626 !important;
  text-decoration: underline !important;
  transition: color 0.2s ease;
}

.morae-lead-form-wrap .wpcf7-acceptance a:hover,
.morae-lead-form-wrap .wpcf7-checkbox a:hover {
  color: var(--morae-primary, #ff3600) !important;
}

/* Validation Errors */
.morae-lead-form-wrap .wpcf7-not-valid-tip {
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif);
  color: var(--morae-primary, #ff3600) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  margin-top: 0.4rem !important;
  display: block !important;
  line-height: 1.35 !important;
}

.morae-lead-form-wrap .wpcf7-form-control-wrap[data-name="acceptance-privacy"].has-error input[type="checkbox"],
.morae-lead-form-wrap .wpcf7-form-control-wrap[data-name="acceptance-privacy"]:has(.wpcf7-not-valid-tip) input[type="checkbox"],
.morae-lead-form-wrap input[type="checkbox"].wpcf7-not-valid {
  outline: 2px solid var(--morae-primary, #ff3600) !important;
  outline-offset: 1px !important;
  border-color: var(--morae-primary, #ff3600) !important;
}

.morae-lead-form-wrap .wpcf7-form-control-wrap[data-name="acceptance-privacy"].has-error label,
.morae-lead-form-wrap .wpcf7-form-control-wrap[data-name="acceptance-privacy"]:has(.wpcf7-not-valid-tip) label {
  color: #101010;
}

.morae-floating-wrap:has(.wpcf7-not-valid),
.morae-floating-wrap.has-error {
  border-bottom: 2px solid var(--morae-primary, #ff3600) !important;
}

.morae-floating-wrap:has(.wpcf7-not-valid) .morae-floating-label,
.morae-floating-wrap.has-error .morae-floating-label {
  color: var(--morae-primary, #ff3600) !important;
}

.morae-lead-form-wrap .wpcf7-response-output {
  margin: 1.25rem 0 0 0 !important;
  padding: 0.85rem 1.15rem !important;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif) !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  border-radius: 0 !important;
  border: 1px solid var(--morae-primary, #ff3600) !important;
  background-color: #fff2ee !important;
  color: #c72b00 !important;
}

.morae-lead-form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32 !important;
  background-color: #f1f8f3 !important;
  color: #1b5e20 !important;
}

/* Submit Button */
.morae-lead-form-wrap input[type="submit"],
.morae-lead-form-wrap button.wpcf7-submit,
.morae-lead-form-wrap .wpcf7-submit {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 56px !important;
  background-color: var(--morae-btn-primary-bg, #e13000) !important;
  color: var(--morae-btn-primary-text, #ffffff) !important;
  font-family: var(--morae-font, 'IBM Plex Sans', sans-serif) !important;
  font-size: 1.04375rem !important;
  font-weight: 500 !important;
  font-weight: 500 !important;
  border: 1px solid var(--morae-btn-primary-border, #e13000) !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin-top: 0.75rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Pseudo-element gradient layer for button */
.morae-lead-form-wrap button.wpcf7-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--morae-btn-primary-gradient, linear-gradient(90deg, #e13000 52.63%, #ff3600 100.88%));
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.morae-lead-form-wrap button.wpcf7-submit:hover::before {
  opacity: 0;
}

/* Fallback gradient transition for input[type="submit"] */
.morae-lead-form-wrap input[type="submit"] {
  background-image: var(--morae-btn-primary-gradient, linear-gradient(90deg, #e13000 52.63%, #ff3600 100.88%)) !important;
  background-size: 200% 100% !important;
  background-position: 100% 0 !important;
}

.morae-lead-form-wrap input[type="submit"]:hover {
  background-position: 0 0 !important;
  background-color: var(--morae-btn-primary-hover-bg, #c72b00) !important;
  border-color: var(--morae-btn-primary-hover-border, #c72b00) !important;
}

.morae-lead-form-wrap button.wpcf7-submit:hover,
.morae-lead-form-wrap input[type="submit"]:hover,
.morae-lead-form-wrap .wpcf7-submit:hover {
  background-color: var(--morae-btn-primary-hover-bg, #c72b00) !important;
  border-color: var(--morae-btn-primary-hover-border, #c72b00) !important;
  color: var(--morae-btn-primary-hover-text, #ffffff) !important;
  box-shadow: 0 4px 14px rgba(225, 48, 0, 0.28) !important;
}

.morae-lead-form-wrap button.wpcf7-submit svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.morae-lead-form-wrap button.wpcf7-submit:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Single Lead Form Page Overrides (/request/*)
   Scoped to body.single-lead_form to avoid affecting standard page lead blocks
   ========================================================================== */
body.single-lead_form,
body.page-contact,
body.page-template-page-contact {
  --morae-spacing-5xl: clamp(3.6875rem, 2.030041436464088rem + 7.07182320441989vw, 7.6875rem);
  --morae-spacing-6xl: clamp(3.6875rem, 2.030041436464088rem + 7.07182320441989vw, 10.6875rem);
  --morae-spacing-xl: clamp(1.75rem, 2.7083vw, 2.7083vw);
}

@media (min-width: 768px) {

  body.single-lead_form .morae-lead-form-section .left-content,
  body.page-contact .morae-lead-form-section .left-content,
  body.page-template-page-contact .morae-lead-form-section .left-content {
    padding-top: var(--morae-spacing-5xl);
  }

  body.single-lead_form .morae-lead-form-section .morae-brand,
  body.page-contact .morae-lead-form-section .morae-brand,
  body.page-template-page-contact .morae-lead-form-section .morae-brand {
    margin-bottom: var(--morae-spacing-xl);
  }

  body.single-lead_form .morae-lead-form-section .morae-logo {
    height: 41px;
    width: auto;
  }

  /* Right column padding-top equals left-content padding-top + logo height + logo margin-bottom to align Send us a message on the same line as Contact Us */
  body.single-lead_form .morae-lead-form-section .right-content,
  body.page-contact .morae-lead-form-section .right-content,
  body.page-template-page-contact .morae-lead-form-section .right-content {
    padding-top: calc(var(--morae-spacing-5xl) + 41px + var(--morae-spacing-xl)) !important;
    padding-bottom: var(--morae-spacing-6xl);
  }
}

.morae-lead-form-section .left-content.has-mosaic-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='575' height='288' viewBox='0 0 575 288' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32.7829 14.0358L154.768 137.819L168.345 124.041L46.3607 0.257867L32.7829 14.0358Z' fill='%23252525'/%3E%3Cpath d='M5.65988 41.548L127.645 165.331L141.222 151.553L19.2376 27.7701L5.65988 41.548Z' fill='%23252525'/%3E%3Cpath d='M-21.4104 69.0626L100.574 192.846L114.152 179.068L-7.83267 55.2847L-21.4104 69.0626Z' fill='%23252525'/%3E%3Cpath d='M-48.5159 96.568L73.4688 220.351L87.0465 206.573L-34.9381 82.7901L-48.5159 96.568Z' fill='%23252525'/%3E%3Cpath d='M-75.6214 124.059L46.3633 247.842L59.941 234.064L-62.0436 110.281L-75.6214 124.059Z' fill='%23252525'/%3E%3Cpath d='M560.715 247.277L438.73 371.061L452.308 384.838L574.293 261.055L560.715 247.277Z' fill='%23252525'/%3E%3Cpath d='M533.625 219.818L411.641 343.601L425.218 357.379L547.203 233.596L533.625 219.818Z' fill='%23252525'/%3E%3Cpath d='M506.502 192.303L384.518 316.086L398.095 329.864L520.08 206.081L506.502 192.303Z' fill='%23252525'/%3E%3Cpath d='M479.414 164.767L357.43 288.55L371.007 302.328L492.992 178.545L479.414 164.767Z' fill='%23252525'/%3E%3Cpath d='M452.291 137.286L330.307 261.069L343.884 274.847L465.869 151.064L452.291 137.286Z' fill='%23252525'/%3E%3Cpath d='M-89.0159 385.001L32.9688 261.218L19.391 247.44L-102.594 371.223L-89.0159 385.001Z' fill='%23252525'/%3E%3Cpath d='M-116.104 357.488L5.88086 233.705L-7.69691 219.927L-129.682 343.71L-116.104 357.488Z' fill='%23252525'/%3E%3Cpath d='M303.472 13.778L425.457 137.561L439.035 123.783L317.05 4.38235e-05L303.472 13.778Z' fill='%23252525'/%3E%3Cpath d='M276.367 41.2682L398.352 165.051L411.929 151.273L289.945 27.4903L276.367 41.2682Z' fill='%23252525'/%3E%3Cpath d='M249.244 68.8046L371.229 192.588L384.806 178.81L262.822 55.0266L249.244 68.8046Z' fill='%23252525'/%3E%3Cpath d='M222.156 96.2882L344.141 220.071L357.718 206.293L235.734 82.5103L222.156 96.2882Z' fill='%23252525'/%3E%3Cpath d='M195.051 123.778L317.035 247.562L330.613 233.784L208.628 110.001L195.051 123.778Z' fill='%23252525'/%3E%3Cpath d='M290.131 247.361L168.146 371.145L181.724 384.922L303.709 261.139L290.131 247.361Z' fill='%23252525'/%3E%3Cpath d='M263.026 219.827L141.041 343.61L154.619 357.388L276.603 233.605L263.026 219.827Z' fill='%23252525'/%3E%3Cpath d='M235.885 192.343L113.9 316.126L127.478 329.904L249.463 206.121L235.885 192.343Z' fill='%23252525'/%3E%3Cpath d='M208.797 164.853L86.8125 288.636L100.39 302.414L222.375 178.631L208.797 164.853Z' fill='%23252525'/%3E%3Cpath d='M181.672 137.338L59.6875 261.121L73.2653 274.899L195.25 151.116L181.672 137.338Z' fill='%23252525'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 80% auto;
}

.morae-lead-form-section .left-content:not(.has-mosaic-bg) {
  background-image: none !important;
}

/* Submit button icon remains visible and responsive across all lead form variants */
.morae-lead-form-wrap button.wpcf7-submit svg {
  display: inline-block !important;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.morae-lead-form-wrap button.wpcf7-submit:hover svg {
  transform: translateX(4px);
}

body.single-lead_form .morae-site-footer,
body.page-template-page-contact .morae-site-footer,
body.page-contact .morae-site-footer,
.morae-site-footer.morae-lead-form-footer {
  background-color: #262626 !important;
  padding: 15px 0 !important;
}

body.single-lead_form .morae-footer-bottom-bar,
body.page-template-page-contact .morae-footer-bottom-bar,
body.page-contact .morae-footer-bottom-bar,
.morae-lead-form-footer .morae-footer-bottom-bar {
  margin-top: 0 !important;
}

.morae-lead-form-footer .morae-legal-menu-list,
.morae-lead-form-footer .morae-legal-menu-list li,
.morae-lead-form-footer .morae-legal-nav,
.morae-lead-form-footer .morae-bottom-flex,
.morae-lead-form-footer .morae-bottom-right {
  display: flex !important;
  align-items: center !important;
  line-height: 1.5 !important;
  font-size: 13.89px !important;
  height: auto !important;
}

.morae-lead-form-footer .morae-copyright-text,
.morae-lead-form-footer .morae-legal-menu-list a {
  font-size: 13.89px !important;
  line-height: 1.5 !important;
  color: #d0c9c3 !important;
}

@media (max-width: 767.98px) {
  body.single-lead_form .morae-lead-form-section .left-content {
    padding-top: var(--morae-spacing-5xl);
    padding-bottom: var(--morae-spacing-5xl);
  }

  body.single-lead_form .morae-lead-form-section .right-content {
    padding-top: var(--morae-spacing-5xl);
    padding-bottom: var(--morae-spacing-5xl);
  }

  body.single-lead_form .morae-lead-topline {
    display: none !important;
  }

  body.single-lead_form .morae-lead-title {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
  }

  body.single-lead_form .morae-lead-testimonials {
    display: none !important;
  }
}

@media (min-width: 90rem),
(min-width: 1440px) {
  .morae-lead-topline,
  h1.morae-lead-topline {
    font-size: 1.3889vw !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin: 0 !important;
  }

  h1.morae-lead-title,
  .morae-lead-title:is(h1),
  .morae-lead-title.display-2xl,
  body.single-lead_form h1.morae-lead-title {
    font-size: 3.2895833vw !important;
    line-height: 1.4 !important;
  }

  p.morae-lead-title,
  .morae-lead-title:is(p),
  .morae-lead-title.display-xl,
  body.single-lead_form p.morae-lead-title {
    font-size: 2.4680556vw !important;
    line-height: 1.4 !important;
  }

  .morae-lead-form-heading {
    font-size: 1.85417vw !important;
    line-height: 1.5 !important;
  }

  .morae-lead-form-subline {
    font-size: 1.15972vw !important;
    line-height: 1.5 !important;
    margin-top: 1.04167vw !important;
  }

  .morae-lead-header {
    margin-bottom: 1.528vw !important;
  }

  .morae-lead-form-wrap input[type="text"],
  .morae-lead-form-wrap input[type="email"],
  .morae-lead-form-wrap input[type="tel"],
  .morae-lead-form-wrap select {
    height: 4.05843vw !important;
    font-size: 1.15972vw !important;
    padding: 1.594vw 1.16vw 0.58vw 1.16vw !important;
  }

  .morae-lead-form-wrap select {
    padding-right: 2.6vw !important;
    background-size: 0.833vw 0.555vw !important;
    background-position: right 1.16vw center !important;
  }

  .morae-floating-wrap {
    min-height: 4.05843vw !important;
  }

  .morae-floating-label {
    left: 1.16vw !important;
    top: 1.25vw !important;
    font-size: 1.15972vw !important;
    max-width: calc(100% - 2.32vw) !important;
  }

  .morae-floating-wrap.is-active .morae-floating-label,
  .morae-floating-wrap.is-focused .morae-floating-label {
    top: 0.45vw !important;
    font-size: 0.8vw !important;
  }

  .morae-lead-form-wrap textarea {
    min-height: 8.7vw !important;
    padding: 1.25vw 1.16vw !important;
    font-size: 1.15972vw !important;
  }

  .morae-lead-form-wrap button.wpcf7-submit,
  .morae-lead-form-wrap input[type="submit"],
  .morae-lead-form-wrap .wpcf7-submit {
    height: 3.888vw !important;
    font-size: 1.15972vw !important;
    margin-top: 1.528vw !important;
    padding: 0 1.16vw !important;
    gap: 0.8vw !important;
  }

  .morae-lead-form-wrap button.wpcf7-submit svg {
    width: 1.38889vw !important;
    height: 1.38889vw !important;
  }

  .morae-lead-contact-title {
    font-size: 1.1111vw !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin-bottom: 0.719em !important;
  }

  .morae-lead-contact-content,
  .morae-lead-contact-content p,
  .morae-lead-contact-content a {
    font-size: 1.15972vw !important;
    line-height: 1.5 !important;
    color: rgb(208, 201, 195) !important;
  }

  .morae-lead-contact-action a,
  .morae-lead-contact-action .morae-btn,
  .morae-lead-contact-action .morae-btn span {
    font-size: 0.965vw !important;
    line-height: 1.5 !important;
  }

  .morae-lead-contact-action svg {
    width: 0.97vw !important;
    height: 0.97vw !important;
  }

    .morae-lead-contact-grid {
    margin-bottom: 0 !important;
  }

  .morae-lead-contact-actions-wrap {
    margin-top: 2.8em !important;
  }

  .morae-lead-contact-actions-wrap .morae-btn-primary,
  .morae-lead-contact-actions-wrap .morae-btn,
  .morae-lead-contact-actions-wrap a {
    height: 2.778vw !important;
    min-height: 2.778vw !important;
    padding: 0 0.833vw !important;
    font-size: 0.965vw !important;
    line-height: 1.5 !important;
    gap: 1.111vw !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .morae-lead-contact-actions-wrap svg {
    width: 0.825vw !important;
    height: 0.825vw !important;
    flex-shrink: 0 !important;
  }

  /* Social Icons distance from button: 145px at 1440px, 194px at 1920px matching live */
  .morae-lead-form-section .morae-footer-social {
    margin-top: 10.07vw !important;
  }

  .morae-lead-form-section .morae-social-list {
    display: flex !important;
    gap: 0.556vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .morae-lead-form-section .morae-social-link {
    width: 3.333vw !important;
    height: 3.333vw !important;
    border: 2px solid #424242 !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    color: #d0c9c3 !important;
    transition: all 0.2s ease !important;
  }

  .morae-lead-form-section .morae-social-link:hover {
    border-color: #262626 !important;
    background-color: #262626 !important;
    color: #f0ebe6 !important;
  }

  .morae-lead-form-section .morae-social-link svg,
  .morae-lead-form-section .morae-social-link img,
  .morae-lead-form-section .morae-social-link .social-icon-img {
    width: 1.667vw !important;
    height: 1.667vw !important;
    object-fit: contain !important;
  }

  body.single-lead_form .morae-site-footer,
  body.page-template-page-contact .morae-site-footer,
  body.page-contact .morae-site-footer,
  .morae-site-footer.morae-lead-form-footer {
    background-color: #262626 !important;
    padding: clamp(15px, 1.042vw, 20px) 0 !important;
  }

  .morae-lead-form-footer .morae-copyright-text,
  .morae-lead-form-footer .morae-legal-menu-list a {
    font-size: 0.965vw !important;
    line-height: 1.5 !important;
    color: #d0c9c3 !important;
  }

  .morae-lead-testimonial-btn {
    width: 3.333vw !important;
    height: 3.333vw !important;
  }

  .morae-lead-testimonial-btn svg {
    width: 1.667vw !important;
    height: 1.667vw !important;
  }

  .morae-lead-form-wrap .wpcf7-acceptance label,
  .morae-lead-form-wrap .wpcf7-checkbox label,
  .morae-lead-form-wrap .wpcf7-acceptance .wpcf7-list-item-label,
  .morae-lead-form-wrap .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 0.965vw !important;
  }

  .morae-lead-form-wrap .wpcf7-acceptance input[type="checkbox"],
  .morae-lead-form-wrap .wpcf7-checkbox input[type="checkbox"] {
    width: 1.25vw !important;
    height: 1.25vw !important;
  }

  body.single-lead_form .morae-lead-form-section .morae-logo {
    height: 41px !important;
    width: auto !important;
  }

  .morae-lead-text p {
    font-size: 1.38899vw;
  }

  .morae-lead-testimonial-quote {
    font-size: 1.38899vw;
  }

  .morae-lead-author-name {
    font-size: 1.15972vw;
  }

  .morae-lead-author-designation {
    font-size: 1.15972vw;
  }
}