/* ==========================================================================
   Storage Station — quote.css
   Page: "הצעת מחיר" (Figma node 213:996)
   Depends on css/base.css. Class prefix: quote-.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — text + form (right column) / image (left column)
   -------------------------------------------------------------------------- */
.quote-hero { padding-block: clamp(24px, 3.3vw, 64px) 0; }
.quote-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 716fr) minmax(0, 830fr);   /* RTL: first column = right */
  gap: 40px clamp(32px, 7.1vw, 136px);
  align-items: stretch;
}
.quote-hero__content { display: flex; flex-direction: column; }
.quote-hero__title {
  color: var(--color-blue-dark);
  line-height: 0.85;                          /* 69 / 75px on 85px type */
}
.quote-hero__text {
  margin-top: clamp(14px, 1.3vw, 25px);
  font-size: clamp(18px, 1.4vw, 26.9px);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-gray);
}

/* Image with rounded corners; Figma crop is slightly zoomed and offset */
.quote-hero__media {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: clamp(20px, 1.77vw, 34px);
}
.quote-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 54% 54%;
  transform: scale(1.11);
}

/* --------------------------------------------------------------------------
   2. Quote form card
   -------------------------------------------------------------------------- */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 712px;
  margin-top: clamp(24px, 2vw, 38px);
  padding: 37px 42px 20px 36px;              /* right 42 / left 36 in Figma */
  background: var(--color-white);
  border-radius: 23px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.quote-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quote-form__group { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.quote-form__label {
  font-size: 15.6px;
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-blue-dark);
}
.quote-form__legend {
  padding: 0;
  font-size: clamp(18px, 1.05vw, 20.2px);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  color: var(--color-blue-dark);
}

.quote-form__input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: var(--color-bg-tint);
  border: 2px solid transparent;
  border-radius: 5px;
  font-size: 15.6px;
  font-weight: var(--fw-bold);
  color: var(--color-blue-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.quote-form__input::placeholder { color: var(--color-blue-dark); opacity: 0.3; }
.quote-form__input:focus { outline: none; border-color: var(--color-main); box-shadow: 0 0 0 3px rgba(17, 123, 188, 0.2); }
.quote-form__textarea { min-height: 92px; resize: vertical; }
.quote-form__group--items { gap: 23px; }

/* Storage-type choice: radio cards */
.quote-form__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quote-form__fieldset .quote-form__legend { margin-bottom: 23px; }
.quote-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quote-option { display: block; cursor: pointer; }
.quote-option__box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
  padding: 12px 8px 14px;
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
  font-size: clamp(17px, 1.05vw, 20.2px);
  font-weight: var(--fw-bold);
  line-height: 1.22;
  text-align: center;
  color: var(--color-secondary);
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}
.quote-option:hover .quote-option__box { border-color: var(--color-main); color: var(--color-main); }
.quote-option input:checked + .quote-option__box { border-color: var(--color-blue-dark); color: var(--color-blue-dark); }
.quote-option input:focus-visible + .quote-option__box { outline: 2px solid var(--color-main); outline-offset: 3px; }

/* Submit: dark-blue, light-blue text + arrow */
.quote-form__submit {
  width: 100%;
  min-height: 60px;
  margin-top: 0;
  padding: 12px 24px;
  background: var(--color-blue-dark);
  border-color: var(--color-white);
  border-width: 1.42px;
  border-radius: 11.35px;
  font-size: clamp(20px, 1.5vw, 28.7px);
  font-weight: var(--fw-regular);
  color: var(--color-secondary);
  gap: 14px;
}
.quote-form__submit:hover { background: #053D70; }
.quote-form__submit .btn__icon { width: 1.19em; height: 0.99em; }

.quote-form__status {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--color-blue-dark);
  text-align: center;
}

/* --------------------------------------------------------------------------
   3. CTA band — "עדיין לא בטוחים כמה מקום צריך?"
   -------------------------------------------------------------------------- */
