/* 
  Glass Service Bošnjace - Insurance Process Stilovi
  Autor: Svilenkovic Dimitrije
  Verzija: 3.0 - Modern Dark Redesign
*/

:root {
  --primary-dark: #181a20;
  --primary-light: #23262f;
  --accent-red: #c10000;
  --accent-blue: #3498db;
  --white: #fff;
  --gray: #bfc9d1;
  --input-bg: #23262f;
  --input-border: #353945;
  --input-focus: #3498db;
  --error: #ff4d4f;
  --success: #00c48c;
}

.process-modern.section-universal {
  background: var(--primary-dark);
  color: var(--white);
  padding: 48px 0 80px 0;
  margin-top: 0;
}

@media (max-width: 600px) {
  .process-modern.section-universal {
    padding: 28px 0 40px 0;
    margin-top: 0;
  }
}

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

.process-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.process-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--white);
}

.process-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 0;
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-blue));
  border-radius: 2px;
}

.process-step {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:nth-child(odd) {
  flex-direction: row;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  z-index: 2;
  box-shadow: 0 4px 20px rgba(193,0,0,0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(52,152,219,0.4);
}

.step-content {
  background: var(--primary-light);
  border-radius: 20px;
  padding: 32px;
  margin: 0 40px;
  flex: 1;
  max-width: 300px;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
}

.process-step:nth-child(odd) .step-content::before {
  right: -10px;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--primary-light);
}

.process-step:nth-child(even) .step-content::before {
  left: -10px;
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--primary-light) transparent transparent;
}

.step-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  border-color: var(--accent-red);
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-align: center;
}

.step-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
}

.process-cta {
  text-align: center;
  margin-top: 60px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(52,152,219,0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(193,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .process-timeline::before {
    left: 30px;
  }
  
  .process-step {
    flex-direction: row !important;
    margin-left: 60px;
  }
  
  .step-number {
    left: 30px;
    transform: translate(-50%, -50%);
  }
  
  .process-step:hover .step-number {
    transform: translate(-50%, -50%) scale(1.1);
  }
  
  .step-content {
    margin: 0;
    max-width: none;
  }
  
  .step-content::before {
    left: -10px !important;
    right: auto !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent var(--primary-light) transparent transparent !important;
  }
}

@media (max-width: 600px) {
  .process-header { 
    margin-bottom: 32px; 
  }
  
  .process-title { 
    font-size: 1.5rem; 
  }
  
  .process-subtitle {
    font-size: 1rem;
  }
  
  .process-timeline {
    padding: 20px 0;
  }
  
  .process-step {
    margin-bottom: 40px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .step-content {
    padding: 24px 20px;
  }
  
  .step-content h3 {
    font-size: 1.2rem;
  }
  
  .step-content p {
    font-size: 0.95rem;
  }
  
  .process-cta {
    margin-top: 40px;
  }
  
  .btn-primary {
    padding: 14px 32px;
    font-size: 1.1rem;
  }
}

/* Animacije */
.section-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--delay, 0s);
}

.section-animate.visible {
  opacity: 1;
  transform: none;
}
