/* Careers-page-only compact rules; shared compact primitives (padding,
   footer, team grid/heading) come from css/landing.css. Mirrors the
   _buildCompact() branch of lib/pages/careers_page.dart. */

#jobs-c {
  scroll-margin-top: 80px;
}

.compact-core-band {
  background: #a8d0d8;
  padding: 48px var(--pad);
  margin-top: 64px;
}
.compact-core-heading {
  white-space: nowrap;
}
.compact-core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .compact-core-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.compact-core-grid .core-value-card {
  position: relative;
  height: auto;
}

.compact-jobs-heading {
  font-size: 32px;
  white-space: normal;
  margin-top: 16px;
}

.compact-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.compact-job-list {
  margin-top: 24px;
}
.job-listing-compact {
  padding: 24px 0;
  border-bottom: 1px solid var(--c-form-border);
}
.job-listing-compact .ts-careers-job-desc {
  white-space: normal;
}

/* Modal Overlay Background */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

/* Modal Box */
.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-submit {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-submit:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.desktop-canvas {
  background-color: #ffffff;
  background-image: 
    /* Top-Right Soft Cyan/Teal Glow */
    radial-gradient(ellipse 70% 65% at 95% 5%, rgba(200, 235, 238, 0.55) 0%, rgba(225, 245, 247, 0.25) 45%, transparent 75%),
    /* Shifted Higher Up: Left Mint/Green Glow */
    radial-gradient(ellipse 60% 50% at 0% 45%, rgba(220, 242, 233, 0.45) 0%, rgba(235, 248, 242, 0.18) 50%, transparent 80%);
  background-repeat: no-repeat;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 950px;
  pointer-events: none;
  z-index: 0;
  background-color: #ffffff;
  background-image: 
    /* Top-Right Soft Cyan/Teal Glow */
    radial-gradient(ellipse 70% 60% at 95% 10%, rgba(200, 235, 238, 0.55) 0%, rgba(225, 245, 247, 0.25) 45%, transparent 75%),
    /* Shifted Higher Up: Left Mint/Green Glow */
    radial-gradient(ellipse 60% 50% at 0% 45%, rgba(220, 242, 233, 0.45) 0%, rgba(235, 248, 242, 0.20) 50%, transparent 80%);
}


@media (max-width: 1023px) {
  .form-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .modal-content {
    padding: 20px;
    max-height: 95vh;
  }

  .modal-content input, 
  .modal-content select, 
  .modal-content textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile browsers */
  }
}