/* ==========================================================================
   DEV IT Solutions — Careers Page Stylesheet (careers.css)
   Matches the Modern Job Grid + Application Form & Benefits Showcase Layout
   Configured with DEV IT Solutions Brand Yellow Theme
   ========================================================================== */

/* ---------- 1. Join Our Team Section ---------- */
.career-join-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background-color: #fafbfc;
}

.career-join__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(2.5rem, 4.5vw, 3.5rem);
  padding: 0 var(--sp-4);
}

.career-join__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.career-join__title .text-yellow {
  color: #e5a50a;
}

.career-join__subtitle {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Split Layout: 4 Job Cards Left, Application Form Right */
.career-join__layout {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

/* 2x2 Job Grid */
.career-job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Individual Job Card */
.career-job-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.career-job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(250, 204, 21, 0.65);
}

.career-job-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.85rem;
}

.career-job-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.85rem;
  line-height: 1.3;
}

.career-job-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}

.career-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  align-self: flex-start;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-navy, #0A1830);
  background-color: var(--color-yellow, #FACC15);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.career-apply-btn .career-btn__arrow {
  font-size: 0.88rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.career-apply-btn:hover {
  background-color: var(--color-yellow-dark, #E5B800);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.45);
  color: var(--color-navy, #0A1830);
}

.career-apply-btn:hover .career-btn__arrow {
  transform: translateX(4px);
}

/* Right Application Form Card */
.career-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: clamp(2rem, 3vw, 2.5rem) clamp(1.75rem, 2.5vw, 2.25rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.career-form-header {
  margin-bottom: 1.5rem;
}

.career-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.career-form-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.career-form-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.career-input-pill {
  width: 100%;
  background-color: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.25s ease;
}

.career-input-pill::placeholder {
  color: #94a3b8;
}

.career-input-pill:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #e5a50a;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.career-input-pill.is-highlighted {
  border-color: #e5a50a !important;
  background-color: #fefce8 !important;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.35) !important;
  color: #0a1830 !important;
  font-weight: 700;
}

select.career-input-pill {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}

select.career-input-pill option,
select.career-input-pill optgroup {
  background-color: #ffffff;
  color: #0f172a;
  padding: 6px 12px;
}

/* Upload Resume Field */
.career-file-wrap {
  position: relative;
  width: 100%;
}

.career-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.career-file-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background-color: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 0.88rem;
  color: #64748b;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.career-file-label i {
  font-size: 1rem;
  color: #d97706;
}

.career-file-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.career-file-wrap:hover .career-file-label,
.career-file-input:focus+.career-file-label {
  background-color: #ffffff;
  border-color: #e5a50a;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.career-textarea {
  width: 100%;
  background-color: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 1rem 1.35rem;
  font-size: 0.9rem;
  color: #0f172a;
  font-family: inherit;
  min-height: 110px;
  resize: vertical;
  transition: all 0.2s ease;
}

.career-textarea::placeholder {
  color: #94a3b8;
}

.career-textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #e5a50a;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.career-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-navy, #0A1830);
  background-color: var(--color-yellow, #FACC15);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 0.5rem;
}

.career-submit-btn .career-btn__arrow {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.career-submit-btn:hover {
  background-color: var(--color-yellow-dark, #E5B800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.45);
}

.career-submit-btn:hover .career-btn__arrow {
  transform: translateX(4px);
}

/* ---------- 2. Our Benefits Section ---------- */
.career-benefits-section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.benefits-eyebrow {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: var(--color-navy, #0A1830);
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.benefits-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.benefits-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

.benefits-title .text-yellow {
  color: #e5a50a;
}

.benefits-text p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 1rem;
}

.benefits-text p:last-child {
  margin-bottom: 0;
}

/* 3 Benefits Cards Row */
.benefits-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.benefit-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.benefit-card__icon--dark {
  background-color: var(--color-navy, #0A1830);
  color: #ffffff;
}

.benefit-card__icon--yellow {
  background-color: var(--color-blue-soft);
  color: var(--color-blue);
}

.benefit-card__content {
  display: flex;
  flex-direction: column;
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.benefit-card__desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

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

  .career-form-card {
    position: static;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .benefits-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 680px) {
  .career-job-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Career Application Thank You Card State
   ======================================================== */
.career-thank-you-card {
  text-align: center;
  padding: 0.5rem 0;
  animation: fadeInCareerThankYou 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInCareerThankYou {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.career-thank-you__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.career-thank-you__icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  animation: pulseCareerBadge 2.2s infinite ease-in-out;
}

@keyframes pulseCareerBadge {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.55);
  }
}

.career-thank-you__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.25rem 0 0.5rem 0;
}

.career-thank-you__subtitle {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 1.25rem 0;
}

.career-thank-you__timeline {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.career-thank-you__step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.career-thank-you__step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0A1830;
  color: #FACC15;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.career-thank-you__step-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.career-thank-you__step-text strong {
  color: #0f172a;
  font-size: 0.85rem;
  margin-bottom: 2px;
}