/* static/css/careers.css */


.btn-outline{background:transparent;color:var(--text);border-color:var(--border-light)}
.btn-outline:hover{border-color:var(--accent);color: var(--text-strong)}

.careers-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}


.careers-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.careers-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.careers-hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.careers-hero-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.careers-roles {
  padding: 3rem 0 1rem;
}

.roles-header {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.roles-header h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.roles-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.role-card:hover {
  border-color: var(--border-light);
}

.role-card-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.role-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1.2rem;
}

.role-head-main h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.role-chip i {
  color: var(--accent);
  font-size: 0.7rem;
}

.role-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.role-body {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.role-section {
  margin-bottom: 1.75rem;
}

.role-section:last-child {
  margin-bottom: 0;
}

.role-section h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.role-section p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.role-section p:last-child {
  margin-bottom: 0;
}

.role-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-section li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.role-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.role-toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.role-toggle[aria-expanded="true"] .role-toggle-icon {
  transform: rotate(180deg);
}

.careers-apply {
  padding: 3rem 0 6rem;
}

.apply-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.apply-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.apply-form-wrap h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-strong);
}

.form-subtitle {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required {
  color: var(--accent);
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #525252;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field select option {
  background: var(--bg-card);
  color: var(--text);
}

.file-drop {
  position: relative;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.04);
}

.file-drop .file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.6rem 1rem;
  text-align: center;
  pointer-events: none;
}

.file-drop-inner i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.file-drop-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.file-drop-text strong {
  color: var(--text);
  font-weight: 600;
}

.file-drop-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.file-chips {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.file-chips:empty {
  margin: 0;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.file-chip i.fa-file-pdf {
  color: var(--accent);
  flex-shrink: 0;
}

.file-chip-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.file-chip-size {
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.file-chip-remove {
  background: none;
  border: none;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.file-chip-remove:hover {
  color: var(--accent-hover);
}

.file-error {
  display: none;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #fca5a5;
}

.file-error.show {
  display: block;
}

.form-consent {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-strong);
}

.form-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.apply-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.sidebar-card:hover {
  border-color: var(--border-light);
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
}

.sidebar-card > p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.sidebar-steps li {
  position: relative;
  counter-increment: step;
  padding: 0.45rem 0 0.45rem 2.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sidebar-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.45rem;
  height: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-muted);
  border-radius: 50%;
}

.sidebar-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sidebar-perks i {
  color: var(--accent);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .careers-hero {
    padding: 8rem 0 4rem;
  }

  .apply-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .careers-hero {
    padding: 7rem 0 3rem;
  }

  .careers-hero-content h1 {
    font-size: 2rem;
  }

  .careers-apply {
    padding: 2rem 0 4rem;
  }

  .role-card {
    padding: 1.5rem;
  }

  .role-card-head {
    flex-direction: column;
    gap: 0.85rem;
  }

  .role-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .apply-form-wrap {
    padding: 1.75rem;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-footer .btn {
    justify-content: center;
  }

  .form-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .careers-hero {
    padding: 6rem 0 2.5rem;
  }

  .careers-hero-content h1 {
    font-size: 1.75rem;
  }

  .careers-hero-content p {
    font-size: 1rem;
  }

  .apply-form-wrap {
    padding: 1.25rem;
  }

  .sidebar-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 6px;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-error i {
  font-size: 1rem;
  color: #ef4444;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.apply-head h2 { margin: 0 0 0.5rem; }
.apply-head .form-subtitle { margin: 0; }

.apply-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.apply-close:hover {
  color: var(--text-strong);
  border-color: rgba(220,38,38,0.45);
  background: var(--accent-muted);
}

/* the card whose description is showing keeps a visible accent */
.role-card.is-open {
  border-color: rgba(220,38,38,0.32);
}

.role-card.is-open .role-toggle-icon {
  transform: rotate(180deg);
}

.role-toggle-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
