/* ==========================================================================
   PED Selector — Responsive Styling (Brand color: #00b2d9)
   ========================================================================== */

/* Layout */
.ped-select {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: #f9fafb;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  box-sizing: border-box;
}

.ped-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.ped-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00b2d9;
  margin-bottom: 1rem;
}

/* Steps */
.ped-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ped-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.3s, transform 0.3s;
}
.ped-step.active {
  background: #00b2d9;
  transform: scale(1.25);
}
.ped-step.completed {
  background: #00cce7;
}

/* Progress bar */
.ped-progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
  margin: 1.5rem 0;
}
.ped-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b2d9 0%, #00cce7 50%, #00b2d9 100%);
  background-size: 200% 100%;
  animation: progressGlow 2.5s linear infinite;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes progressGlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Card */
.ped-card {
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  box-sizing: border-box;
}
.ped-body {
  position: relative;
}
.ped-q {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: slideIn 0.5s ease both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Inputs */
.ped-q label {
  font-weight: 600;
  font-size: 1.05rem;
}
.ped-q input,
.ped-q select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}
.ped-q input:focus,
.ped-q select:focus {
  outline: none;
  border-color: #00b2d9;
  box-shadow: 0 0 0 3px rgba(0, 178, 217, 0.2);
}
.ped-note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Actions */
.ped-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  gap: 0.5rem;
}
.ped-actions button {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ped-actions .primary {
  background: #00b2d9;
  color: #fff;
}
.ped-actions .primary:hover {
  background: #0095b8;
  transform: translateY(-1px);
}
.ped-actions .ped-back {
  background: #e5e7eb;
}
.ped-actions .ped-back:hover {
  background: #d1d5db;
}

/* Result */
.ped-result {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.ped-result h3 {
  color: #00b2d9;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.ped-result .ped-note {
  color: #374151;
}

/* Email */
#ped-email {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  background-color: #fff;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
#ped-email:focus {
  border-color: #00b2d9;
  box-shadow: 0 0 0 3px rgba(0, 178, 217, 0.25);
  outline: none;
}
.ped-email label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #111827;
}
.ped-email {
  margin: 20px 0;
}

/* Toast */
.ped-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.ped-toast.visible { opacity: 1; transform: translateY(0); }
.ped-toast.success { background: #00b2d9; }
.ped-toast.error { background: #e11d48; }
.ped-toast.info { background: #3b82f6; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Mobiel (max 600px) */
@media (max-width: 600px) {
  .ped-card {
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: none;
  }
  .ped-header h2 {
    font-size: 1.4rem;
  }
  .ped-steps {
    gap: 0.4rem;
  }
  .ped-step {
    width: 10px;
    height: 10px;
  }
  .ped-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .ped-actions button {
    width: 100%;
    font-size: 1.05rem;
  }
  .ped-progress {
    height: 8px;
    margin-bottom: 1.25rem;
  }
  #ped-email {
    font-size: 16px; /* betere tap-target */
  }
}

/* Tablet (600px–1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .ped-select {
    padding: 2.5rem 2rem;
  }
  .ped-card {
    padding: 2rem;
    border-radius: 14px;
  }
  .ped-header h2 {
    font-size: 1.6rem;
  }
  .ped-actions button {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
}

/* Desktop breed (vanaf 1025px) */
@media (min-width: 1025px) {
  .ped-select {
    padding: 3rem 2rem;
  }
  .ped-card {
    padding: 2.5rem;
  }
}

