/* ==========================================================================
   Bridgecode M&A Center - contact page (hero, lead form, success)
   ========================================================================== */

/* Contact hero -------------------------------------------------------------- */

.contact-hero {
  position: relative;
  background-color: #181818;
  background-image: linear-gradient(#161616, rgba(22, 22, 22, 0.8)), url('/assets/images/contact-hero-bg.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    50% 50%;
  overflow: hidden;
}

.contact-hero .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-hero-headline {
  max-width: 750px;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fafafa;
}

.contact-hero .hero-mainbanner {
  display: block;
  width: 648px;
  max-width: 100%;
  height: auto;
  margin-top: 24px;
}

/* Layout -------------------------------------------------------------------- */

.contact-section {
  background-color: var(--white);
  padding: 64px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.contact-intro-headline {
  margin: 0 0 40px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: #323232;
}

.contact-advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-advisor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-advisor-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: 50% 20%;
  flex-shrink: 0;
}

.contact-advisor-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-advisor-name {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #161616;
}

.contact-advisor-credentials {
  font-size: 14px;
  line-height: 1.3;
  color: #808080;
}

.contact-advisor-credential-line {
  display: block;
}

/* Form card ------------------------------------------------------------------ */

.contact-form-card {
  padding: 8px 0 0;
}

.contact-form-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-95);
}

.contact-form-subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}

.mlf-form {
  display: block;
}

.mlf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.mlf-field {
  margin-bottom: 18px;
}

.mlf-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-95);
}

.mlf-required {
  color: var(--primary);
}

.mlf-optional {
  font-weight: 500;
  color: var(--muted);
}

.mlf-input,
.mlf-select,
.mlf-textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-95);
  background-color: var(--white);
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.mlf-input::placeholder,
.mlf-textarea::placeholder {
  color: rgba(21, 21, 21, 0.35);
}

.mlf-select:invalid,
.mlf-select option[value=''] {
  color: rgba(21, 21, 21, 0.45);
}

.mlf-input:focus,
.mlf-select:focus,
.mlf-textarea:focus {
  outline: none;
  border-color: var(--dark);
}

.mlf-textarea {
  resize: vertical;
  min-height: 110px;
}

.mlf-group-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.mlf-group-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-95);
}

.mlf-group-subtitle {
  font-size: 13px;
  color: var(--muted);
}

/* Multi select --------------------------------------------------------------- */

.mlf-multi {
  position: relative;
}

.mlf-multi-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: rgba(21, 21, 21, 0.45);
  background-color: var(--white);
  border: 1px solid rgba(21, 21, 21, 0.18);
  cursor: pointer;
}

.mlf-multi-toggle.has-selection {
  color: var(--dark-95);
}

.mlf-multi-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mlf-multi-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  background-color: var(--white);
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-top: 0;
  box-shadow: 0 16px 32px rgba(21, 21, 21, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.mlf-multi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-95);
  cursor: pointer;
}

.mlf-multi-item:hover {
  background-color: rgba(21, 21, 21, 0.04);
}

.mlf-multi-item input {
  accent-color: var(--primary);
}

/* Newsletter / notice / submit ------------------------------------------------ */

.mlf-newsletter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px;
  background-color: #f7f6f5;
  cursor: pointer;
}

.mlf-newsletter-input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.mlf-newsletter-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mlf-newsletter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-95);
}

.mlf-newsletter-description {
  font-size: 13px;
  color: var(--muted);
}

.mlf-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mlf-notice {
  margin: 20px 0 12px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.mlf-submit {
  display: block;
  width: 100%;
  padding: 17px 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  background-color: var(--primary);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.mlf-submit:hover {
  background-color: #d84523;
}

.mlf-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mlf-fail {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  color: #b3261e;
  background-color: #fdecea;
}

.mlf-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mlf-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.mlf-legal a:hover {
  color: var(--dark);
}

/* Success page ----------------------------------------------------------------- */

.contact-success-hero {
  background-color: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Hero spacing/typography mirror the advisory-cases header (.cases-header). */
.contact-success-hero .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

.contact-success-heading {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.2;
  color: var(--white);
}

.contact-success-message {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.contact-success-message-line {
  display: block;
}

/* Booking modal ----------------------------------------------------------------- */

#bc-book-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(21, 21, 21, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#bc-book-overlay.is-open {
  display: flex;
}

#bc-book-modal {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: auto;
  max-height: calc(100vh - 32px);
  background: #fff;
  overflow: hidden;
}

#bc-book-frame {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  transition: height 0.25s ease;
  background: #fff;
}

#bc-book-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #efefef;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #151515;
}

#bc-book-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
}

#bc-book-loader .bc-spin {
  width: 34px;
  height: 34px;
  border: 3px solid #eee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: bcspin 0.8s linear infinite;
}

#bc-book-loader .bc-txt {
  font-size: 14px;
  line-height: 1.7;
  color: #646464;
  text-align: center;
  white-space: pre-line;
  letter-spacing: -0.01em;
}

#bc-book-loader.bc-hidden {
  display: none;
}

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

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

@media (max-width: 991px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-hero-headline {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    min-height: 380px;
  }

  .contact-hero .container {
    padding-top: 90px;
    padding-bottom: 32px;
  }

  .contact-hero-headline {
    font-size: 29px;
    margin-bottom: 28px;
  }

  .contact-section {
    padding: 40px 0 56px;
  }

  .contact-advisor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .contact-advisor-photo {
    width: 56px;
    height: 56px;
  }

  .mlf-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-success-message {
    font-size: 18px;
  }
}
