/* Quote page: start at top; user scrolls down into the form */
.quote-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.quote-page main#quote-main {
  scroll-margin-top: 0;
}

.quote-header-banner {
  position: relative;
  /* Keep overflow visible so the logo halo isn’t clipped differently than other pages */
  overflow: visible;
  min-height: clamp(220px, 30vw, 320px);
}

.quote-header-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.quote-header-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(1.05);
}

.quote-header-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.1) 0%, rgba(10, 18, 32, 0.45) 100%),
    linear-gradient(90deg, rgba(10, 18, 32, 0.45) 0%, rgba(10, 18, 32, 0.08) 52%, rgba(10, 18, 32, 0.28) 100%);
  pointer-events: none;
}

.quote-page .claims-header--banner {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: none;
}

/* Logo: lock to the same size/box as every other claims-header page */
.quote-page .claims-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  width: 100%;
  box-sizing: border-box;
}

.quote-page .claims-header__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 0;
  margin: 0;
  padding: 0;
  max-width: min(320px, 42vw);
}

.quote-page .claims-header--banner .claims-header__brand .fcib-logo,
.quote-page .claims-header--banner .fcib-logo,
.quote-page .claims-header__brand .fcib-logo {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: clamp(105px, 10vw, 149px) !important;
  aspect-ratio: 638 / 329;
  object-fit: contain;
  object-position: left center;
}

