/* ============================================
   QUOTE FORM v5 — Premium Redesign
   Cleaner, spacious, better visual hierarchy
   ============================================ */

.pq-form {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.06);
  max-width: 500px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.pq-form__header {
  text-align: center;
  margin-bottom: 24px;
}
.pq-form__header h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: #1a2332;
  margin: 0 0 4px;
}
.pq-form__header p {
  font-size: 0.875rem;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

.pq-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.pq-progress__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E2E8F0;
  transition: all 0.3s ease;
}
.pq-progress__dot--active {
  background: #0B8A8A;
  width: 32px;
  border-radius: 6px;
}

.pq-steps { position: relative; }
.pq-step { display: none; animation: pqSlideIn 0.3s ease; }
.pq-step--active { display: block; }
@keyframes pqSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.pq-step__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2332;
  text-align: center;
  margin-bottom: 18px;
}

.pq-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #0B8A8A;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  transition: color 0.2s ease;
}
.pq-back:hover { color: #077070; }

/* ============ STEP 1: Category Cards ============ */
.pq-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pq-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FAFBFC;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.pq-cat:hover {
  border-color: #CBD5E0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pq-cat--selected {
  border-color: #0B8A8A !important;
  background: #E8F5F5 !important;
  box-shadow: 0 0 0 3px rgba(11,138,138,0.1) !important;
}
.pq-cat__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #E8F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.pq-cat--selected .pq-cat__icon {
  background: #0B8A8A;
}
.pq-cat__icon svg, .pq-cat__icon i {
  color: #0B8A8A;
  width: 28px;
  height: 28px;
  transition: color 0.2s ease;
}
.pq-cat--selected .pq-cat__icon svg,
.pq-cat--selected .pq-cat__icon i {
  color: #fff !important;
}
.pq-cat__info { flex: 1; }
.pq-cat__name {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 2px;
}
.pq-cat__desc {
  font-size: 0.8125rem;
  color: #718096;
  line-height: 1.3;
}
.pq-cat__price {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #0B8A8A;
  white-space: nowrap;
}
.pq-cat--selected .pq-cat__price { color: #077070; }

/* ============ STEP 2: Product Cards ============ */
.pq-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.pq-product {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FAFBFC;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.pq-product:hover {
  border-color: #CBD5E0;
  background: #fff;
}
.pq-product--selected {
  border-color: #0B8A8A;
  background: #E8F5F5;
}
.pq-product__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #E8F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.pq-product--selected .pq-product__icon { background: #0B8A8A; }
.pq-product__icon svg, .pq-product__icon i {
  color: #0B8A8A;
  width: 22px;
  height: 22px;
}
.pq-product--selected .pq-product__icon svg,
.pq-product--selected .pq-product__icon i { color: #fff !important; }
.pq-product__info { flex: 1; min-width: 0; }
.pq-product__name {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a2332;
}
.pq-product__tag {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #F5A623;
  color: #1a2332;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.pq-product__price {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #0B8A8A;
  white-space: nowrap;
}
.pq-product__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pq-product__qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E0;
  background: #fff;
  color: #4A5568;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}
.pq-product__qty-btn:hover {
  border-color: #0B8A8A;
  color: #0B8A8A;
  background: #E8F5F5;
}
.pq-product__qty-num {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1a2332;
  min-width: 22px;
  text-align: center;
}

/* Summary bar */
.pq-summary {
  background: linear-gradient(135deg, #E8F5F5 0%, #f0fafa 100%);
  border: 1.5px solid #0B8A8A;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: none;
}
.pq-summary--visible { display: block; }
.pq-summary__items {
  font-size: 0.875rem;
  color: #4A5568;
  margin-bottom: 10px;
  line-height: 1.6;
}
.pq-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(11,138,138,0.2);
}
.pq-summary__total-label {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1a2332;
}
.pq-summary__total-price {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #0B8A8A;
}
.pq-summary__note {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 6px;
}

/* ============ STEP 3: Contact Fields ============ */
.pq-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.pq-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A5568;
  margin-bottom: 5px;
}
.pq-field input,
.pq-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: #1a2332;
  background: #FAFBFC;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.pq-field input:focus,
.pq-field select:focus {
  border-color: #0B8A8A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11,138,138,0.08);
}
.pq-field input::placeholder { color: #A0AEC0; }
.pq-field--error input,
.pq-field--error select {
  border-color: #E53E3E !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.08) !important;
}
.pq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .pq-field-row { grid-template-columns: 1fr; }
}

/* Order summary card */
.pq-order-summary {
  background: #F7F8FA;
  border-left: 4px solid #0B8A8A;
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.pq-order-summary__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #718096;
  margin-bottom: 8px;
}
.pq-order-summary__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #2D3436;
  padding: 3px 0;
}
.pq-order-summary__line span:last-child { font-weight: 600; }
.pq-order-summary__total {
  display: flex;
  justify-content: space-between;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #0B8A8A;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid #E2E8F0;
}
.pq-order-summary__includes {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pq-order-summary__includes svg {
  width: 14px;
  height: 14px;
  color: #38A169;
}

/* Buttons */
.pq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pq-btn--next {
  background: #0B8A8A;
  color: #fff;
}
.pq-btn--next:hover {
  background: #077070;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,138,138,0.25);
}
.pq-btn--submit {
  background: #F5A623;
  color: #1a2332;
  font-size: 1.0625rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245,166,35,0.3);
}
.pq-btn--submit:hover {
  background: #D4900E;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,166,35,0.35);
}
.pq-btn--call {
  background: transparent;
  color: #0B8A8A;
  border: 2px solid #0B8A8A;
  margin-top: 8px;
}
.pq-btn--call:hover {
  background: #0B8A8A;
  color: #fff;
}
.pq-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.pq-trust {
  text-align: center;
  font-size: 0.75rem;
  color: #A0AEC0;
  margin-top: 14px;
  line-height: 1.5;
}

/* Thank you */
.pq-thankyou {
  text-align: center;
  padding: 28px 8px;
}
.pq-thankyou__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38A169 0%, #2F855A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pq-thankyou__icon svg { width: 32px; height: 32px; color: #fff; }
.pq-thankyou h3 { font-size: 1.25rem; margin-bottom: 8px; color: #1a2332; }
.pq-thankyou p { font-size: 0.9375rem; color: #4A5568; margin-bottom: 16px; }

/* ============ DARK VARIANT ============ */
.pq-form--dark {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.pq-form--dark .pq-form__header h3,
.pq-form--dark .pq-step__title,
.pq-form--dark .pq-cat__name,
.pq-form--dark .pq-product__name,
.pq-form--dark .pq-product__qty-num { color: #fff; }
.pq-form--dark .pq-form__header p,
.pq-form--dark .pq-cat__desc,
.pq-form--dark .pq-trust { color: rgba(255,255,255,0.6); }
.pq-form--dark .pq-progress__dot { background: rgba(255,255,255,0.25); }
.pq-form--dark .pq-progress__dot--active { background: #0FA5A5; }
.pq-form--dark .pq-cat { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.pq-form--dark .pq-cat:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.pq-form--dark .pq-cat--selected { background: rgba(11,138,138,0.15) !important; border-color: #0FA5A5 !important; }
.pq-form--dark .pq-product { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.pq-form--dark .pq-product:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.pq-form--dark .pq-product--selected { background: rgba(11,138,138,0.15); border-color: #0FA5A5; }
.pq-form--dark .pq-field label { color: rgba(255,255,255,0.6); }
.pq-form--dark .pq-field input,
.pq-form--dark .pq-field select { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff; }
.pq-form--dark .pq-field input::placeholder { color: rgba(255,255,255,0.35); }
.pq-form--dark .pq-field input:focus,
.pq-form--dark .pq-field select:focus { border-color: #F5A623; box-shadow: 0 0 0 3px rgba(245,166,35,0.15); background: rgba(255,255,255,0.12); }
.pq-form--dark .pq-summary { background: rgba(11,138,138,0.12); border-color: rgba(15,165,165,0.4); }
.pq-form--dark .pq-summary__items { color: rgba(255,255,255,0.7); }
.pq-form--dark .pq-summary__total-label { color: #fff; }
.pq-form--dark .pq-summary__total-price { color: #F5A623; }
.pq-form--dark .pq-order-summary { background: rgba(255,255,255,0.06); border-left-color: #F5A623; }
.pq-form--dark .pq-order-summary__title { color: rgba(255,255,255,0.5); }
.pq-form--dark .pq-order-summary__line { color: rgba(255,255,255,0.8); }
.pq-form--dark .pq-order-summary__total { color: #F5A623; border-top-color: rgba(255,255,255,0.1); }
.pq-form--dark .pq-back { color: #0FA5A5; }
.pq-form--dark .pq-product__qty-btn { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.pq-form--dark .pq-product__qty-btn:hover { border-color: #0FA5A5; color: #0FA5A5; }
.pq-form--dark .pq-thankyou h3 { color: #fff; }
.pq-form--dark .pq-thankyou p { color: rgba(255,255,255,0.7); }
.pq-form--dark .pq-order-summary__includes { color: rgba(255,255,255,0.5); }

/* Spinner */
.pq-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0,0,0,0.2);
  border-top-color: #1a2332;
  border-radius: 50%;
  animation: pqSpin 0.6s linear infinite;
}
@keyframes pqSpin { to { transform: rotate(360deg); } }
