/* ============================================================
   REQUEST A QUOTE — BigBattery
   ============================================================ */

:root {
  --rfq-blue:        #165ea0;
  --rfq-blue-light:  #e8f1fb;
  --rfq-blue-dark:   #0d3f6e;
  --rfq-green:       #3bb54a;
  --rfq-border:      #e2e8f0;
  --rfq-bg:          #f0f4f8;
  --rfq-card:        #ffffff;
  --rfq-text:        #1e293b;
  --rfq-muted:       #64748b;
  --rfq-radius:      10px;
  --rfq-shadow:      0 2px 16px rgba(22, 94, 160, 0.08);
}

/* ── Wrapper ── */
.bb-rfq {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  font-family: 'Inter', sans-serif;
  color: var(--rfq-text);
}

/* ── Header ── */
.bb-rfq__header {
  text-align: center;
  margin-bottom: 36px;
}

.bb-rfq__logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.bb-rfq__title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: var(--rfq-blue);
  margin: 0 0 12px;
  line-height: 1.2;
}

.bb-rfq__lede {
  font-size: 15px;
  color: var(--rfq-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Honeypot ── */
.bb-rfq__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Steps bar ── */
.bb-rfq__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: none;
}

.bb-rfq__step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--rfq-card);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bb-rfq__step-indicator.is-active {
  border-color: var(--rfq-blue);
  background: var(--rfq-blue-light);
  box-shadow: 0 0 0 3px rgba(22, 94, 160, 0.12);
}

.bb-rfq__step-indicator.is-done {
  border-color: var(--rfq-green);
  background: #f0fbf2;
}

.bb-rfq__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rfq-border);
  color: var(--rfq-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.bb-rfq__step-indicator.is-active .bb-rfq__step-num {
  background: var(--rfq-blue);
  color: #fff;
}

.bb-rfq__step-indicator.is-done .bb-rfq__step-num {
  background: var(--rfq-green);
  color: #fff;
}

.bb-rfq__step-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rfq-muted);
}

.bb-rfq__step-indicator.is-active .bb-rfq__step-label {
  color: var(--rfq-blue-dark);
}

.bb-rfq__step-indicator.is-done .bb-rfq__step-label {
  color: #1a6b2c;
}

/* ── Panel card ── */
.bb-rfq__panel {
  display: none;
  padding: 32px 28px;
  background: var(--rfq-card);
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  box-shadow: var(--rfq-shadow);
}

.bb-rfq__panel.is-active {
  display: block;
}

.bb-rfq__panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rfq-blue);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rfq-blue-light);
}

/* ── Fields ── */
.bb-rfq__field {
  margin: 20px 0;
}

.bb-rfq__field fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.bb-rfq__field legend,
.bb-rfq__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rfq-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.bb-rfq__label input,
.bb-rfq__label select,
.bb-rfq__label textarea {
  margin-top: 8px;
  width: 100%;
}

.bb-rfq__hint {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--rfq-muted);
  margin-top: 2px;
}

/* ── Inputs / selects / textarea ── */
.bb-rfq input[type="text"],
.bb-rfq input[type="email"],
.bb-rfq input[type="tel"],
.bb-rfq select,
.bb-rfq textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rfq-border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--rfq-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.bb-rfq input[type="text"]:focus,
.bb-rfq input[type="email"]:focus,
.bb-rfq input[type="tel"]:focus,
.bb-rfq select:focus,
.bb-rfq textarea:focus {
  outline: none;
  border-color: var(--rfq-blue);
  box-shadow: 0 0 0 3px rgba(22, 94, 160, 0.12);
}

.bb-rfq textarea {
  resize: vertical;
  min-height: 100px;
}

.bb-rfq .required {
  color: #e53e3e;
}

/* ── Option cards (radio / checkbox) ── */
.bb-rfq__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.bb-rfq__options--inline .bb-rfq__option {
  flex: 1 1 180px;
}

.bb-rfq__options--wrap .bb-rfq__option {
  flex: 0 1 auto;
}

.bb-rfq__options--grid-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.bb-rfq__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  padding: 12px 10px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  gap: 6px;
}

.bb-rfq__option:hover {
  border-color: var(--rfq-blue);
  background: var(--rfq-blue-light);
}

.bb-rfq__option:has(input:checked) {
  border-color: var(--rfq-blue);
  background: var(--rfq-blue-light);
  box-shadow: 0 0 0 3px rgba(22, 94, 160, 0.12);
}

.bb-rfq__option input[type="radio"],
.bb-rfq__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--rfq-blue);
  flex-shrink: 0;
}

.bb-rfq__option img {
  display: block;
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: 4px;
}

/* Inline option (checkbox + label, no card) */
.bb-rfq__option--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 4px 0;
  box-shadow: none;
  font-size: 14px;
}

.bb-rfq__option--inline:hover {
  background: transparent;
  border-color: transparent;
}

/* ── Row grids ── */
.bb-rfq__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bb-rfq__row--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Other field (hidden until "Other" selected) ── */
.bb-rfq__other {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: var(--rfq-bg);
  border-radius: 6px;
  border: 1px solid var(--rfq-border);
}

.bb-rfq__other-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--rfq-text);
}

.bb-rfq__other-input {
  width: 100%;
  box-sizing: border-box;
}

/* ── Nav buttons ── */
.bb-rfq__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rfq-border);
}

.bb-rfq__nav .button {
  min-width: 130px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  text-align: center;
}

.bb-rfq__next,
.bb-rfq__submit {
  background: var(--rfq-blue);
  color: #fff !important;
  border-color: var(--rfq-blue) !important;
}

.bb-rfq__next:hover,
.bb-rfq__submit:hover {
  background: var(--rfq-blue-dark);
  border-color: var(--rfq-blue-dark) !important;
}

.bb-rfq__prev {
  background: #fff;
  color: var(--rfq-muted) !important;
  border-color: var(--rfq-border) !important;
}

.bb-rfq__prev:hover {
  background: var(--rfq-bg);
  color: var(--rfq-text) !important;
}

/* ── Alerts ── */
.woocommerce-message,
.woocommerce-error {
  border-radius: var(--rfq-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bb-rfq {
    padding: 20px 12px 48px;
  }

  .bb-rfq__panel {
    padding: 20px 16px;
  }

  .bb-rfq__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .bb-rfq__step-label {
    font-size: 11px;
  }

  .bb-rfq__row,
  .bb-rfq__row--3 {
    grid-template-columns: 1fr;
  }

  .bb-rfq__options--inline .bb-rfq__option {
    flex: 1 1 140px;
  }

  .bb-rfq__nav {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .bb-rfq__nav .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .bb-rfq__steps {
    grid-template-columns: 1fr 1fr;
  }

  .bb-rfq__step-indicator {
    padding: 8px 10px;
    gap: 7px;
  }

  .bb-rfq__step-num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .bb-rfq__step-label {
    font-size: 10px;
  }

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

  .bb-rfq__options--inline .bb-rfq__option {
    flex: 1 1 100%;
  }
}
