/* =========================================================
   Kaboly — Careers page (extends style.css)
   ========================================================= */
.hero--page { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 130px); }
.hero__inner--page { grid-template-columns: 1.4fr .6fr; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; opacity: .8; margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero__facts li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 18px;
  padding: 18px 22px; display: flex; align-items: center; gap: 16px;
}
.hero__facts strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); direction: ltr; min-width: 92px; }
.hero__facts span { opacity: .9; }
.section--tight-top { padding-top: clamp(40px, 6vw, 70px); }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s, box-shadow .3s; }
.perk:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.perk__ico { width: 54px; height: 54px; border-radius: 16px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.perk__ico svg { width: 26px; height: 26px; }
.perk h3 { font-size: 1.15rem; }
.perk p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.6; }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.job:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.job__top { display: flex; gap: 14px; align-items: center; }
.job__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--red); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 20px -10px rgba(207,21,45,.7); }
.job__ico svg { width: 26px; height: 26px; }
.job h3 { margin: 0; font-size: 1.15rem; }
.job__type { font-size: .85rem; color: var(--red); font-weight: 700; }
.job p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; flex: 1; }
.job__apply {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(207,21,45,.3); background: transparent; color: var(--red);
  border-radius: 999px; padding: .5em 1.1em; font-weight: 700; font-size: .92rem; transition: background .2s, color .2s;
}
.job__apply:hover { background: var(--red); color: #fff; }
html[dir="ltr"] .job__apply .ico { transform: scaleX(-1); }
.job:last-child { background: var(--red-50); border-style: dashed; border-color: rgba(207,21,45,.3); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; padding: 10px 14px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; inset-inline-start: calc(50% + 46px); width: calc(100% - 72px);
  border-top: 2px dashed rgba(207,21,45,.3);
}
.step__n {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  box-shadow: 0 0 0 8px var(--red-50);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Apply layout ---------- */
.apply { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.apply__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.apply__aside > p { color: var(--muted); }
.apply__notes { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.apply__notes li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.apply__notes .ico { color: #fff; background: #1f9d55; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.apply__wa { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; transition: box-shadow .2s, transform .2s; }
.apply__wa:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.apply__wa svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #25D366; color: #fff; }
.apply__wa span { display: flex; flex-direction: column; line-height: 1.3; }
.apply__wa small { color: var(--muted); }

/* ---------- Form ---------- */
.form { background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form[hidden] { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--espresso); margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 10px; width: 100%; }
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; font-size: .93rem; color: var(--espresso); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="date"],
.form input[type="number"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 14px; padding: .72em 1em; min-height: 50px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E605A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1em center; padding-inline-end: 2.4em;
}
html[dir="ltr"] .form select { background-position: right 1em center; }
html[dir="rtl"] .form input[dir="ltr"] { text-align: right; }
.form textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(207,21,45,.1); }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #d93025 !important; background: #fff6f5 !important; }
.field__err { color: #c5221f; font-size: .85rem; font-weight: 500; }
.field__err:empty { display: none; }

.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: inline-block; padding: .6em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; transition: all .2s; }
.radio input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.is-invalid .radio span { border-color: #d93025; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 2px dashed rgba(207,21,45,.35); border-radius: 18px; background: var(--red-50); padding: 26px 16px; cursor: pointer; margin-bottom: 8px;
  transition: background .2s, border-color .2s;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:hover, .drop.is-drag { background: #fbe3e6; border-color: var(--red); }
.drop.has-file { border-style: solid; background: #effaf3; border-color: #1f9d55; }
.drop.is-invalid { border-color: #d93025; background: #fff6f5; }
.drop__ico { width: 40px; height: 40px; color: var(--red); }
.drop.has-file .drop__ico { color: #1f9d55; }
.drop strong { font-family: var(--font-display); font-weight: 600; word-break: break-all; }
.drop small { color: var(--muted); }
.drop + .field__err { display: block; margin-bottom: 12px; }
.drop + .field__err:empty { display: none; }
fieldset .drop ~ .field { margin-top: 16px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; padding: 14px 16px; border-radius: 14px; background: var(--cream); }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--red); flex-shrink: 0; }
.consent.is-invalid { outline: 1.5px solid #d93025; }
/* Honeypot: visually hidden in place (no off-screen offset, which widened the page in RTL) */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form__actions .btn { padding: 1em 2.2em; font-size: 1.05rem; }
.form__actions .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form__msg { margin: 0; font-weight: 600; }
.form__msg.is-error { color: #c5221f; }

/* ---------- Success ---------- */
.success { background: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); outline: 0; }
.success[hidden] { display: none; }
.success__ico { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px #e3f5ea; }
.success__ico svg { width: 44px; height: 44px; }
.success > p { color: var(--muted); max-width: 480px; margin-inline: auto; }
.success__ref { background: var(--cream); display: inline-block; padding: 10px 20px; border-radius: 12px; color: var(--ink) !important; }
.success__ref strong { font-family: var(--font-display); color: var(--red); letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__inner--page { grid-template-columns: 1fr; }
  .crumbs { justify-content: center; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts li { flex-direction: column; text-align: center; gap: 6px; padding: 14px; }
  .hero__facts strong { min-width: 0; font-size: 1.6rem; }
  .hero__facts span { font-size: .85rem; line-height: 1.4; }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .step::after { display: none; }
  .apply { grid-template-columns: 1fr; }
  .apply__aside { position: static; text-align: center; }
  .apply__notes { justify-items: center; }
}
@media (max-width: 620px) {
  .perks, .jobs, .grid2 { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { flex-direction: row; text-align: start; }
  .form__actions .btn { width: 100%; justify-content: center; }
}
