/* =====================================================
   GET QUOTE
===================================================== */
.hero.home-hero.quote-hero{
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  isolation: isolate;
}

.hero.home-hero.quote-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;

  background-image: url("../images/getquote.webp") !important;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 58% 2%;

  opacity: 0;
  transform: translate3d(0,0,0) scale(1.35);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: center center;
}

.page-loaded .hero.home-hero.quote-hero::before{
  animation: heroMovieIn 1600ms cubic-bezier(.22, 1, .25, 1) both;
}

@keyframes heroMovieIn{
  to { opacity: 1; transform: translate3d(0,0,0) scale(1.00); }
}

.hero.home-hero.quote-hero::after{
  content: none !important;
}

/* -------------------------------
   OVERLAY
-------------------------------- */
.hero.home-hero.quote-hero .hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22),
    rgba(255,255,255,0) 18%
  );
}

/* -------------------------------
   HERO CONTENT LAYER
-------------------------------- */
.hero.home-hero.quote-hero .hero-inner.quote-hero-inner{
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero.home-hero.quote-hero .hero-inner{
  opacity: 1;
  transform: none;
  animation: none;
}

.hero.home-hero.quote-hero .hero-overlay{
  opacity: 1;
  transform: none;
  animation: none;
}

.quote-hero-stack{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* -------------------------------
   FORM POSITIONING
-------------------------------- */
.quote-hero-wrap{
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 62px; /* slightly more space */
}

/* -------------------------------
   FORM CARD — SMOOTH ENTRANCE
-------------------------------- */
.quote-hero-card{
  position: relative;
  width: min(1040px, 94vw);
  border-radius: 28px;
  padding: 1.5rem 2.7rem 1rem;

  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: 0 24px 55px rgba(15,23,42,0.10);

  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  will-change: transform, opacity;
}

.quote-hero-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: rgba(255,255,255,0.55);
  opacity: 1;
  transition: opacity 900ms cubic-bezier(.16, 1, .24, 1);
  pointer-events:none;
}

.page-loaded .quote-hero-card{
  animation: quoteCardLift 1600ms cubic-bezier(.16, 1, .24, 1) both;
  animation-delay: 420ms;
}

.page-loaded .quote-hero-card::before{
  opacity: 0;
  transition-delay: 520ms;
}

@keyframes quoteCardLift{
  0%   { opacity: 0; transform: translate3d(0, 34px, 0) scale(0.985); }
  65%  { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.003); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* -------------------------------
   FORM GRID
-------------------------------- */
.quote-grid{
  display: grid;
  gap: 1.55rem 1.7rem; /* more breathing room */
}

.quote-grid.grid-3{
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.7rem;
}

.quote-grid.grid-2{
  grid-template-columns: repeat(2, 1fr);
}

/* -------------------------------
   FLOATING INPUTS / SELECTS
-------------------------------- */
.field{
  position: relative;
}

.field input,
.field select{
  width: 100%;
  height: 60px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.09);
  background: rgba(255,255,255,0.96);
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
  outline: none;
  box-shadow: 0 8px 18px rgba(15,23,42,0.07);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.field input:hover,
.field select:hover{
  border-color: rgba(24,157,216,0.18);
}

.field input:focus,
.field select:focus{
  border-color: rgba(24,157,216,0.45);
  box-shadow: 0 10px 24px rgba(15,23,42,0.09);
  transform: translateY(-1px);
}

/* date field */
.field input[type="date"]{
  padding-top: 0.78rem;
  color: #111827;
}

/* floating label base */
.field label{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  color: #189dd8;
  pointer-events: none;
  transition:
    top 0.22s ease,
    font-size 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
  background: rgba(255,255,255,0.94);
  padding: 0 .46rem;
  border-radius: 10px;
  white-space: nowrap;
}

/* normal input float */
.field input:focus + label,
.field input:not(:placeholder-shown) + label{
  top: -9px;
  transform: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #189dd8;
}

/* date field label always floated consistently */
.field input[type="date"] + label,
.field input[type="date"]:focus + label,
.field input[type="date"]:valid + label{
  top: -9px;
  transform: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #189dd8;
}

/* -------------------------------
   PLACEHOLDER COLOR = LABEL COLOR
-------------------------------- */

/* min / max placeholders */
.field--range .range-row input::placeholder{
  color: #189dd8;
  opacity: 1;
  font-weight: 500;
}

/* optional: keep placeholder same color on focus too */
.field--range .range-row input:focus::placeholder{
  color: #189dd8;
  opacity: 1;
}

/* -------------------------------
   DATE FIELD EMPTY = BLUE
   DATE FIELD FILLED = BLACK
-------------------------------- */

/* default entered text color */
.field input[type="date"]{
  padding-top: 0.78rem;
  color: #111827;
}

/* when empty / invalid, make native yyyy/mm/dd appear blue */
.field input[type="date"]:invalid{
  color: #189dd8;
}

/* WebKit browsers (Chrome, Edge, Safari) */
.field input[type="date"]:invalid::-webkit-datetime-edit{
  color: #189dd8;
}

.field input[type="date"]:valid::-webkit-datetime-edit{
  color: #111827;
}

/* -------------------------------
   SELECT
-------------------------------- */
.field--select select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 3.2rem;

  background-image:
    linear-gradient(45deg, transparent 50%, #189dd8 50%),
    linear-gradient(135deg, #189dd8 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 27px,
    calc(100% - 18px) 27px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.field--select select:focus + label,
.field--select select:valid + label{
  top: -9px;
  transform: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #189dd8;
}

/* -------------------------------
   PREMIUM RANGE
-------------------------------- */
.field--range{
  position: relative;
}

.field--range > label{
  top: -9px;
  transform: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #189dd8;
}

.field--range .range-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field--range .range-row input{
  height: 60px;
}

.field--range .range-hints{
  display: flex;
  justify-content: space-between;
  padding: 9px 20px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(24,157,216,0.88);
}

/* better number input look */
.field--range input[type="number"]{
  -moz-appearance: textfield;
  appearance: textfield;
}
.field--range input[type="number"]::-webkit-outer-spin-button,
.field--range input[type="number"]::-webkit-inner-spin-button{
  opacity: 0.7;
}

/* -------------------------------
   FIELD ENTRANCE (SMOOTH + STAGGER)
-------------------------------- */
.field,
.quote-submit{
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  will-change: transform, filter, opacity;
}

.page-loaded .field,
.page-loaded .quote-submit{
  animation: fieldIn 900ms cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 1250ms;
}

.page-loaded .field:nth-child(1){ animation-delay: 700ms; }
.page-loaded .field:nth-child(2){ animation-delay: 740ms; }
.page-loaded .field:nth-child(3){ animation-delay: 780ms; }
.page-loaded .field:nth-child(4){ animation-delay: 820ms; }
.page-loaded .field:nth-child(5){ animation-delay: 860ms; }
.page-loaded .field:nth-child(6){ animation-delay: 900ms; }
.page-loaded .field:nth-child(7){ animation-delay: 940ms; }
.page-loaded .field:nth-child(8){ animation-delay: 980ms; }
.page-loaded .field:nth-child(9){ animation-delay: 1020ms; }
.page-loaded .field:nth-child(10){ animation-delay: 1060ms; }
.page-loaded .field:nth-child(11){ animation-delay: 1100ms; }

.page-loaded .quote-submit{
  animation-delay: 1160ms;
}

@keyframes fieldIn{
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* -------------------------------
   SUBMIT
-------------------------------- */
.quote-submit{
  margin: 2.5rem auto 0;
  display: block;
  min-width: 290px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: #f4a91c;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.quote-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(0,0,0,.18);
  background: #f2a313;
}

/* -------------------------------
   BUTTONS PINNED TO BOTTOM
-------------------------------- */
.hero.home-hero.quote-hero .hero-cta-row{
  margin-top: auto;
  padding-bottom: 26px;
  z-index: 30;
}

/* =========================
   INTRO ROW (below hero)
========================= */
.quote-section{
  max-width: 1400px;
  margin-inline: auto;
  padding: 0.4rem 1.5rem 3rem;
}

.quote-intro-row{
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 3.2rem;
  align-items: start;
  margin: 1rem 0 2.2rem;
}

.quote-intro-title{
  margin: 0;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: #333;
  letter-spacing: -0.2px;
}

.quote-intro-title__sun{ color: #f4a91c; }
.quote-intro-title__sea{ color: #189dd8; }

.quote-intro-underline{
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: #189dd8;
  margin-top: 0.6rem;
}

.quote-intro-copy{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #000000;
  max-width: 760px;
  padding-top: 0.35rem;
}

/* =========================================================
   MOBILE PORTRAIT — GET QUOTE (FULL PAGE)
   ========================================================= */
@media (max-width: 430px) and (orientation: portrait) {

  html, body{
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body{
    scrollbar-width: none !important;
  }
  body::-webkit-scrollbar{
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .hero.home-hero.quote-hero{
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 1.5rem !important;
  }

  .hero.home-hero.quote-hero .hero-inner.quote-hero-inner{
    height: auto !important;
    min-height: auto !important;
  }

  .hero.home-hero.quote-hero::before{
    background-position: 55% 18%;
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
    animation: none;
  }

  body.page-loaded .hero.home-hero.quote-hero::before{
    animation: heroMobileZoomOnly 1400ms cubic-bezier(.22,1,.25,1) both;
  }

  @keyframes heroMobileZoomOnly{
    from { transform: translate3d(0,0,0) scale(1.7); }
    to   { transform: translate3d(0,0,0) scale(1.00); }
  }

  .hero.home-hero.quote-hero .hero-cta-row{
    display: none !important;
  }

  .quote-hero-wrap{
    align-items: flex-start !important;
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
    padding-top: calc(env(safe-area-inset-top) + 4.15rem) !important;
    padding-bottom: 1.5rem !important;
  }

  .quote-hero-card{
    width: 100% !important;
    border-radius: 20px !important;
    padding: 1.35rem 1.15rem 1.45rem !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    will-change: transform, opacity;
  }

  body.page-loaded .quote-hero-card{
    animation: mobileQuoteCardIn 700ms cubic-bezier(.22,1,.25,1) both;
    animation-delay: 300ms;
  }

  body:not(.page-loaded) .quote-hero-card{
    opacity: 1 !important;
    transform: none !important;
  }

  @keyframes mobileQuoteCardIn{
    from{
      opacity: 0;
      transform: scale(0.97);
    }
    to{
      opacity: 1;
      transform: scale(1);
    }
  }

  .quote-hero-card::before{
    display: none !important;
  }

  .quote-grid{
    gap: 1.3rem 1rem !important;
  }

  .quote-grid.grid-3,
  .quote-grid.grid-2{
    grid-template-columns: 1fr !important;
    margin-bottom: 1rem !important;
  }

  .field{
    margin-bottom: 0.22rem !important;
  }

  .field input,
  .field select{
    height: 52px !important;
    font-size: 1rem !important;
    padding: 0 1.1rem !important;
    box-shadow: 0 8px 16px rgba(15,23,42,0.08) !important;
  }

  .field select{
    padding-right: 2.9rem !important;
  }

  .field input[type="date"]{
    padding-top: 0.8rem !important;
  }

  .field label{
    left: 16px !important;
    font-size: 0.92rem !important;
  }

  .field input:focus + label,
  .field input:not(:placeholder-shown) + label,
  .field input[type="date"] + label,
  .field input[type="date"]:focus + label,
  .field input[type="date"]:valid + label,
  .field--select select:focus + label,
  .field--select select:valid + label{
    top: -9px !important;
    transform: none !important;
    font-size: 0.77rem !important;
    font-weight: 600 !important;
  }

  .field--range > label{
    top: -9px !important;
    transform: none !important;
    font-size: 0.77rem !important;
    font-weight: 600 !important;
  }

  .field--range .range-row{
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  .field--range .range-hints{
    display: none !important;
  }

  .field,
  .quote-submit{
    filter: none !important;
  }

  .quote-submit{
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    margin-top: 1.4rem !important;
    font-size: 1rem !important;
  }

  .quote-section{
    padding: 0.7rem 0.95rem 2.35rem !important;
  }

  .quote-intro-row{
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin: 0.25rem 0 1.4rem !important;
  }

  .quote-intro-title{
    font-size: clamp(1.25rem, 5.8vw, 1.6rem) !important;
    line-height: 1.22 !important;
  }

  .quote-intro-underline{
    width: 84px !important;
    margin-top: 0.5rem !important;
  }

  .quote-intro-copy{
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
    padding-top: 0 !important;
  }
}