/* ═══════════════════════════════════════════════════════════════════════════
   style.css — Custom CSS for Orviko (loaded AFTER orviko.css)
   Keeps Webflow's orviko.css untouched. Uses its CSS variables.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Career Archive Page ─────────────────────────────────────────────────── */

.careers-page_section {
  padding-top: 9.5rem;
  padding-bottom: 8rem;
}

.careers-page_wrapper {
  grid-column-gap: var(--sizes--space--11xl-64px);
  grid-row-gap: var(--sizes--space--11xl-64px);
  flex-flow: column;
  display: flex;
}

/* Match projects-page_tittle width so title stays left, description goes right */
.careers-page_tittle {
  width: 55rem;
}

/* Push description to the right column (mirrors Webflow's w-node justify-self: end) */
.careers-page_wrapper .section-short_details {
  justify-self: end;
}

.careers-page_bottom {
  width: 100%;
}

/* Expired badge */
.career_card-expired-badge {
  position: absolute;
  top: var(--sizes--space--7xl-32px);
  right: var(--sizes--space--7xl-32px);
  padding: var(--sizes--space--xs-4px) var(--sizes--space--xl-12px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--3xl-16px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.career_card.is-expired {
  opacity: 0.6;
  pointer-events: none;
}

.careers_list {
  grid-column-gap: var(--sizes--space--5xl-24px);
  grid-row-gap: var(--sizes--space--5xl-24px);
  flex-flow: column;
  display: flex;
}

.career_card-tags {
  grid-column-gap: var(--sizes--space--md-8px);
  grid-row-gap: var(--sizes--space--md-8px);
  flex-flow: row wrap;
  display: flex;
  margin-top: var(--sizes--space--xl-12px);
}

.career_card-tags .services-tag_item {
  border-color: rgba(255, 255, 255, 0.2);
}

.career_card-tags .services-tag_item p {
  color: var(--mode-dark--token--base--content--secondary);
}

.career_card-deadline {
  opacity: 0.7;
  margin-top: var(--sizes--space--xs-4px);
}

/* ── Career Detail Page ──────────────────────────────────────────────────── */

.career-detail_section {
  padding-top: var(--sizes--space--15xl-112px);
  padding-bottom: var(--sizes--space--11xl-64px);
}

.career-detail_wrapper {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.career-detail_meta {
  grid-column-gap: var(--sizes--space--md-8px);
  grid-row-gap: var(--sizes--space--md-8px);
  flex-flow: row wrap;
  display: flex;
  margin-top: var(--sizes--space--7xl-32px);
}

.career-detail_content {
  grid-column-gap: var(--sizes--space--9xl-48px);
  grid-row-gap: var(--sizes--space--9xl-48px);
  flex-flow: column;
  display: flex;
  margin-top: var(--sizes--space--11xl-64px);
}

.career-detail_block {
  grid-column-gap: var(--sizes--space--3xl-16px);
  grid-row-gap: var(--sizes--space--3xl-16px);
  flex-flow: column;
  display: flex;
}

.career-detail_list {
  list-style: disc;
  padding-left: var(--sizes--space--5xl-24px);
  margin: 0;
}

.career-detail_list li {
  padding: var(--sizes--space--sm-6px) 0;
}

.career-detail_list strong,
.career-detail_wrapper > p strong {
  font-weight: 600;
}

.career-detail_cta {
  margin-top: var(--sizes--space--7xl-32px);
}

.career-detail_back {
  display: inline-flex;
  align-items: center;
  gap: var(--sizes--space--md-8px);
  margin-bottom: var(--sizes--space--7xl-32px);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.career-detail_back:hover {
  opacity: 1;
}

.career-detail_back .icon-100 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.career-detail_back p {
  margin: 0;
  line-height: 1;
}

/* ── Career Modal — Light ──────────────────────────────────────────────────── */

/* Light panel — hide the dark animated bg, use plain white */
.career_modal-wrapper {
  background-color: var(--color--base--white);
  position: relative;
}

.career_modal-wrapper .modal_bg-styles {
  display: none;
}

/* Close button: black bg, off-white icon, sharp corners */
.career_modal-wrapper .modal-close-icon_wrapper {
  background-color: var(--color--base--black);
  color: var(--mode-dark--token--base--text--text-secondary);
  border-radius: 0;
  transition: opacity 0.15s ease;
}

.career_modal-wrapper .modal-close-icon_wrapper:hover {
  opacity: 0.8;
}

/* Header */
.career_modal-header {
  margin-bottom: var(--sizes--space--7xl-32px);
}

/* Form layout */
.career_modal-content .contact_form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--sizes--space--4xl-20px);
  margin-bottom: var(--sizes--space--7xl-32px);
}

.career_modal-content .contact_form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sizes--space--xs-4px);
}

/* Textarea height */
.career_modal-content textarea.form_input {
  height: 8rem;
  resize: vertical;
}

/* ── Career Modal — Multi-Step Form ──────────────────────────────────────── */

