/* ==============================
   Artisan Quiz Form - Premium Style
   ============================== */

.aqf-quiz-container *,
.aqf-quiz-container *::before,
.aqf-quiz-container *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.aqf-quiz-container {
  max-width: 520px;
  margin: 30px auto;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

/* ---- Card ---- */
.aqf-form-box {
  background: #ffffff;
  padding: 32px 28px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

/* ---- Header ---- */
.aqf-main-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 0 0 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
  color: #111827;
}

.aqf-form-header {
  text-align: center;
  margin-bottom: 20px;
}

.aqf-form-header p {
  margin: 0 0 4px;
  font-size: 14px;
  color: #6b7280;
}

.aqf-step-text {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

/* ---- Progress bar ---- */
.aqf-progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}

.aqf-progress {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ---- Steps ---- */
.aqf-step {
  display: none;
  animation: aqfFadeIn 0.35s ease;
}

.aqf-step.active {
  display: block;
}

@keyframes aqfFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aqf-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 18px;
  color: #111827;
}

.aqf-step > p {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
}

/* ---- Choice buttons (radio cards) ---- */
.aqf-grid-2 {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.aqf-choice {
  flex: 1;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aqf-choice.full {
  flex: 100%;
}

.aqf-choice input {
  display: none !important;
}

.aqf-choice:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.aqf-choice.active {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.aqf-choice.active span {
  color: #16a34a;
  font-weight: 700;
}

/* ---- Inputs ---- */
.aqf-input {
  width: 100%;
  padding: 14px 16px;
  margin: 8px 0 4px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 15px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.aqf-input::placeholder {
  color: #9ca3af;
}

.aqf-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* ---- Error messages ---- */
.aqf-error-msg {
  color: #ef4444;
  font-size: 13px;
  display: none;
  margin: 2px 0 8px 4px;
  font-weight: 500;
}

/* ---- Buttons ---- */
.aqf-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 16px 0 0;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.aqf-btn:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.aqf-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.2);
}

.aqf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Fake price with floating doc ---- */
.aqf-fake-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 16px;
  color: #374151;
}

.aqf-fake-price strong {
  font-weight: 700;
}

.aqf-fake-price .aqf-blur-price {
  filter: blur(6px);
  letter-spacing: 3px;
  user-select: none;
}

/* Floating document animation */
.aqf-floating-doc {
  position: relative;
  width: 36px;
  height: 44px;
  flex-shrink: 0;
  animation: aqfFloat 2.5s ease-in-out infinite;
}

.aqf-floating-doc-icon {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Folded corner */
.aqf-floating-doc-icon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #e5e7eb 50%, #fff 50%);
  border-bottom-left-radius: 3px;
}

/* Text lines inside doc */
.aqf-floating-doc-icon::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 5px;
  width: 18px;
  height: 3px;
  background: #d1d5db;
  border-radius: 2px;
  box-shadow:
    0 6px 0 #e5e7eb,
    0 12px 0 #e5e7eb;
}

/* Progress fill bar inside doc */
.aqf-doc-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  animation: aqfFillDoc 3s ease-in-out infinite;
}

/* Small sparkle dots */
.aqf-floating-doc .aqf-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0;
}

.aqf-floating-doc .aqf-sparkle:nth-child(2) {
  top: -4px;
  right: -4px;
  animation: aqfSparkle 2.5s ease-in-out infinite 0.3s;
}

.aqf-floating-doc .aqf-sparkle:nth-child(3) {
  bottom: 2px;
  left: -5px;
  animation: aqfSparkle 2.5s ease-in-out infinite 1s;
}

.aqf-floating-doc .aqf-sparkle:nth-child(4) {
  top: 6px;
  left: -6px;
  animation: aqfSparkle 2.5s ease-in-out infinite 1.7s;
}

.aqf-doc-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes aqfFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes aqfFillDoc {
  0%   { height: 4px; opacity: 0.5; }
  50%  { height: 20px; opacity: 1; }
  80%  { height: 20px; opacity: 1; }
  100% { height: 4px; opacity: 0.5; }
}

@keyframes aqfSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ---- Final step ---- */
.aqf-final-note {
  margin: 40px 0;
  text-align: center;
  font-size: 17px;
  color: #374151;
  font-weight: 600;
  line-height: 1.6;
}

.aqf-final-note.aqf-success {
  color: #16a34a;
}

.aqf-final-note.aqf-error {
  color: #ef4444;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
  .aqf-quiz-container {
    margin: 16px 12px;
  }
  .aqf-form-box {
    padding: 24px 18px 20px;
  }
  .aqf-step h3 {
    font-size: 19px;
  }
  .aqf-choice {
    padding: 12px 8px;
    font-size: 14px;
  }
}
