/* ============================================================
   section_cta — Mennie Law booking section (isolated styles)
   Uses ml-cta-* class prefixes to avoid TC Legal CSS conflicts
   ============================================================ */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/dm-sans-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-700-normal.woff2") format("woff2");
}

.section_cta {
  --ml-white: #ffffff;
  --ml-navy: #052343;
  --ml-gold: #c69732;
  --ml-muted: #a7a7a7;
  --ml-card: #181818;
  --ml-border: #ffffff14;
  --ml-glass: #ffffff0f;
  --ml-font: "DM Sans", sans-serif;

  background-color: var(--ml-navy);
  color: var(--ml-white);
  font-family: var(--ml-font);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  isolation: isolate;
  box-sizing: border-box;
}

.section_cta *,
.section_cta *::before,
.section_cta *::after {
  box-sizing: border-box;
}

.section_cta .ml-cta-pad {
  padding: 120px 40px;
  width: 100%;
}

.section_cta .ml-cta-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Header row */
.section_cta .ml-cta-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 40px;
}

.section_cta .ml-cta-head-left {
  max-width: 480px;
  width: 100%;
}

.section_cta .ml-cta-head-right {
  max-width: 532px;
  width: 100%;
  justify-self: end;
}

.section_cta .ml-cta-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--ml-white);
  font-size: 18px;
  line-height: 120%;
  font-weight: 600;
}

.section_cta .ml-cta-subtitle-line {
  color: var(--ml-gold);
}

.section_cta .ml-cta-title {
  margin: 0;
  font-family: var(--ml-font);
  font-size: clamp(2rem, 1.8rem + 1vw, 2.625rem);
  line-height: 120%;
  font-weight: 500;
  letter-spacing: -1.68px;
  color: var(--ml-white);
}

.section_cta .ml-cta-title strong {
  font-weight: 500;
}

.section_cta .ml-cta-gold {
  color: var(--ml-gold);
  padding-right: 4px;
}

.section_cta .ml-cta-desc {
  margin: 0;
  color: var(--ml-white);
  font-size: 20px;
  line-height: 150%;
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* Form + image grid */
.section_cta .ml-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.section_cta .ml-cta-form-card {
  width: 100%;
  padding: 40px 32px;
  border-radius: 12px;
  background-color: var(--ml-card);
  position: relative;
  z-index: 1;
}

.section_cta .ml-cta-form {
  display: flex;
  flex-direction: column;
  gap: 42px;
  margin: 0;
  padding: 0;
  border: none;
  text-transform: none;
  width: 100%;
}

.section_cta .ml-cta-input {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 0 16px;
  background-color: transparent;
  color: var(--ml-white);
  font-family: var(--ml-font);
  font-size: 18px;
  font-weight: 300;
  line-height: 150%;
  border: none;
  border-bottom: 1px solid var(--ml-border);
  border-radius: 0;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  position: relative;
  z-index: 1;
}

.section_cta .ml-cta-input:focus {
  border-bottom-color: var(--ml-white);
  color: var(--ml-white);
}

.section_cta .ml-cta-input::placeholder {
  color: var(--ml-white);
  opacity: 1;
}

.section_cta select.ml-cta-input {
  cursor: pointer;
  background-image: none;
  color: var(--ml-white);
}

.section_cta select.ml-cta-input option {
  color: #111;
  background: #fff;
}

.section_cta textarea.ml-cta-input {
  min-height: 100px;
  height: auto;
  resize: vertical;
  padding-top: 8px;
}

.section_cta .ml-cta-input.is-date {
  background-image: url("../svg/calendar-04.svg");
  background-position: right -1px center;
  background-repeat: no-repeat;
  background-size: 22px;
  color-scheme: dark;
  padding-right: 36px;
}

.section_cta .ml-cta-input.is-date::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
}

