/* Hero section styling */
.hero-section {
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/public/images/careers/careers_at_outsourcingdev.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-text {
  color: white;
  max-width: 800px;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text .subtitle {
  opacity: 0.9;
}

.careers-intro {
  padding: 4rem 1rem;
  background-color: #fafafafa;
  text-align: center;
}

.careers-intro .container {
  max-width: 1200px;
  margin: 0 auto;
}

.careers-intro h2 {
  color: #6998e1;
  margin-bottom: 1.5rem;
}

.careers-intro p {
  max-width: 100%;
  word-wrap: break-word;
  margin: 0 auto;
  max-width: 1200px;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.open-positions h2 {
  color: #58dac0;
  text-align: center;
  margin-bottom: 2rem;
}

.position {
  background-color: #fff;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.position:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.position h3 {
  color: #333;
  margin-bottom: 0.5rem;
  text-align: center;
}

.position p {
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.apply-button {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  background-color: #58dac0;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: normal;
  border: none;
  cursor: pointer;
  text-align: center;
  align-self: flex-start;
  margin-top: 1rem;
}

.apply-button:hover {
  background-color: #3dc1a4;
}

.benefits-section {
  padding: 4rem 1rem;
  background-color: #fff;
  text-align: center;
}

.benefits-section h2 {
  color: #6998e1;
  margin-bottom: 2.5rem;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.benefit-card img {
  width: 80%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 25px;
}

.benefit-card h3 {
  color: #58dac0;
  margin-bottom: 1rem;
  text-align: center;
}

.benefit-card p {
  color: #333;
  line-height: 1.6;
  flex-grow: 1;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.application-form-section {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
}

.application-form-section h2 {
  color: #6998e1;
  text-align: center;
  margin-bottom: 2.5rem;
}

.application-form-section h2 span {
  color: #3D9BE9;
}

.application-form-section h2 span:nth-child(2) {
  color: #FFD56B;
}

.application-form-section h2 span:nth-child(3) {
  color: #6dc3a1;
}

.form-container {
  display: block;
  width: 100%;
  margin: 0 auto;
}

.application-form {
  flex: 1;
  width: 100%;
  max-width: none;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  box-sizing: border-box;
}

.application-form button {
  width: 100%;
  padding: 0.8rem;
  background-color: #58dac0;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  margin-top: 1rem;
}

.application-form button:hover {
  background-color: #4bb3a4;
}

.application-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  display: none;
  animation: slideIn 0.5s ease-out;
  max-width: 90%;
}

.notification.success {
  background-color: #58dac0;
}

.notification.error {
  background-color: #ff6b6b;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Spinner styles */
.spinner {
  text-align: center;
  margin: 1rem 0;
  color: #58dac0;
  font-weight: bold;
  display: none;
 }

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 992px) {
  .form-container {
    flex-direction: column;
  }
  
  .image-container, 
  .application-form {
    max-width: 100%;
  }
  
  .benefits-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 50vh;
    padding: 4rem 1rem;
  }

  .careers-intro, 
  .open-positions, 
  .benefits-section,
  .application-form-section {
    padding: 3rem 1rem;
  }

  .position {
    padding: 1.5rem;
  }

  .benefits-container {
    gap: 1.5rem;
  }

  .careers-form {
    padding: 1.2rem 0.7rem 1.5rem 0.7rem;
    margin: 1.2rem 0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 40vh;
    padding: 3rem 1rem;
  }
  
  .careers-intro, 
  .open-positions, 
  .benefits-section,
  .application-form-section {
    padding: 2rem 1rem;
  }

  .position {
    padding: 1.2rem;
    margin: 1rem 0;
  }

  .benefits-container {
    grid-template-columns: 1fr;
  }

  
  .apply-button {
    text-align: center;
  }
}

/* Careers form styling */
.careers-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(52, 152, 219, 0.10), 0 1.5px 6px rgba(88, 218, 192, 0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeInForm 0.8s cubic-bezier(0.4,0,0.2,1);
  border: 1.5px solid #e6f0fa;
  transition: box-shadow 0.3s;
}

.careers-form:hover, .careers-form:focus-within {
  box-shadow: 0 12px 36px rgba(52, 152, 219, 0.15), 0 2px 8px rgba(88, 218, 192, 0.12);
}

@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

.careers-form .input-group label {
  color: #3D9BE9;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.careers-form .input-group input,
.careers-form .input-group select,
.careers-form .input-group textarea {
  border: 1.5px solid #dbeafe;
  background: #fafdff;
  border-radius: 7px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(88,218,192,0.03);
}

.careers-form .input-group input:focus,
.careers-form .input-group select:focus,
.careers-form .input-group textarea:focus {
  border-color: #58dac0;
  outline: none;
  box-shadow: 0 0 0 2px #e0f7f3;
}

.careers-form button,
.careers-form .btn {
  background: linear-gradient(90deg, #58dac0 60%, #3D9BE9 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  padding: 0.9rem 1.2rem;
  margin-top: 0.7rem;
  box-shadow: 0 2px 8px rgba(61, 155, 233, 0.08);
  transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}

.careers-form button:hover,
.careers-form .btn:hover {
  background: linear-gradient(90deg, #3dc1a4 60%, #6998e1 100%);
  box-shadow: 0 4px 16px rgba(61, 155, 233, 0.13);
  transform: translateY(-2px) scale(1.03);
}

.careers-form .input-group input,
.careers-form .input-group select {
  min-height: 48px;
}

.careers-form .input-group {
  margin-bottom: 1.1rem;
}

.careers-form #form-response {
  margin-top: 0.5rem;
  min-height: 1.2em;
}