/* Progress bars */
.career-form_steps {
  display: flex;
  gap: 6px;
  margin-bottom: var(--sizes--space--8xl-40px);
}

.career-form_step-bar {
  flex: 1;
  height: 8px;
  border-radius: 0;
  background-color: var(--mode-light--token--base--border--border);
  transition: background-color 0.35s ease;
}

.career-form_step-bar.is-active {
  background-color: var(--color--base--black);
}

/* Panels */
.career-form_panel { display: none; }
.career-form_panel.is-active { display: block; }

/* 2-col grid */
.career-form_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sizes--space--4xl-20px);
}

.career-form_field {
  display: flex;
  flex-direction: column;
  gap: var(--sizes--space--xs-4px);
}

.career-form_field.is-full {
  grid-column: 1 / -1;
}

/* Required asterisk */
.career-form_req {
  color: var(--mode-light--token--base--text--text-secondary);
  margin-left: 2px;
}

/* Chips (checkbox buttons) */
.career-form_chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sizes--space--md-8px);
  padding-top: var(--sizes--space--md-8px);
}

.career-form_chip {
  position: relative;
  cursor: pointer;
}

.career-form_chip input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}

.career-form_chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sizes--space--9xl-48px);
  padding: var(--sizes--space--xl-12px) var(--sizes--space--3xl-16px);
  border: 1px solid #12133140;
  background: transparent;
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--4xl-20px);
  font-weight: 500;
  color: var(--color--base--black);
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.career-form_chip input[type="checkbox"]:checked + span {
  background-color: var(--color--base--black);
  color: white;
  border-color: var(--color--base--black);
}

/* Conditional block — flat, no card */
.career-form_conditional {
  display: contents;
}

/* Select with dropdown arrow */
.career-form_select {
  -webkit-appearance: none;
  appearance: none;
  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='%23888' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

/* Textarea */
.career-form_textarea {
  height: auto !important;
  min-height: 7rem;
  resize: vertical;
  line-height: 1.6;
}

/* File upload — modern drop zone */
.career-form_upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sizes--space--md-8px);
  padding: var(--sizes--space--7xl-32px) var(--sizes--space--4xl-20px);
  border: 1px dashed var(--mode-light--token--base--border--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-align: center;
}

.career-form_upload:hover {
  border-color: var(--color--base--black);
  background-color: rgba(0, 0, 0, 0.02);
}

.career-form_upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.career-form_upload-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sizes--space--md-8px);
}

.career-form_upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  opacity: 0.4;
}

.career-form_upload-text {
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--3xl-16px);
  font-weight: 500;
  color: var(--mode-light--token--base--text--text-primary);
  margin: 0;
}

.career-form_upload-hint {
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--2xl-14px);
  color: var(--mode-light--token--base--text--text-secondary);
  margin: 0;
}

.career-form_upload.has-file {
  border-color: var(--color--base--black);
  border-style: solid;
}

.career-form_upload-filename {
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--3xl-16px);
  font-weight: 500;
  color: var(--color--base--black);
  margin: 0;
  display: none;
}

.career-form_upload.has-file .career-form_upload-filename { display: block; }
.career-form_upload.has-file .career-form_upload-default { display: none; }

/* Actions row */
.career-form_actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sizes--space--3xl-16px);
  margin-top: var(--sizes--space--8xl-40px);
}

/* Previous button */
.career-form_prev-btn {
  font-family: var(--font--family--body);
  font-size: var(--sizes--space--3xl-16px);
  font-weight: 500;
  color: var(--mode-light--token--base--text--text-secondary);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.career-form_prev-btn:hover {
  color: var(--mode-light--token--base--text--text-primary);
}

/* Success / error state */
.career-form_success,
.career-form_error {
  padding-top: var(--sizes--space--8xl-40px);
}

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

/* ── About Hiring Section ────────────────────────────────────────────────── */

.about-hiring_section {
  padding-top: var(--sizes--space--11xl-64px);
  padding-bottom: var(--sizes--space--15xl-112px);
}

.about-hiring_wrapper .section-short_details {
  display: flex;
  flex-flow: column;
  gap: var(--sizes--space--7xl-32px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media screen and (max-width: 991px) {
  .careers-page_tittle {
    width: 100%;
  }

  .careers-page_wrapper .section-short_details {
    justify-self: start;
  }

  .careers-page_section {
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .career-detail_wrapper {
    max-width: 100%;
  }

  .career-detail_section {
    padding-top: var(--sizes--space--13xl-80px);
  }
}

@media screen and (max-width: 767px) {
  .careers-page_section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .career-detail_section {
    padding-top: var(--sizes--space--11xl-64px);
  }

  .career-detail_content {
    grid-row-gap: var(--sizes--space--7xl-32px);
  }
}

@media screen and (max-width: 479px) {
  .careers-page_section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .career-detail_section {
    padding-top: var(--sizes--space--9xl-48px);
  }
}
