/* Get a Quote page — two-column form + side panel, product picker, and a
   "How it works" process strip. Builds on forms-custom.css (the shared
   .premium-form-card) and uses the site's CSS variables so it follows
   Admin > Site Settings > Colors. */

/* ---------- Section ---------- */
.quote-section {
  position: relative;
  overflow: clip;
}

.quote-section-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: quote-glow-drift 14s ease-in-out infinite alternate;
}

.quote-section-glow-one {
  top: -60px;
  right: 4%;
  width: 360px;
  height: 360px;
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
}

.quote-section-glow-two {
  bottom: 40px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: color-mix(in srgb, var(--heading-color), transparent 93%);
  animation-delay: -7s;
}

@keyframes quote-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

/* ---------- Form card ---------- */
.quote-form-card {
  padding: 40px 40px 34px;
}

.quote-form-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.quote-form-intro {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 26px;
}

.quote-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading-color);
}

.quote-step-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 88%);
}

.quote-step-label-spaced {
  margin: 14px 0 2px;
}

.quote-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* The vendor theme gives the form a grey box; the card is enough here. */
.quote-form-card .php-email-form {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* ---------- Product picker ---------- */
.quote-product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quote-product-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 8px 10px;
  background: var(--surface-color);
  border: 1.5px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-product-option:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--default-color), transparent 90%);
}

.quote-product-option-image {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
}

.quote-product-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quote-product-option:hover .quote-product-option-image img {
  transform: scale(1.08);
}

.quote-product-option-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
}

.quote-product-option-check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quote-product-option.is-selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.quote-product-option.is-selected .quote-product-option-check {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Fields with icons ---------- */
.quote-field {
  position: relative;
  display: block;
  margin: 0;
}

.quote-field > i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.25s ease;
}

.quote-field-textarea > i {
  top: 16px;
  transform: none;
}

/* Extra specificity to beat main.css's ".get-a-quote .php-email-form
   input[type=text]" rules (square corners, 15px left padding). */
.get-a-quote .quote-form-card .php-email-form .quote-field .form-control {
  padding: 12px 16px 12px 44px;
  min-height: 50px;
  font-size: 14px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 97%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.get-a-quote .quote-form-card .php-email-form .quote-field .form-control:focus {
  background-color: var(--surface-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 82%);
}

.quote-field:focus-within > i {
  color: var(--accent-color);
}

/* ---------- Submit ---------- */
.quote-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.get-a-quote .quote-form-card .php-email-form button.quote-submit-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border: 0;
  border-radius: 30px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
}

/* Soft light sweep across the button every few seconds. */
.quote-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transform: skewX(-20deg);
  animation: quote-button-shine 3.6s ease-in-out infinite;
}

.quote-submit-btn i {
  transition: transform 0.3s ease;
}

.quote-submit-btn:hover i {
  transform: translate(3px, -3px);
}

@keyframes quote-button-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

.quote-privacy-note {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.quote-privacy-note i {
  color: var(--accent-color);
}

/* ---------- Side panel ---------- */
.quote-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 992px) {
  .quote-aside {
    position: sticky;
    top: 110px;
  }
}

.quote-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 45px color-mix(in srgb, var(--default-color), transparent 88%);
  /* Same cut-corner shape used by the home hero and certification tiles. */
  border-radius: 50px 12px 50px 12px;
}

.quote-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: quote-visual-zoom 18s ease-in-out infinite alternate;
}

@keyframes quote-visual-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.quote-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--heading-color), transparent 35%) 100%);
}

.quote-visual-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.95);
  color: var(--heading-color);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.15);
  animation: quote-badge-float 4s ease-in-out infinite;
}

.quote-visual-badge i {
  color: var(--accent-color);
}

.quote-visual-badge-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.quote-visual-badge-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: quote-pulse 1.8s ease-out infinite;
}

@keyframes quote-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes quote-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.quote-aside-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  border-radius: 18px;
  padding: 24px;
}

.quote-aside-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.quote-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.quote-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.quote-points-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
  color: var(--accent-color);
  font-size: 15px;
}

.quote-contact-links {
  display: grid;
  gap: 10px;
}

.quote-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.quote-contact-link small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--default-color), transparent 32%);
}

.quote-contact-link:hover {
  color: var(--heading-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  transform: translateX(4px);
}

.quote-contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-color);
  color: #fff;
  font-size: 16px;
}

.quote-contact-link-whatsapp .quote-contact-icon {
  background: #25d366;
}

/* ---------- Process strip ---------- */
.quote-process {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color), transparent 96%), var(--background-color));
}

.quote-process-header {
  text-align: center;
  margin-bottom: 50px;
}

.quote-process-header h2 {
  font-size: calc(2rem * var(--type-display-scale, 1));
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.quote-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Connecting line behind the step icons — draws itself in once AOS marks
   the grid as visible. */
.quote-process-line {
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent-color), transparent 40%) 0 8px, transparent 8px 16px);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.quote-process-grid.aos-animate .quote-process-line {
  transform: scaleX(1);
}

.quote-process-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease var(--step-delay, 0s), transform 0.6s ease var(--step-delay, 0s);
}

.quote-process-grid.aos-animate .quote-process-step {
  opacity: 1;
  transform: none;
}

.quote-process-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-color), transparent 82%);
  color: var(--accent-color);
  font-size: 28px;
  transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.quote-process-step:hover .quote-process-icon {
  transform: translateY(-6px) rotate(-4deg);
  background: var(--accent-color);
  color: #fff;
}

.quote-process-number {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--heading-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 26px;
}

.quote-process-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.quote-process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .quote-process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .quote-process-line {
    display: none;
  }
}

@media (max-width: 575px) {
  .quote-form-card {
    padding: 28px 20px;
  }

  .quote-form-title {
    font-size: 1.5rem;
  }

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

  .quote-submit-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .get-a-quote .quote-form-card .php-email-form button.quote-submit-btn {
    justify-content: center;
  }

  .quote-process-grid {
    grid-template-columns: 1fr;
  }

  .quote-process-header h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-section-glow,
  .quote-visual-image,
  .quote-visual-badge,
  .quote-visual-badge-pulse::after,
  .quote-submit-btn::after {
    animation: none;
  }

  .quote-process-line,
  .quote-process-step {
    transition: none;
  }
}
