/* ============================================================
   careers.css — Careers page styles
   Sections: hero (cream), perks strip, why, open roles, apply form
   ============================================================ */

/* ── Hero — Cream ─────────────────────────────────────────── */
#careers-hero {
  background: var(--cream);
  padding: clamp(140px, 16vw, 180px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  position: relative;
}

.careers-hero-ghost {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 60px);
  transform: translateY(-50%);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  color: rgba(11, 19, 32, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: -4px;
  white-space: nowrap;
}

.careers-hero-inner {
  max-width: 680px;
}

#careers-hero .label {
  color: var(--bg);
  opacity: 0.45;
}

#careers-hero .display-lg {
  color: var(--bg);
  line-height: 1.05;
  letter-spacing: -3px;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
}

#careers-hero .body-md {
  color: rgba(11, 19, 32, 0.6);
  line-height: 1.65;
}

.careers-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Dark-bg buttons in cream context */
.btn-dark {
  background: var(--bg);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-dark:hover {
  background: #192b46;
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--bg);
  border: 1.5px solid rgba(11, 19, 32, 0.25);
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-ghost-dark:hover {
  background: rgba(11, 19, 32, 0.07);
  border-color: rgba(11, 19, 32, 0.4);
  transform: translateY(-2px);
}

/* ── Perks Strip — Dark ───────────────────────────────────── */
#careers-perks {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.perks-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
  min-width: 100px;
}

.perk-icon {
  font-size: 22px;
  line-height: 1;
}

.perk-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
}

.perk-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 120px;
}

.perk-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* ── Why JobSnips ─────────────────────────────────────────── */
#careers-why {
  background: var(--bg);
  padding: var(--section-pad) 0;
}

#careers-why .display-md {
  color: var(--cream);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

#careers-why .section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.why-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  transition: border-color 0.2s var(--ease);
}

.why-card:hover {
  border-color: rgba(41, 171, 226, 0.35);
}

.why-card-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.why-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.2;
}

.why-card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Open Roles ───────────────────────────────────────────── */
#open-roles {
  background: var(--bg2);
  padding: var(--section-pad) 0;
}

#open-roles .display-md {
  color: var(--cream);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

#open-roles .section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}

.role-card:last-child {
  border-bottom: none;
}

.role-card:hover {
  background: rgba(41, 171, 226, 0.04);
}

.role-card-left {
  flex: 1;
  min-width: 0;
}

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(41, 171, 226, 0.1);
  border: 1px solid rgba(41, 171, 226, 0.2);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.role-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.25;
}

.role-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 620px;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tag {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 3px 10px;
}

.role-card-right {
  flex-shrink: 0;
}

.role-apply-btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 12px 22px;
}

/* General interest */
.roles-general {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.roles-general-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.roles-general-link:hover {
  opacity: 0.75;
}

/* ── Apply Form ───────────────────────────────────────────── */
#apply-form {
  background: var(--bg);
  padding: var(--section-pad) 0;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

/* Form wrap */
.apply-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 48px);
}

.apply-form-header {
  margin-bottom: 32px;
}

.apply-form-header .display-sm {
  color: var(--cream);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

/* Shared form styles (mirrors contact.css) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.req {
  color: var(--cyan);
}

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-input:focus {
  border-color: var(--cyan);
  background: rgba(41,171,226,0.05);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #0F1C2E;
  color: #fff;
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-submit-btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

/* CV Upload zone */
.cv-upload-zone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cv-upload-zone:hover {
  background: rgba(41,171,226,0.06);
  border-color: rgba(41,171,226,0.3);
}

.cv-upload-zone--filled {
  background: rgba(41,171,226,0.06);
  border-color: rgba(41,171,226,0.4);
  border-style: solid;
}

.cv-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(41,171,226,0.1);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv-upload-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cv-upload-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}

.cv-upload-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Success state */
.form-success {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(41,171,226,0.18);
  border: 1.5px solid var(--cyan);
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
}

.form-success-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Info panel */
.apply-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.apply-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.apply-info-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.apply-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.apply-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.apply-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(41,171,226,0.12);
  border: 1px solid rgba(41,171,226,0.25);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apply-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 3px;
}

.apply-step-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-info {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .perks-strip {
    justify-content: flex-start;
  }

  .perk-divider {
    display: none;
  }

  .perk-item {
    align-items: flex-start;
    text-align: left;
    min-width: 40%;
  }
}

@media (max-width: 768px) {
  .role-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .role-card-right {
    width: 100%;
  }

  .role-apply-btn {
    width: 100%;
    text-align: center;
  }

  .apply-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .careers-hero-ghost {
    display: none;
  }

  .careers-hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-dark,
  .btn-ghost-dark {
    width: 100%;
    justify-content: center;
  }

  .apply-form-wrap {
    padding: 24px 20px;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-submit-btn {
    width: 100%;
    text-align: center;
  }

  .cv-upload-zone {
    flex-direction: column;
    text-align: center;
  }

  .role-card {
    padding: 22px 20px;
  }
}

@media (max-width: 480px) {
  #careers-hero .display-lg {
    font-size: clamp(40px, 12vw, 56px);
    letter-spacing: -2px;
  }

  .perks-strip {
    gap: 16px;
  }

  .perk-item {
    min-width: calc(50% - 8px);
  }
}