.quote-page .claims-header--banner .claims-header__nav a:not(.claims-header__phone),
.quote-page .claims-header--banner .claims-header__app-link {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.quote-page .claims-header--banner .claims-header__app-link {
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.quote-page .claims-header--banner .claims-header__nav a:not(.claims-header__phone):hover,
.quote-page .claims-header--banner .claims-header__app-link:hover {
  color: var(--green-light);
  text-decoration-color: currentColor;
}

.quote-page .claims-header--banner .lang-switch__btn {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.quote-page .claims-header--banner .lang-switch__btn:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

.quote-page .claims-header--banner .lang-switch__btn.is-active {
  background: rgba(0, 200, 83, 0.35);
  border-color: var(--green-light);
  color: var(--white);
}

.quote-page .claims-header--banner.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--gray-200);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(10, 18, 32, 0.1);
}

.quote-page .claims-header--banner.is-scrolled .claims-header__nav a:not(.claims-header__phone) {
  color: var(--navy);
  text-shadow: none;
}

.quote-page .claims-header--banner.is-scrolled .claims-header__app-link {
  color: var(--green);
  text-shadow: none;
  text-decoration-color: rgba(0, 200, 83, 0.45);
}

.quote-page .claims-header--banner.is-scrolled .claims-header__app-link:hover {
  color: var(--green-hover);
  text-decoration-color: currentColor;
}

.quote-page .claims-header--banner.is-scrolled .claims-header__nav a.is-active:not(.claims-header__phone) {
  color: var(--green-hover);
}

.quote-page .claims-header--banner.is-scrolled .lang-switch__btn {
  color: var(--gray-600);
  border-color: var(--gray-200);
  background: var(--white);
  text-shadow: none;
}

.quote-page .claims-header--banner.is-scrolled .lang-switch__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.quote-page .claims-header__nav a.is-active {
  font-weight: 600;
}

.quote-page .claims-header--banner .claims-header__nav a.is-active:not(.claims-header__phone) {
  color: var(--green-light);
}

@media (max-width: 768px) {
  .quote-header-banner {
    min-height: clamp(180px, 42vw, 240px);
  }

  .quote-header-banner__media img {
    object-position: center 28%;
  }

  .quote-page .claims-header__inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .quote-page .claims-header__brand {
    max-width: min(220px, 58vw);
  }

  .quote-page .claims-header--banner .claims-header__brand .fcib-logo,
  .quote-page .claims-header--banner .fcib-logo,
  .quote-page .claims-header__brand .fcib-logo {
    max-height: 72px !important;
  }
}

.quote-page main {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
}

.quote-page .quote-page__intro {
  max-width: 960px;
  margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.quote-page .quote-page__intro p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.02rem;
  line-height: 1.6;
}

.quote-page .contact-form-section--quote-only {
  padding: 0 0 7.5rem;
  background: transparent;
}

/* ~2 inches wider than prior 1080px max for better readability */
.quote-page .contact-form-section--quote-only .container {
  max-width: calc(1080px + 2in);
  width: min(100%, calc(1080px + 2in));
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.quote-page .quote-page__intro {
  max-width: calc(960px + 2in);
}

.quote-page .contact-form-section--quote-only .contact-form-grid {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
}

.quote-page .quote-chatbot {
  /* Page grows with conversation; no artificial height cap */
  min-height: min(70vh, calc(100dvh - 160px));
  max-height: none;
  height: auto;
  overflow: visible;
}

.quote-page .quote-chatbot__messages {
  flex: 1 1 auto;
  min-height: 240px;
  max-height: none;
  overflow: visible;
  padding-bottom: 0.5rem;
}

/* Keep the answer / composer section fixed in view while the transcript grows */
.quote-page .quote-chatbot__composer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.quote-page .quote-chatbot__quick-replies:not([hidden]) {
  position: sticky;
  bottom: 0;
  z-index: 39;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
  padding-top: 8px;
}

.quote-page .quote-chatbot__carrier-results:not([hidden]) {
  padding-bottom: 24px;
}

@media (max-width: 768px) {
  .quote-page .quote-chatbot {
    min-height: min(65vh, calc(100dvh - 130px));
    border-radius: 14px;
  }

  .quote-page .contact-form-section--quote-only {
    padding-bottom: 6.5rem;
  }

  .quote-page .quote-chatbot__header {
    padding: 18px 16px 14px;
  }

  /* Mobile sheet scroll is owned by .quote-product-focus__menu (fixed bottom sheet) */
  .quote-page .quote-product-focus.is-open .quote-chatbot__products,
  .quote-page .quote-chatbot__products--storyline {
    max-height: none !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
  }

  .quote-page .quote-chatbot__header > .quote-chatbot__products {
    max-height: none;
    overflow: visible;
  }
}

/* Header contact number: black with green glow */
.quote-page .claims-header__phone,
.quote-page .claims-header__phone-mobile,
.quote-page .claims-header__nav a.claims-header__phone,
.quote-page .claims-header--banner .claims-header__phone,
.quote-page .claims-header--banner .claims-header__phone-mobile,
.quote-page .claims-header--banner.is-scrolled .claims-header__phone,
.quote-page .claims-header--banner.is-scrolled .claims-header__phone-mobile {
  color: #000;
  text-shadow: var(--fcib-phone-glow);
}

.quote-page .claims-header__phone:hover,
.quote-page .claims-header__phone-mobile:hover,
.quote-page .claims-header__nav a.claims-header__phone:hover,
.quote-page .claims-header--banner .claims-header__phone:hover,
.quote-page .claims-header--banner .claims-header__phone-mobile:hover,
.quote-page .claims-header--banner.is-scrolled .claims-header__phone:hover,
.quote-page .claims-header--banner.is-scrolled .claims-header__phone-mobile:hover {
  color: #000;
  text-shadow: var(--fcib-phone-glow-hover);
}
/* Zoom / direct call Carlos CTA (shared with contact) */
.fcib-zoom-call-cta {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(14, 114, 237, 0.22);
  background: linear-gradient(135deg, rgba(14, 114, 237, 0.08) 0%, rgba(11, 31, 51, 0.03) 100%);
}

.fcib-zoom-call-cta--inline {
  margin-top: 1rem;
  max-width: 28rem;
}

.fcib-zoom-call-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #0E72ED;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.fcib-zoom-call-cta__btn:hover {
  background-color: #0b5ec4;
  color: #fff;
}

.fcib-zoom-call-cta__btn:active {
  transform: translateY(1px);
}

.fcib-zoom-call-cta__btn--sm {
  padding: 10px 16px;
  font-size: 0.95rem;
}

.fcib-zoom-call-cta__alt {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--gray-600, #4b5563);
}

.fcib-zoom-call-cta__alt a {
  color: #0E72ED;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fcib-zoom-call-cta__alt a:hover {
  color: #0b5ec4;
}

/* —— Embed mode (Admin floating AI Quote panel: quote.html?embed=1) —— */
/* Mirrors main quote layout: growing transcript + sticky answer bar */
html.quote-embed,
body.quote-page--embed {
  background: #fff !important;
  min-height: 100%;
  height: auto;
}

body.quote-page--embed {
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

body.quote-page--embed .skip-link,
body.quote-page--embed .quote-header-banner,
body.quote-page--embed .quote-page__intro,
body.quote-page--embed .site-footer,
body.quote-page--embed .agent-chat-fab,
body.quote-page--embed .agent-chat,
body.quote-page--embed .back-to-top,
body.quote-page--embed #page-nav-dock,
body.quote-page--embed .page-back {
  display: none !important;
}

body.quote-page--embed #quote-main {
  padding: 0;
  margin: 0;
  min-height: 100%;
}

body.quote-page--embed .contact-form-section--quote-only {
  padding: 0 0 5.5rem;
  margin: 0;
  background: #fff;
}

body.quote-page--embed .contact-form-section--quote-only .container,
body.quote-page--embed .contact-form-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.quote-page--embed .quote-chatbot {
  min-height: calc(100vh - 8px);
  height: auto;
  max-height: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body.quote-page--embed .quote-chatbot__header {
  padding: 12px 12px 10px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(105, 240, 174, 0.18) 0%, #fff 100%);
}

body.quote-page--embed .quote-chatbot__title {
  font-size: 1.15rem;
}

body.quote-page--embed .quote-chatbot__tagline,
body.quote-page--embed .quote-chatbot__lead {
  display: none;
}

body.quote-page--embed .quote-product-focus.is-open .quote-chatbot__products,
body.quote-page--embed .quote-chatbot__products--storyline {
  max-height: none !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
  gap: 6px;
  padding-bottom: 8px;
}

body.quote-page--embed .quote-chatbot__messages {
  min-height: 200px;
  max-height: none;
  flex: 1 1 auto;
  overflow: visible;
  padding: 14px 12px 8px;
}

/* Answer section always in view inside Admin iframe */
body.quote-page--embed .quote-chatbot__composer {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
  padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px));
}

body.quote-page--embed .quote-chatbot__quick-replies:not([hidden]) {
  position: sticky;
  bottom: 0;
  z-index: 39;
  background: #fff;
  padding: 6px 12px 0;
}

body.quote-page--embed .quote-chatbot__disclosure {
  font-size: 0.68rem;
  margin-top: 8px;
}