.quote-cta { padding-block: clamp(80px, 11vw, 212px) clamp(64px, 9vw, 172px); }
.quote-cta__band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;                  /* RTL: content sits on the left, image on the right */
  min-height: clamp(320px, 22.2vw, 426px);
  padding: clamp(40px, 4.6vw, 88px) clamp(24px, 4.9vw, 94px);
  background: linear-gradient(72.88deg, #064A88 20.381%, #0F528E 36.18%, #117BBC 97.342%);
  border-radius: clamp(20px, 1.6vw, 31px);
}
.quote-cta__content {
  position: relative;
  z-index: 1;
  width: min(100%, 961px);
  color: var(--color-white);
}
.quote-cta__title {
  font-size: clamp(30px, 3.54vw, 68px);
  font-weight: var(--fw-bold);
  line-height: 0.95;
}
.quote-cta__text {
  margin-top: clamp(10px, 0.9vw, 17px);
  font-size: clamp(20px, 2.23vw, 42.75px);
  font-weight: var(--fw-medium);
  line-height: 1.25;
}
.quote-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(16px, 1.3vw, 25px);
  margin-top: clamp(20px, 1.9vw, 36px);
}
.quote-cta__btn {
  flex: 0 1 464px;
  min-height: clamp(56px, 4.06vw, 78px);
  padding: 12px 32px;
  border-width: 1.84px;
  border-color: var(--color-white);
  border-radius: clamp(10px, 0.77vw, 14.7px);
  font-size: clamp(20px, 1.94vw, 37.2px);
  font-weight: var(--fw-regular);
}
.quote-cta__btn--dark  { background: var(--color-blue-dark); color: var(--color-secondary); }
.quote-cta__btn--dark:hover  { background: #053D70; }
.quote-cta__btn--light { background: var(--color-secondary); color: var(--color-blue-dark); }
.quote-cta__btn--light:hover { background: #8FCBF0; }

/* Boxes + chair illustration overflowing the band on the right */
.quote-cta__image {
  position: absolute;
  top: -68.3%;                                /* 291px above a 426px band */
  right: -8%;
  width: 44%;
  max-width: 740px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .quote-cta__content { width: 64%; }
  .quote-cta__image { right: -2%; width: 40%; top: auto; bottom: -20%; }
}

@media (max-width: 900px) {
  .quote-hero__inner { grid-template-columns: 1fr; }
  .quote-hero__media { aspect-ratio: 830 / 600; min-height: 0; }
  .quote-form { max-width: none; }

  .quote-cta { padding-top: clamp(160px, 40vw, 280px); }
  .quote-cta__band { flex-direction: column; align-items: stretch; }
  .quote-cta__content { width: 100%; }
  .quote-cta__image { top: auto; bottom: 100%; right: 50%; transform: translate(50%, 20%); width: min(62%, 360px); }
}

/* ==========================================================================
   ≤768px — MOBILE (Figma 341:5558, 400px frame)
   Centered title/text · [form card | lock image peeking from the left edge] ·
   full-width submit under the card · CTA card with the boxes image overflowing
   its bottom. The content/form wrappers use display:contents so their children
   join one grid; the white card is drawn by .quote-hero__inner::before.
   ========================================================================== */
@media (max-width: 768px) {
  /* ---- Hero grid ---- */
  .quote-hero { padding-top: 9px; }
  .quote-hero__inner {
    grid-template-columns: minmax(0, 271fr) minmax(0, 90fr);
    grid-template-areas:
      "title  title"
      "text   text"
      "f1     media"
      "f2     media"
      "f3     media"
      "submit submit"
      "status status";
    gap: 0 7px;
  }
  .quote-hero__inner::before {           /* white form card (271 × 374, radius 11.9) */
    content: "";
    grid-column: 1;
    grid-row: 3 / 6;
    margin-top: 21px;                    /* 21px below the intro text */
    background: var(--color-white);
    border-radius: 11.92px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .quote-hero__content,
  .quote-form { display: contents; }

  .quote-hero__title {
    grid-area: title;
    font-size: 42px;
    line-height: 36px;
    letter-spacing: -1.26px;
    text-align: center;
  }
  .quote-hero__text {
    grid-area: text;
    margin-top: 15px;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
  }

  /* Lock image: fills the left column and bleeds to the viewport edge */
  .quote-hero__media {
    grid-area: media;
    aspect-ratio: auto;
    min-height: 0;
    margin-top: 21px;
    margin-left: calc(var(--gutter) * -1);
    border-radius: 0 15.84px 15.84px 0;
  }
  .quote-hero__media img { object-position: 85% 50%; transform: none; }

  /* ---- Form fields inside the card (16px right / 14px left padding) ---- */
  .quote-form__row,
  .quote-form__fieldset,
  .quote-form__group--items { position: relative; margin-inline: 16px 14px; }
  .quote-form__row { grid-area: f1; grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }  /* 21px gap above the card + 11px padding */
  .quote-form__fieldset { grid-area: f2; margin-top: 17.5px; }
  .quote-form__group--items { grid-area: f3; gap: 6px; margin-top: 13.5px; margin-bottom: 17px; }
  .quote-form__group { gap: 7px; }

  .quote-form__label,
  .quote-form__legend { font-size: 11px; line-height: 14px; }
  .quote-form__fieldset .quote-form__legend { margin-bottom: 6px; }
  .quote-form__input {
    min-height: 34px;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: 3.75px;
    font-size: 16px;                     /* ≥16px avoids iOS zoom on focus */
  }
  .quote-form__input::placeholder { font-size: 11.67px; }
  .quote-form__textarea { min-height: 83px; padding-top: 6px; border-radius: 2.58px; resize: none; }
  .quote-form__textarea::placeholder { font-size: 10px; }

  .quote-options { gap: 5px; }
  .quote-option__box {
    height: 77.5px;
    padding: 6px 4px 7px;
    border-width: 1.03px;
    border-radius: 2.58px;
    font-size: 10.43px;
    line-height: 12.7px;
  }

  /* ---- Submit: full width under the card ---- */
  .quote-form__submit {
    grid-area: submit;
    min-height: 40.58px;
    margin-top: 22px;
    padding: 9.44px 18.87px;
    gap: 7.86px;
    border-width: 0.79px;
    border-radius: 6.29px;
    font-size: 15.9px;
    color: var(--color-white);
  }
  .quote-form__submit .btn__icon { width: 18.87px; height: 15.73px; }
  .quote-form__status { grid-area: status; margin-top: 12px; }

  /* ---- CTA card (368 × 426) — boxes image overflows 151px below it ---- */
  .quote-cta { padding-block: 41px calc(151px + var(--section-space)); }
  .quote-cta__band {
    display: block;
    min-height: 426px;
    padding: 40px 16px 0;
    background: linear-gradient(86.14deg, #064A88 20.381%, #0F528E 36.18%, #117BBC 97.342%);
    border-radius: 31px;
    text-align: center;
  }
  .quote-cta__content { width: auto; }
  .quote-cta__title { max-width: 243px; margin-inline: auto; font-size: 34px; line-height: 29px; letter-spacing: -0.48px; }
  .quote-cta__text { max-width: 241px; margin: 0 auto; font-size: 14px; line-height: 13.45px; }
  .quote-cta__actions { display: none; }   /* not part of the mobile design */
  .quote-cta__image {                    /* 400 × 407 crop of the 1100 × 1365 PNG, bottom-aligned */
    top: 170px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(calc(100% + 32px), 400px);   /* 400px at a 400px frame, capped on wider phones */
    max-width: none;
    height: auto;
    aspect-ratio: 400 / 407;
    object-fit: cover;
    object-position: 50% 100%;
    transform: translateX(calc(-50% + 5px));
  }
}
