/* CSS Variables */
:root {
  --primary: hsl(210, 55%, 20%);
  --accent: hsl(168, 55%, 43%);
  --foreground: hsl(210, 15%, 15%);
  --muted-foreground: hsl(210, 10%, 45%);
  --background: hsl(210, 20%, 98%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(210, 20%, 90%);
  --destructive: hsl(0, 70%, 50%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.careers-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: var(--primary);
  color: white;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.3) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(52, 168, 121, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.6s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Why Join Section */
.why-join-section {
  padding: 6rem 0;
  background: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(52, 168, 121, 0.1) 0%, rgba(52, 168, 121, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.benefit-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.benefit-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Application Section */
.application-section {
  padding: 6rem 0;
  background: var(--card);
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

/* Application Form */
.application-form-wrapper {
  width: 100%;
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-description {
  color: var(--muted-foreground);
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--card);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 168, 121, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--destructive);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.error-message {
  font-size: 0.875rem;
  color: var(--destructive);
  display: none;
}

.error-message.visible {
  display: block;
}

/* File Upload */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  background: var(--card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  border-color: var(--accent);
  background: rgba(52, 168, 121, 0.02);
}

.upload-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.upload-title {
  font-weight: 500;
  color: var(--foreground);
}

.upload-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.file-name {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(52, 168, 121, 0.1);
  border-radius: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

.file-name.visible {
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-submit {
  background: var(--accent);
  color: white;
  width: auto;
}

.btn-submit:hover {
  background: hsl(168, 55%, 38%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 168, 121, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Application Info */
.application-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.application-info-card,
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.info-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.375rem;
  top: 3rem;
  width: 2px;
  height: calc(100% + 0.5rem);
  background: var(--border);
}

.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, hsl(168, 55%, 38%) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(52, 168, 121, 0.3);
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Contact Card */
.contact-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}


.contact-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--foreground);
  font-weight: 500;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
  min-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.toast-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Responsive Design */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .application-grid {
    grid-template-columns: 2fr 1fr;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .careers-hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .why-join-section,
  .application-section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .form-section {
    padding: 1.5rem;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}