/* =========================================================
   YatraSaathi — Stepper.css  (Jadoo coral theme)
   ========================================================= */

/* ── Outer wrapper ──────────────────────────────────────── */
.stp-outer {
  width: 100%;
}

/* ── Card ───────────────────────────────────────────────── */
.stp-card {
  width: 100%;
  background: transparent;
}

/* ── Indicator Row ──────────────────────────────────────── */
.stp-indicator-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
}

/* ── Individual Circle ──────────────────────────────────── */
.stp-indicator { position: relative; cursor: default; }

.stp-indicator-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Inactive */
.stp-inactive {
  background: #ede9e6;
  color: #b8b0c4;
}

/* Active */
.stp-active {
  background: linear-gradient(135deg, #DF6951, #FF8E75);
  box-shadow: 0 4px 16px rgba(223,105,81,0.40);
  transform: scale(1.1);
}

/* Complete */
.stp-complete {
  background: linear-gradient(135deg, #DF6951, #FF8E75);
  box-shadow: 0 2px 10px rgba(223,105,81,0.30);
}

/* Active dot (inner white circle) */
.stp-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #fff;
}

/* Step number text */
.stp-num { color: #b8b0c4; font-size: 0.875rem; }

/* Check icon */
.stp-check {
  width: 1rem;
  height: 1rem;
  color: #fff;
}

/* ── Connector ──────────────────────────────────────────── */
.stp-connector {
  flex: 1;
  height: 3px;
  border-radius: 4px;
  background: #ede9e6;
  margin: 0 0.5rem;
  overflow: hidden;
  position: relative;
}

.stp-connector-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #DF6951, #FF8E75);
  border-radius: 4px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.stp-connector-fill.done { width: 100%; }

/* ── Content Area ───────────────────────────────────────── */
.stp-content {
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

/* ── Step Slide Animations ──────────────────────────────── */
.stp-step {
  padding: 0.25rem 0 1.25rem;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

/* Entry states */
.stp-in-right  { transform: translateX(55px); opacity: 0; }
.stp-in-left   { transform: translateX(-55px); opacity: 0; }

/* Center (visible) */
.stp-center    { transform: translateX(0); opacity: 1; }

/* Exit states */
.stp-out-left {
  position: absolute;
  inset: 0 0 auto;
  transform: translateX(-55px) !important;
  opacity: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  pointer-events: none;
}
.stp-out-right {
  position: absolute;
  inset: 0 0 auto;
  transform: translateX(55px) !important;
  opacity: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  pointer-events: none;
}

/* ── Step Header ────────────────────────────────────────── */
.stp-step-header {
  margin-bottom: 1.5rem;
}

.stp-step-header h3 {
  font-family: 'Volkhov', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #181E4B;
  margin-bottom: 0.3rem;
}

.stp-step-header p {
  font-size: 0.9375rem;
  color: #5E6282;
  font-weight: 400;
}

/* ── Footer Link ────────────────────────────────────────── */
.stp-step-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ── Footer Nav ─────────────────────────────────────────── */
.stp-footer { margin-top: 0.5rem; }

.stp-nav {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.stp-nav.spread { justify-content: space-between; }
.stp-nav.end    { justify-content: flex-end; }

/* Back button */
.stp-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #5E6282;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.stp-back:hover { color: #181E4B; background: #f5f0eb; }

/* Next / Complete button */
.stp-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #DF6951 0%, #FF8E75 100%);
  box-shadow: 0 6px 20px rgba(223,105,81,0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
}
.stp-next:hover  { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(223,105,81,0.50); }
.stp-next:active { transform: scale(0.97); }
.stp-next:disabled { opacity: 0.7; pointer-events: none; }

/* ── Input error shake ──────────────────────────────────── */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.input-error {
  border-color: #ef4444 !important;
  animation: inputShake 0.4s ease;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12) !important;
}
