/* ─────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────── */
.q-header {
  background: var(--black);
  padding: 80px 28px 70px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.q-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.q-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.q-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.93;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.q-hero-title .accent { color: var(--green); }

.q-hero-sub {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
}

/* ─────────────────────────────────────────
   SECTION WRAPPER
───────────────────────────────────────── */
.q-section {
  background: var(--black);
  padding: 60px 28px 120px;
}

.q-inner {
  max-width: 760px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   STEP INDICATOR
───────────────────────────────────────── */
.q-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 52px;
}

.q-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.q-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.q-step-circle span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.q-step-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  transition: color 0.3s;
}

/* Active step */
.q-step-item.active .q-step-circle {
  border-color: var(--green);
  background: rgba(180,243,112,0.1);
}
.q-step-item.active .q-step-circle span { color: var(--green); }
.q-step-item.active .q-step-label { color: var(--white); }

/* Completed step */
.q-step-item.completed .q-step-circle {
  border-color: var(--green);
  background: var(--green);
}
.q-step-item.completed .q-step-circle span { color: var(--black); }
.q-step-item.completed .q-step-circle span::before {
  content: '✓';
  font-size: 0.75rem;
}
.q-step-item.completed .q-step-label { color: rgba(255,255,255,0.5); }

/* Connecting line */
.q-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 10px;
  margin-bottom: 26px;
  transition: background 0.3s;
}

.q-step-line.completed { background: var(--green); }

/* ─────────────────────────────────────────
   ERROR MESSAGE
───────────────────────────────────────── */
.q-error {
  display: none;
  background: rgba(255,80,80,0.12);
  border: 1px solid rgba(255,80,80,0.35);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #ff8080;
  margin-bottom: 28px;
}

.q-error.visible { display: block; }

/* ─────────────────────────────────────────
   STEP PANELS
───────────────────────────────────────── */
.q-panel {
  display: none;
}

.q-panel.active {
  display: block;
}

.q-panel-header {
  margin-bottom: 38px;
}

.q-panel-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.q-panel-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.q-fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Inherit existing form-group styles from styles.css */

.req {
  color: var(--green);
  font-style: normal;
}

.q-hint {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  text-transform: none;
  margin-left: 6px;
}

/* ─────────────────────────────────────────
   SERVICE SELECTION CARDS
───────────────────────────────────────── */
.q-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.q-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.q-service-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.q-service-card:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

.q-service-card.selected {
  border-color: var(--green);
  background: rgba(180,243,112,0.06);
}

.q-service-num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.q-service-card.selected .q-service-num { color: var(--green); }

.q-service-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.25;
}

.q-service-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

/* ─────────────────────────────────────────
   SERVICE-SPECIFIC QUESTION BLOCKS
───────────────────────────────────────── */
.q-service-questions {
  display: none;
  flex-direction: column;
  gap: 30px;
}

.q-service-questions.visible {
  display: flex;
  animation: qFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─────────────────────────────────────────
   PILL-STYLE RADIO / CHECKBOX OPTIONS
───────────────────────────────────────── */
.q-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.q-pill {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
}

.q-pill input[type="radio"],
.q-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.q-pill span {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.q-pill:hover span {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}

.q-pill input:checked ~ span {
  border-color: var(--green);
  color: var(--green);
  background: rgba(180,243,112,0.1);
}

/* ─────────────────────────────────────────
   NAVIGATION BUTTONS
───────────────────────────────────────── */
.q-nav-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.q-btn-back {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.q-btn-back:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.q-btn-next {
  background: var(--green);
  border: none;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.q-btn-next:hover {
  background: var(--white);
}

.q-btn-submit {
  background: var(--green);
  border: none;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  display: none;
}
.q-btn-submit:hover { background: var(--white); }
.q-btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────────── */
.q-success {
  display: none; /* shown via inline style by JS */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 70px 20px;
  animation: qFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.q-success.visible { display: flex; }

.q-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(180,243,112,0.12);
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 28px;
}

.q-success-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.q-success-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 420px;
  margin-bottom: 36px;
}

.q-success-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  background: var(--green);
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.q-success-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--white);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 600px) {
  .q-service-grid {
    grid-template-columns: 1fr;
  }

  .q-stepper {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .q-step-label {
    display: none;
  }

  .q-nav-btns {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .q-btn-back,
  .q-btn-next,
  .q-btn-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .q-header { padding: 60px 20px 50px; }
  .q-section { padding: 40px 20px 90px; }
}
