/* ==========================================================================
   HOW WE WORK / 5-STEP JOURNEY TICKETS (EXACT REPLICA DESIGN)
   ========================================================================== */
.process-section {
  padding: 70px 0 85px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.process-header {
  text-align: center;
  margin-bottom: 45px;
}

.process-eyebrow-pill {
  display: inline-block;
  background-color: #ffedd5;
  color: #ea580c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.process-title {
  font-size: 38px;
  font-weight: 900;
  color: #0c1524;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.process-subtitle {
  font-size: 15px;
  color: #64748b;
  font-weight: 450;
  margin: 0;
  line-height: 1.5;
}

.process-tickets-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 10px 30px;
}

/* Base Ticket Card */
.process-ticket {
  display: flex;
  position: relative;
  width: 232px;
  min-width: 232px;
  height: 268px;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 14px 32px -6px rgba(12, 21, 36, 0.1), 0 3px 10px rgba(12, 21, 36, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  user-select: none;
  overflow: visible;
}

/* Overlap & Rotations matching reference */
.process-ticket.ticket-step-1 {
  z-index: 1;
  transform: rotate(-3deg) translateY(6px);
}

.process-ticket.ticket-step-2 {
  z-index: 2;
  margin-left: -16px;
  transform: rotate(-1deg) translateY(0px);
}

.process-ticket.ticket-step-3 {
  z-index: 3;
  margin-left: -16px;
  transform: rotate(0deg) translateY(-4px);
}

.process-ticket.ticket-step-4 {
  z-index: 4;
  margin-left: -16px;
  transform: rotate(1deg) translateY(0px);
}

.process-ticket.ticket-step-5 {
  z-index: 5;
  margin-left: -16px;
  transform: rotate(3deg) translateY(6px);
}

.process-ticket:hover {
  z-index: 15 !important;
  transform: translateY(-12px) scale(1.04) !important;
  box-shadow: 0 24px 48px -10px rgba(12, 21, 36, 0.18), 0 8px 18px rgba(12, 21, 36, 0.08);
}

/* Left Stub */
.ticket-stub {
  width: 50px;
  min-width: 50px;
  height: 100%;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

/* Perforated scalloped seam between stub and white body */
.ticket-stub::after {
  content: '';
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  background-image: radial-gradient(circle at 4px 6px, #ffffff 2.4px, transparent 2.8px);
  background-size: 8px 10px;
  background-repeat: repeat-y;
  z-index: 3;
}

/* White punch holes on the left edge */
.stub-punch {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  border-radius: 50%;
  left: -7px;
  z-index: 4;
}

.stub-punch.punch-top {
  top: 14px;
}

.stub-punch.punch-bottom {
  bottom: 14px;
}

/* Number & Underline in stub */
.stub-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.stub-number {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stub-line {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  border-radius: 2px;
}

/* Stub Color Schemes */
.stub-navy {
  background-color: #0c1829;
}

.stub-orange {
  background-color: #f05523;
}

.stub-amber {
  background-color: #f59e0b;
}

/* Right Ticket Body */
.ticket-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 14px 18px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  background-color: #ffffff;
  box-sizing: border-box;
}

/* Icon Box */
.ticket-icon-box {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  height: 40px;
}

.ticket-icon-box svg {
  display: block;
}

/* Title */
.ticket-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0c1524;
  line-height: 1.25;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

/* Description */
.ticket-desc {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 450;
  color: #64748b;
  margin: 0 0 10px 0;
  min-height: 48px;
}

/* Bottom Barcode Wrap */
.ticket-barcode-wrap {
  background: #f1f5f9;
  border-radius: 5px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.ticket-barcode-svg {
  display: block;
  max-width: 125px;
  height: 16px;
  color: #0c1524;
}

/* ==========================================================================
   BOTTOM LINEHAUL BAR (CAPSULE / PILL DESIGN)
   ========================================================================== */
.process-linehaul-bar {
  max-width: 1060px;
  margin: 38px auto 0;
  background-color: #0c1524;
  border-radius: 9999px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 30px rgba(12, 21, 36, 0.16);
  box-sizing: border-box;
}

.linehaul-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(240, 85, 35, 0.6);
  background-color: rgba(240, 85, 35, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  flex-shrink: 0;
}

.linehaul-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f05523;
  box-shadow: 0 0 8px #f05523;
  display: inline-block;
}

.linehaul-badge-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f59e0b;
  text-transform: uppercase;
}

.linehaul-sep {
  width: 1px;
  height: 22px;
  background-color: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.linehaul-text {
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.linehaul-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.linehaul-link:hover {
  color: #f05523;
}

.linehaul-arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.linehaul-link:hover .linehaul-arrow {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1220px) {
  .process-tickets-wrap {
    transform: scale(0.92);
    transform-origin: center top;
    margin-bottom: -15px;
  }
}

@media (max-width: 1100px) {
  .process-tickets-wrap {
    transform: scale(0.85);
    transform-origin: center top;
    margin-bottom: -35px;
  }
  .process-linehaul-bar {
    max-width: 920px;
    padding: 10px 20px;
  }
}

@media (max-width: 992px) {
  .process-tickets-wrap {
    transform: none;
    flex-wrap: wrap;
    gap: 24px 18px;
    padding: 10px 10px 20px;
  }
  .process-ticket {
    margin-left: 0 !important;
  }
  .process-ticket.ticket-step-1 { transform: rotate(-2deg); }
  .process-ticket.ticket-step-2 { transform: rotate(1deg); }
  .process-ticket.ticket-step-3 { transform: rotate(0deg); }
  .process-ticket.ticket-step-4 { transform: rotate(1.5deg); }
  .process-ticket.ticket-step-5 { transform: rotate(-1deg); }

  .process-linehaul-bar {
    border-radius: 20px;
    padding: 16px 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }
  .linehaul-sep {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-section {
    padding: 50px 0 65px;
  }
  .process-title {
    font-size: 30px;
  }
  .process-tickets-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .process-ticket {
    width: 100%;
    max-width: 290px;
    transform: none !important;
  }
  .process-linehaul-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
    margin-top: 25px;
  }
}