.section_cta .ml-cta-btn {
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 14px 24px;
  border: 1px solid var(--ml-gold);
  border-radius: 99px;
  background-color: var(--ml-gold);
  color: var(--ml-navy);
  font-family: var(--ml-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 120%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, background-color 0.5s;
  text-transform: none;
  box-shadow: none;
}

.section_cta .ml-cta-btn-text-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.section_cta .ml-cta-btn-text {
  display: block;
  color: var(--ml-navy);
  transition: transform 0.4s ease, color 0.4s ease;
}

.section_cta .ml-cta-btn-text-alt {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  color: var(--ml-gold);
  transform: translateY(110%);
  transition: transform 0.4s ease;
}

.section_cta .ml-cta-btn:hover {
  background-color: transparent;
}

.section_cta .ml-cta-btn:hover .ml-cta-btn-text {
  color: var(--ml-gold);
  transform: translateY(-110%);
}

.section_cta .ml-cta-btn:hover .ml-cta-btn-text-alt {
  transform: translateY(0);
}

.section_cta .ml-cta-success,
.section_cta .ml-cta-error {
  display: none;
  width: 100%;
  padding: 24px;
  text-align: center;
  font-size: 18px;
}

.section_cta .ml-cta-success {
  border: 1px solid var(--ml-navy);
  background: #fff;
  color: var(--ml-navy);
}

.section_cta .ml-cta-error {
  background: #e74c3c;
  color: #fff;
  border-radius: 10px;
  padding: 12px 24px;
}

.section_cta .ml-cta-form-block.is-success .ml-cta-form {
  display: none;
}

.section_cta .ml-cta-form-block.is-success .ml-cta-success {
  display: block;
}

.section_cta .ml-cta-form-block.is-error .ml-cta-error {
  display: block;
}

/* Image column */
.section_cta .ml-cta-image-wrap {
  padding: 8px;
  background-color: var(--ml-glass);
  width: 100%;
  height: 100%;
  min-height: 520px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section_cta .ml-cta-image-inner {
  width: 100%;
  height: 100%;
  min-height: 504px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.section_cta .ml-cta-image {
  position: absolute !important;
  inset: 0;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 991px) {
  .section_cta .ml-cta-pad {
    padding: 100px 32px;
  }

  .section_cta .ml-cta-grid {
    grid-template-columns: 1fr;
  }

  .section_cta .ml-cta-head-left,
  .section_cta .ml-cta-head-right {
    max-width: none;
    justify-self: stretch;
  }

  .section_cta .ml-cta-image-wrap,
  .section_cta .ml-cta-image-inner {
    min-height: 420px;
  }
}

@media screen and (max-width: 767px) {
  .section_cta .ml-cta-pad {
    padding: 80px 24px;
  }

  .section_cta .ml-cta-header {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }

  .section_cta .ml-cta-form-card {
    padding: 32px 24px;
  }

  .section_cta .ml-cta-form {
    gap: 28px;
  }

  .section_cta .ml-cta-image-wrap,
  .section_cta .ml-cta-image-inner {
    min-height: 360px;
  }
}

@media screen and (max-width: 479px) {
  .section_cta .ml-cta-pad {
    padding: 64px 16px;
  }

  .section_cta .ml-cta-header {
    padding-bottom: 0;
  }

  .section_cta .ml-cta-form {
    gap: 18px;
  }

  .section_cta .ml-cta-input {
    font-size: 18px;
  }

  .section_cta select.ml-cta-input {
    height: 48px;
  }

  .section_cta .ml-cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
  }
}

/* ============================================================
   Hero slider contact form (right column)
   ============================================================ */

.slider-section .slide-content-wrap > .container {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Match TC Legal reference typography (Inter) */
.hero-slider-left .display-heading.hero {
  width: auto;
  max-width: 100%;
  font-family: Inter, sans-serif;
  font-size: 70px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
  color: #fff;
}

.hero-slider-left .hero-paragraph {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff9;
  max-width: 550px;
}

.hero-slider-left .hero-block .button-text {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.hero-slider-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero-slider-left .hero-content-wrapper-copy {
  margin-left: 0;
  margin-right: 0;
  max-width: 750px;
}

.hero-slider-left .hero-block {
  margin-left: 0;
  margin-right: 0;
  padding-top: 36px;
  padding-right: 0;
  width: auto;
}

.slider-section .cta_form-wrap.hero-cta-form {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(8, 20, 40, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 5;
  font-family: Inter, sans-serif;
}

.hero-cta-form-inner {
  width: 100%;
  font-family: Inter, sans-serif;
}

.hero-cta-title {
  margin: 0 0 24px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-cta-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  border: none;
  text-transform: none;
  font-family: Inter, sans-serif;
}

.hero-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-cta-input {
  width: 100%;
  height: auto;
  min-height: 51px;
  margin: 0;
  padding: 15px 16px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 5px;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hero-cta-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  opacity: 1;
}

.hero-cta-input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-cta-message {
  min-height: 120px;
  height: auto;
  resize: vertical;
  padding-top: 15px;
}

.hero-cta-submit {
  width: 100%;
  margin-top: 4px;
  padding: 18px 40px;
  border: none;
  border-radius: 100px;
  background: #154b3e;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta-submit:hover {
  background: #000;
}

.hero-cta-submit:active {
  transform: scale(0.98);
}

.hero-cta-success {
  display: none;
  margin-top: 12px;
  padding: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.hero-cta-form.is-success .hero-cta-fields {
  display: none;
}

.hero-cta-form.is-success .hero-cta-success {
  display: block;
}

@media screen and (max-width: 991px) {
  /* Tablet: stack copy + form; size section from content, not fixed vh */
  .slider-section.yps-dark-hero,
  .slider-section {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .slider-section .slider-content {
    position: relative;
    z-index: 2;
  }

  .slider-section .slide-content-wrap {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    display: flex;
    align-items: flex-start;
    padding: 56px 3% 48px !important;
  }

  .slider-section .slide-content-wrap > .container {
    height: auto;
    align-items: flex-start;
  }

  .slider-section .slider-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .slider-section .slider-2 {
    height: 100% !important;
    min-height: 100% !important;
  }

  .hero-slider-row {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
  }

  .slider-section .cta_form-wrap.hero-cta-form {
    max-width: 480px;
    width: 100%;
    justify-self: start;
  }

  .hero-slider-left .display-heading.hero {
    font-size: clamp(36px, 5.5vw, 52px);
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
  }

  .hero-slider-left .hero-paragraph {
    max-width: 100%;
  }

  .hero-slider-left .hero-block {
    padding-top: 28px;
  }

  .hero-cta-title {
    font-size: 18px;
  }

  .hero-cta-input,
  .hero-cta-input::placeholder {
    font-size: 16px;
  }

  .hero-cta-submit {
    font-size: 18px;
    padding: 16px 28px;
  }
}

@media screen and (max-width: 767px) {
  .slider-section .slide-content-wrap {
    padding: 40px 4% 40px !important;
  }

  .slide-content-wrap {
    align-items: flex-start;
    overflow-y: visible;
  }

  .hero-slider-row {
    gap: 28px;
  }

  .slider-section .cta_form-wrap.hero-cta-form {
    max-width: 100%;
    padding: 24px 20px;
  }

  .hero-slider-left .display-heading.hero {
    font-size: 42px;
    line-height: 1.25;
  }

  .hero-slider-left .hero-paragraph {
    font-size: 16px;
  }

  .hero-cta-title {
    font-size: 18px;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
  }

  .hero-slider-left .hero-block {
    padding-top: 24px;
  }

  .hero-slider-left .hero-block .button-text {
    font-size: 16px;
  }
}

@media screen and (max-width: 479px) {
  .hero-cta-row {
    grid-template-columns: 1fr;
  }

  .hero-cta-message {
    min-height: 100px;
  }

  .hero-slider-left .display-heading.hero {
    font-size: 34px;
  }

  .hero-cta-input,
  .hero-cta-input::placeholder {
    font-size: 16px;
  }

  .hero-cta-submit {
    font-size: 16px;
  }
}
