
/* POPUP STYLES */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.popup-content {
  background: white;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(40px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show .popup-content {
  transform: scale(1) translateY(0) !important;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.popup-close:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.popup-close svg {
  color: #6b7280;
}

.popup-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: popupIconBounce 0.6s ease-out 0.3s both;
}

@keyframes popupIconBounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-icon svg {
  color: white;
  width: 48px;
  height: 48px;
}

.popup-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  animation: slideInUp 0.5s ease-out 0.4s both;
}

.popup-message {
  color: #6b7280;
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: slideInUp 0.5s ease-out 0.5s both;
}

.popup-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  animation: slideInUp 0.5s ease-out 0.6s both;
}


.popup-auto-close {
  font-size: 0.9rem;
  color: #9ca3af;
  animation: slideInUp 0.5s ease-out 0.7s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  .cv-form {
    padding: 2.5rem;
  }
  .hero-actions {
    flex-direction: row;
  }
  .submit-button {
    width: auto;
    min-width: 200px;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .popup-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  .careers-hero {
    padding: 10rem 0 6rem;
  }
  .careers-hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
  }
  .careers-hero-content {
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-image {
    order: 2;
    margin: 0;
  }
  .cv-submission {
    padding: 6rem 0;
  }
  .cv-form {
    padding: 3rem;
  }
  .why-join-us {
    padding: 6rem 0;
  }
  .popup-content {
    padding: 32px 24px;
    margin: 20px;
    max-width: 95%;
  }
  .popup-title {
    font-size: 1.8rem;
  }
  .popup-message {
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .careers-hero {
    padding: 12rem 0 8rem;
  }
  .cv-submission {
    padding: 8rem 0;
  }
  .why-join-us {
    padding: 8rem 0;
  }
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  .benefit-card {
    padding: 2.5rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .benefit-card:hover {
    transform: none;
  }
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
  .submit-button:hover {
    transform: none;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
