/* Custom Quote modal — split brand-gradient panel + form (Pricing page) */

.ff-quote-modal .modal-dialog {
  max-width: 900px;
  margin: 24px auto;
}

.ff-quote-modal .modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 44px 90px -30px rgba(19, 7, 45, 0.5), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  max-height: 92vh;
}

.ff-quote-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(19, 7, 45, 0.38);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s ease;
}

.ff-quote-modal__close:hover,
.ff-quote-modal__close:focus-visible {
  background: rgba(19, 7, 45, 0.6);
  transform: rotate(90deg);
  color: #fff;
}

.ff-quote-modal__body {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  max-height: 92vh;
}

/* ── Aside — brand gradient, matches the page's closing CTA banner ── */
.ff-quote-modal__aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 32px 30px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(188, 40, 245, 0.24) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(117, 85, 245, 0.2) 0%, transparent 52%),
    linear-gradient(180deg, #211247 0%, #432691 100%);
}

.ff-quote-modal__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.ff-quote-modal__aside > * {
  position: relative;
  z-index: 1;
}

.ff-quote-modal__aside-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 20px;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06), 0 16px 32px -14px rgba(18, 10, 48, 0.45);
}

.ff-quote-modal__aside-title {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.4vw, 25px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  /* home-colors.css forces a dark navy on every bare <h2> on .home-page
     (with a growing :not() exclusion list for headings that must stay
     light-on-dark) — this h2 needs the same override. */
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.ff-quote-modal__aside-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82) !important;
}

.ff-quote-modal__aside-trust {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ff-quote-modal__aside-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.ff-quote-modal__aside-trust .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* ── Form panel ── */
.ff-quote-modal__form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 44px 40px 32px;
  background: #fff;
  overflow-y: auto;
}

.ff-quote-modal__form-title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #13072d;
}

.ff-quote-modal__form-desc {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--secondary, #675e7a);
}

.ff-quote-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ff-quote-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.ff-quote-modal__grid .ff-quote-modal__field {
  margin-bottom: 0;
}

.ff-quote-modal__field label {
  font-size: 12px;
  font-weight: 700;
  color: #13072d;
  letter-spacing: 0.01em;
}

.ff-quote-modal__field input,
.ff-quote-modal__field select,
.ff-quote-modal__field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(67, 38, 146, 0.14);
  background: #f8f7fb;
  font-family: inherit;
  font-size: 14px;
  color: #13072d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ff-quote-modal__field input::placeholder,
.ff-quote-modal__field textarea::placeholder {
  color: rgba(19, 7, 45, 0.38);
}

.ff-quote-modal__field input:focus,
.ff-quote-modal__field select:focus,
.ff-quote-modal__field textarea:focus {
  outline: none;
  border-color: #7555f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(117, 85, 245, 0.14);
}

.ff-quote-modal__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23432692' d='M6 8 0 2l1.4-1.4L6 5.2l4.6-4.6L12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
}

.ff-quote-modal__field select:invalid {
  color: rgba(19, 7, 45, 0.38);
}

.ff-quote-modal__field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.ff-quote-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.ff-quote-modal__note {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--secondary, #675e7a);
}

@media (max-width: 767px) {
  .ff-quote-modal .modal-dialog {
    margin: 12px;
  }

  .ff-quote-modal .modal-content,
  .ff-quote-modal__body {
    max-height: 94vh;
  }

  .ff-quote-modal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .ff-quote-modal__aside {
    padding: 26px 24px 20px;
  }

  .ff-quote-modal__aside-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 19px;
  }

  .ff-quote-modal__aside-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .ff-quote-modal__form {
    padding: 26px 22px 24px;
    overflow-y: visible;
  }

  .ff-quote-modal__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-quote-modal__close:hover,
  .ff-quote-modal__close:focus-visible {
    transform: none;
  }
}
