/* ============================================================
   CAREERS PAGE — SPECIFIC CSS
   ============================================================ */

/* ─── HERO EXTENSIONS ──────────────────────────────────────── */
.careers-hero {
  padding: calc(var(--header-h) + 120px) 0 160px;
  position: relative;
  overflow: hidden;
}

.careers-hero::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
  animation: rotateGlow 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.c-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--creo-white);
  position: relative;
  z-index: 2;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── CULTURE SECTION ──────────────────────────────────────── */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: calc(var(--space-6) * -1); /* Pull up slightly */
}

@media (min-width: 900px) {
  .culture-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.culture-points {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.c-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.c-point svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.c-point h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--creo-dark);
}

.c-point p {
  color: var(--creo-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ─── TEAM PROFILES (STACK CARDS GAMIFICATION) ─────────────── */
.team-cards-stack {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.team-card {
  position: absolute;
  width: 100%;
  background: var(--creo-white);
  border: 1px solid var(--creo-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 20px 40px rgba(11, 23, 61, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.t-1 {
  top: 0; left: 0;
  z-index: 2;
  transform: rotate(-2deg);
}

.t-2 {
  top: 40px; left: 20px;
  z-index: 1;
  transform: rotate(3deg);
  opacity: 0.9;
}

.team-cards-stack:hover .t-1 { transform: rotate(-5deg) translateX(-10px) translateY(-10px); }
.team-cards-stack:hover .t-2 { transform: rotate(5deg) translateX(10px) translateY(-5px); opacity: 1; z-index: 3;}

.tc-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--creo-accent);
}

.tc-quote {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--creo-dark);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.tc-name {
  font-size: 0.875rem;
  color: var(--creo-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}

/* ─── CULTURE FIT QUIZ ─────────────────────────────────────── */
.culture-quiz-section {
  padding: var(--space-8) 0;
}

.quiz-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

@media (min-width: 900px) {
  .quiz-container {
    grid-template-columns: 1fr 1.5fr;
    padding: var(--space-8);
    gap: var(--space-8);
  }
}

/* Progress bar */
.quiz-progress-wrap {
  margin-top: auto;
}
.qp-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}
.qp-fill {
  height: 100%;
  background: var(--creo-accent);
  transition: width 0.4s ease;
}
.qp-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Steps */
.cq-step, .cq-result {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
}

.cq-step.active, .cq-result.active {
  display: block;
}

.cq-step h3 {
  font-size: 1.5rem;
  color: var(--creo-white);
  margin-bottom: var(--space-5);
  line-height: 1.4;
}

.cq-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cq-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--creo-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition-base);
}

.cq-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--creo-accent);
  transform: translateY(-2px);
}

.cq-result {
  text-align: center;
  padding: var(--space-4);
}

.res-icon {
  margin-bottom: var(--space-4);
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}


/* ─── OPEN OPPORTUNITIES ACCORDION ─────────────────────────── */
.narrow-container {
  max-width: 800px;
}

.role-item {
  border: 1px solid var(--creo-mid);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--creo-white);
  overflow: hidden;
}

.role-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}

.role-header:hover {
  background: rgba(124, 58, 237, 0.02);
}

.role-header[aria-expanded="true"] {
  border-bottom-color: var(--creo-mid);
  background: rgba(124, 58, 237, 0.03);
}

.rh-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--creo-dark);
}

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

.rh-tag {
  background: var(--creo-light);
  color: var(--creo-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.rh-icon {
  font-size: 1.5rem;
  color: var(--creo-muted);
  transition: transform 0.3s ease;
}

.role-header[aria-expanded="true"] .rh-icon {
  transform: rotate(45deg);
  color: var(--creo-accent);
}

.role-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.rb-inner {
  padding: var(--space-5);
}

.rb-inner p {
  color: var(--creo-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.rb-inner h4 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--creo-dark);
}

.rb-inner ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5) 0;
}

.rb-inner ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--creo-muted);
  font-size: 0.9375rem;
}

.rb-inner ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--creo-accent);
  font-size: 0.8rem;
}


/* ─── GAMIFIED MULTI-STEP MODAL ────────────────────────────── */
.app-modal {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
}

.app-modal::backdrop {
  background: rgba(11, 23, 61, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--creo-error);
  border-color: var(--creo-error);
  transform: rotate(90deg);
}

.app-modal-inner {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .app-modal-inner {
    grid-template-columns: 320px 1fr;
  }
}

.app-sidebar {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  color: white;
}

.app-side-head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--creo-accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.app-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-s-item {
  color: rgba(255,255,255,0.4);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 24px;
}

.app-s-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s ease;
}

.app-s-item.active {
  color: white;
}

.app-s-item.active::before {
  background: var(--creo-accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.app-s-item.completed {
  color: rgba(255,255,255,0.8);
}

.app-s-item.completed::before {
  background: var(--creo-success);
}

.app-content-area {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .app-content-area {
    padding: var(--space-8);
  }
}

.careers-multi-form {
  background: var(--creo-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  .careers-multi-form {
    padding: var(--space-8);
  }
}

.form-step {
  display: none;
  animation: slideInRight 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

.form-step h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--creo-dark);
}

.fs-sub {
  color: var(--creo-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--creo-dark);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--creo-light);
  border: 1px solid var(--creo-mid);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--creo-dark);
  font-family: inherit;
  transition: var(--transition-base);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--creo-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  background: var(--creo-white);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--creo-mid);
}

/* Success State */
.step-success {
  text-align: center;
  padding: var(--space-4) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--creo-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-4);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
