.qff-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #f8fafc;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.qff-shell {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.qff-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 0.75rem;
}

.qff-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.qff-close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.25rem 0.5rem;
}

.qff-card {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
}

.qff-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.qff-back {
  background: none;
  border: 0;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
}

.qff-back:hover { color: #475569; }

.qff-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.qff-step-badge {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.qff-progress {
  height: 0.375rem;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  margin-bottom: 0.5rem;
}

.qff-progress > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.qff-progress-line {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.qff-h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.qff-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.qff-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qff-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

.qff-choice:hover { border-color: #cbd5e1; }
.qff-choice.is-on { border-color: var(--qff-accent, #f97316); }

.qff-choice-label {
  display: block;
  font-weight: 700;
}

.qff-choice-sub {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.15rem;
}

.qff-badge {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.qff-marital {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qff-marital button {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font: inherit;
}

.qff-marital button:hover { border-color: #cbd5e1; }

.qff-marital img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f5f9;
}

.qff-marital span {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.qff-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.qff-input,
.qff-select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  padding: 0.75rem 1rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
  margin-bottom: 1rem;
}

.qff-input:focus,
.qff-select:focus {
  outline: none;
  border-color: #94a3b8;
}

.qff-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.qff-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.qff-btn {
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--qff-accent, #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.qff-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qff-btn-outline {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.qff-btn-ghost {
  background: none;
  border: 0;
  color: #94a3b8;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
}

.qff-secure {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.qff-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.qff-legal {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #94a3b8;
}

.qff-legal a { color: var(--qff-accent, #f97316); }

.qff-ref-banner {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.qff-ref-banner strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
}

.qff-ref-banner span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.qff-center { text-align: center; }

.qff-spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--qff-accent, #f97316);
  border-radius: 50%;
  animation: qff-spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}

@keyframes qff-spin { to { transform: rotate(360deg); } }

.qff-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.qff-carriers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 420px) {
  .qff-carriers { grid-template-columns: 1fr 1fr 1fr; }
}

.qff-carrier {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
}

.qff-box {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem;
  text-align: left;
  margin-top: 1.5rem;
}

.qff-box-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.qff-box ol {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.875rem;
}

.qff-box ol li { margin-bottom: 0.35rem; }

.qff-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
}

.qff-check-box {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border-radius: 0.2rem;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
}

.qff-check.is-on .qff-check-box {
  background: var(--qff-accent, #f97316);
  border-color: var(--qff-accent, #f97316);
}

.qff-check-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.qff-panel {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.qff-link-box {
  word-break: break-all;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  margin: 0.5rem 0 0.75rem;
}

.qff-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 420px) {
  .qff-row { flex-direction: row; }
}

.qff-gift {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.qff-status {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.qff-ben-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.qff-dashed {
  width: 100%;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--qff-accent, #f97316);
}
