/* -------------------------------------- */
/* GLOBAL                                 */
/* -------------------------------------- */
body, html {
  margin-top: 0 !important;
  padding-top: 0 !important;
  scrollbar-width: auto;      /* Firefox base: auto | thin */
  -ms-overflow-style: auto;   /* Old IE/Edge */
}

/* Reserve space to avoid layout shift when scrollbars appear */
html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* Firefox colors (thumb | track) and thin width */
html {
  scrollbar-width: auto;
  scrollbar-color: #F16629 #FFEAE0;
}

/* Chrome/Edge/Safari */
html::-webkit-scrollbar {
  width: 10px;                /* adjust 8–12px */
}
html::-webkit-scrollbar-track {
  background: #FFEAE0;        /* track color */
}
html::-webkit-scrollbar-thumb {
  background: #F16629;        /* thumb color */
  border-radius: 8px;         /* subtle rounding */
}
/* Optional hover shade (1 extra rule) */
html::-webkit-scrollbar-thumb:hover {
  background: #D4571F;
}

* {
  text-decoration: none !important;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

.toast-message-wrap {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  pointer-events: none;
  width: 100%;
}
.toast-message {
  pointer-events: auto;
  max-width: min(92vw, 40rem);
  padding: 0.9rem 1.1rem;
  border-radius: 0.625rem;
  font-size: clamp(1rem, 2.2vw + 0.2rem, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 0.5rem 1.25rem rgba(8,16,24,0.08);
  white-space: pre-line;
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.99);
  animation: toast-in-out 4.6s cubic-bezier(.2,.9,.3,1) forwards;
}
.toast-message.success { background: #eaf7ee; border-color: #bbe3c7; color: #115e33; }
.toast-message.error   { background: #fdecec; border-color: #f6bcbc; color: #7a2222; }
.toast-message.info    { background: #ecf3fe; border-color: #c8dcff; color: #173e83; }
@keyframes toast-in-out {
  0%   { opacity: 0; transform: translateY(-0.5rem) scale(0.99); }
  12%  { opacity: 1; transform: translateY(0)       scale(1);    }
  80%  { opacity: 1; transform: translateY(0)       scale(1);    }
  100% { opacity: 0; transform: translateY(-0.5rem) scale(0.99); }
}

/* -------------------------------------- */
/* GETQUOTE HERO (with background image) */
/* -------------------------------------- */
.getquote-hero {
  position: relative;
  margin-top: -3vw;
  min-height: 100vh;
  background: url("../images/getquotebk.png") no-repeat center/cover;
  background-size: cover;
  border-radius: 2rem;            /* round the edges */
  overflow: hidden;                 /* ensure overlay and badge stay within */
  padding: 8rem 0 4rem;
  text-align: center;
  color: #fff;
  margin-bottom: 15vh;
}
.getquote-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
}
.getquote-hero .container { position: relative; z-index: 2; }

.getquote-headline {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #F16629;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.getquote-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #fff;              /* white on dark overlay looks crisp */
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  margin-bottom: 2.5rem;
}
/* -------------------------------------- */
/* FORM OVERLAY WRAPPER                  */
/* -------------------------------------- */
.form-overlay-wrapper {
  position: relative;
  top: -2rem;
  margin-bottom: -2rem;
  z-index: 2;
}

/* -------------------------------------- */
/* FORM OVERLAY                           */
/* -------------------------------------- */
.form-overlay {
  background: rgba(255,255,255,0.85);
  padding: 2rem 2.5rem;  /* extra padding */
  border-radius: 2rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
  width: 90vw;
  max-width: 1000px;
  margin: 0 auto;
}
/* vertical gutter between rows */
.form-row-gutter {
  row-gap: 1.5rem;
}
/* rounded input fields */
.form-overlay .form-control,
.form-overlay .form-select,
.form-overlay textarea.form-control {
  height: 2.5rem;
  font-size: 0.9rem;
  border-radius: 1rem;
}

/* -------------------------------------- */
/* SUBMIT BUTTON                          */
/* -------------------------------------- */
.btn-quote {
  display: inline-block;        /* allow width to apply */
  min-width: 10rem;             /* adjust this to the width you need */
  background-color: #F16629;
  color: #fff;
  border-radius: 2vw;
  padding: 0.375rem 1.25rem;    /* top/bottom, left/right */
  font-weight: 500;
  text-align: center;           /* center the text */
  margin-right: 1vw;            /* space from right edge */
  white-space: nowrap;          /* prevent wrapping */
  transition: background 0.2s, color 0.2s;
}
.btn-quote:hover {
  background-color: #d94e2a;
  color: #fff;
}
.btn-thin { padding-top: 0.3rem; padding-bottom: 0.3rem; }

/* -------------------------------------- */
/* CASHBACK BADGE                         */
/* -------------------------------------- */
.cashback-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 14rem;
  height: 13rem;
  background: #F16629;
  color: #fff;
  text-align: center;
  border-radius: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 0.2rem;
}

.cashback-badge .cb-small {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.09em;
  font-family: 'Montserrat', 'Arial', sans-serif;
  text-transform: uppercase;
  opacity: 0.96;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.18),
    0 1px 0 #F16629;
}

.cashback-badge .cb-big {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.13em;
  font-family: 'Montserrat', 'Arial', sans-serif;
  text-transform: uppercase;
  opacity: 0.99;
  padding: 0.08em 0.4em;
  background: none;
  /* Slightly different: italic, subtle underline, and a bit more shadow */
  font-style: italic;
  border-bottom: 2px solid #fff3;
  text-shadow:
    0 3px 10px rgba(0,0,0,0.18),
    0 1px 0 #F16629,
    0 0 2px #fff;
}

/* -------------------------------------- */
/* PAGE-SPECIFIC NAVBAR OVERRIDES         */
/* -------------------------------------- */
.getquote-page .navbar {
  background: rgba(255,255,255,0.9) !important;
  box-shadow: none !important;
}
.getquote-page .navbar .nav-link,
.getquote-page .navbar .navbar-brand {
  color: #fff !important;
  font-weight: 500;
}
.getquote-page .navbar .nav-link:hover,
.getquote-page .navbar .nav-link:focus {
  color: #F16629 !important;
  background: #fff !important;
  border-radius: 0.3em;
}
.getquote-page .dropdown-menu {
  background: #fff3ea;
  border-radius: 0.5em;
  border: none;
}
.getquote-page .dropdown-item {
  color: #F16629 !important;
  font-weight: 500;
}
.getquote-page .dropdown-item:hover,
.getquote-page .dropdown-item:focus {
  background: #F16629 !important;
  color: #fff !important;
}

/* -------------------------------------- */
/* ENTRANCE ANIMATIONS                    */
/* -------------------------------------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.fade-in-down {
  opacity: 0;
  animation-name: fadeInDown;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
  animation-fill-mode: forwards;
}
/* per-element delays */
.getquote-headline.fade-in-down    { animation-delay: 0s; }
.getquote-subtitle.fade-in-down    { animation-delay: 0.2s; }

/* 2. Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.fade-in-up {
  opacity: 0;
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
  animation-fill-mode: forwards;
}
.form-overlay-wrapper.fade-in-up    { animation-delay: 0.4s; }

/* slideInRight */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100vw);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s cubic-bezier(.4,0,.2,1) forwards;
}
.cashback-badge.slide-in-right { animation-delay: 0.6s; }

/* -------------------------------------- */
/* MOBILE PORTRAIT (360px–425px)         */
/* -------------------------------------- */
@media (max-width: 430px) and (orientation: portrait) {
  body, html {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Old IE/Edge */
  }
  .toast-message-wrap {
    top: clamp(4rem, 12vw, 5.5rem);
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
  }
  .toast-message {
    max-width: none;
    width: calc(100vw - 1.5rem);
    margin: 0 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.6rem;
    font-size: clamp(1.05rem, 3.8vw, 1.15rem);
    line-height: 1.45;
    word-break: break-word;
    hyphens: auto;
  }
  .getquote-hero {
    margin-top: -20vw;
    padding-top: 8rem;
    background-position: 35% center;
  }
  .getquote-hero .cashback-badge {
    display: none !important;
  }
  .form-overlay {
    background: rgba(255, 139, 89, 0.738) !important;
  }
  .form-overlay .btn-quote {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
  }
}