/* ============================================
   Progressive Profiling Form — MetadataONE
   Multi-step demo request form.
   ============================================ */

/* FORM CONTAINER */
.pf-form {
  width: 100%;
  position: relative;
}

.pf-form * { box-sizing: border-box; }

/* STEP INDICATOR */
.pf-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.pf-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}

.pf-step-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

.pf-step-dot.complete {
  background: var(--accent);
}

/* STEP PANELS */
.pf-panel {
  display: none;
  animation: pfSlideIn 0.3s ease;
}

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

@keyframes pfSlideIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* INPUT FIELDS */
.pf-field {
  margin-bottom: 16px;
}

.pf-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.pf-field input,
.pf-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.pf-field input:focus,
.pf-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.pf-field input::placeholder {
  color: var(--text-muted);
}

.pf-field .pf-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.pf-field.has-error input,
.pf-field.has-error select {
  border-color: var(--red);
}

.pf-field.has-error .pf-error {
  display: block;
}

/* SUBMIT BUTTON */
.pf-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
  letter-spacing: -0.2px;
}

.pf-submit:hover {
  background: #d4520a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.pf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pf-submit .pf-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pfSpin 0.6s linear infinite;
  margin: 0 auto;
}

.pf-submit.loading .pf-spinner { display: inline-block; }
.pf-submit.loading .pf-btn-text { display: none; }

@keyframes pfSpin {
  to { transform: rotate(360deg); }
}

/* NAME ROW (side-by-side) */
.pf-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* DROPDOWN STYLING */
.pf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* SUCCESS STATE */
.pf-success {
  text-align: center;
  padding: 32px 16px;
  animation: pfSlideIn 0.3s ease;
}

.pf-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--accent);
}

.pf-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf-success p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* HONEYPOT (hidden from humans) */
.pf-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* PRIVACY NOTICE */
.pf-privacy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.pf-privacy a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* SLIM INLINE VARIANT */
.pf-form.pf-inline .pf-steps { display: none; }

.pf-form.pf-inline .pf-panel-email {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pf-form.pf-inline .pf-panel-email .pf-field {
  flex: 1;
  margin-bottom: 0;
}

.pf-form.pf-inline .pf-panel-email .pf-submit {
  width: auto;
  white-space: nowrap;
  padding: 12px 24px;
  margin-top: 0;
}

/* MOBILE */
@media (max-width: 600px) {
  .pf-form.pf-inline .pf-panel-email {
    flex-direction: column;
  }

  .pf-form.pf-inline .pf-panel-email .pf-submit {
    width: 100%;
  }

  .pf-name-row {
    grid-template-columns: 1fr;
  }
}

/* G2 BADGES */
.g2-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.g2-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.g2-badge .g2-star {
  color: #ff492c;
  font-size: 14px;
}

.g2-badge-logo {
  width: 16px;
  height: 16px;
}

/* VIDEO PLAYER */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  cursor: pointer;
  transition: background 0.2s;
}

.video-embed .video-placeholder:hover {
  background: var(--bg);
}

.video-embed .video-placeholder .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 24px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s;
}

.video-embed .video-placeholder:hover .play-icon {
  transform: scale(1.08);
}

.video-embed .video-placeholder .play-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin-left: 3px;
}

.video-embed .video-placeholder p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
