/* DIAKO hiring form — isolated from CRM / CTA / placement styles */
.hire-cta {
  padding: 1.5rem 1rem 2rem;
  background: #f8fafc;
}

.hire-cta__wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.hire-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.25rem, 4vw, 2.2rem);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.hire-cta__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
}

.hire-cta__btn,
.hire-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
}

.hire-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  background: #f97316;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.hire-cta__btn:hover,
.hire-btn--primary:hover {
  background: #ea580c;
}

@media (max-width: 560px) {
  .hire-cta__card {
    justify-content: center;
    text-align: center;
  }

  .hire-cta__btn {
    width: 100%;
  }
}

.hire-modal[hidden] {
  display: none;
}

.hire-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hire-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.hire-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.hire-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem 0.8rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.hire-modal__eyebrow {
  margin: 0 0 0.2rem;
  color: #ea580c;
  font-size: 0.78rem;
  font-weight: 800;
}

.hire-modal__title {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.hire-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.hire-modal__progress {
  height: 4px;
  margin: 0 1.3rem;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.hire-modal__progress-bar {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  transition: width 0.25s ease;
}

.hire-modal__steps {
  display: none;
  list-style: none;
  margin: 0.75rem 1.3rem 0;
  padding: 0;
  gap: 0.5rem;
}

.hire-modal__body,
.hire-success {
  padding: 1rem 1.3rem 1.4rem;
}

.hire-form__question,
.hire-form__section {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: 1.05rem;
}

.hire-role-grid,
.hire-grid {
  display: grid;
  gap: 0.85rem;
}

.hire-role-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hire-role,
.hire-role * {
  font-family: var(--font-body, "Vazirmatn", Tahoma, sans-serif) !important;
}

.hire-role {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 108px;
  height: 100%;
  margin: 0;
  padding: 1.05rem 1.15rem;
  text-align: right;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.22);
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.hire-role:hover {
  border-color: #fdba74;
  background: #fff;
  box-shadow: 0 10px 22px -16px rgba(249, 115, 22, 0.28);
}

.hire-role.is-selected {
  border-color: #f97316;
  background: #fff7ed;
  box-shadow: 0 0 0 1px #f97316, 0 10px 22px -16px rgba(249, 115, 22, 0.35);
}

.hire-role:focus-visible {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.hire-role__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
}

.hire-role.is-selected .hire-role__icon {
  background: #ffedd5;
  color: #ea580c;
}

.hire-role__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.hire-role__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 auto;
}

.hire-role__title {
  display: block;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
}

.hire-role__desc {
  display: block;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.65;
}

.hire-grid {
  grid-template-columns: 1fr;
}

.hire-field,
.hire-field legend {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}

.hire-field em {
  color: #ea580c;
  font-style: normal;
}

.hire-optional {
  color: #94a3b8;
  font-weight: 600;
}

.hire-field input:not([type="hidden"]):not(.hire-datepicker__display):not(.hire-phone__number),
.hire-field select,
.hire-field textarea {
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.hire-field textarea {
  min-height: 96px;
  resize: vertical;
}

.hire-field input:not([type="hidden"]):not(.hire-datepicker__display):not(.hire-phone__number):focus,
.hire-field select:focus,
.hire-field textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.hire-field.is-invalid input,
.hire-field.is-invalid select,
.hire-field.is-invalid textarea,
.hire-field.is-invalid .hire-datepicker__display,
.hire-field.is-invalid .hire-datepicker__open,
.hire-field.is-invalid .hire-phone__control {
  border-color: #dc2626;
}

.hire-datepicker {
  margin-top: 0.4rem;
}

.hire-datepicker__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hire-datepicker__display {
  flex: 1 1 auto;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
  text-align: center;
  letter-spacing: 0.04em;
}

.hire-datepicker__display:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.hire-datepicker__open {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hire-datepicker__open:hover {
  border-color: #fdba74;
  background: #fff7ed;
}

.hire-phone {
  margin-top: 0.4rem;
}

.hire-phone__control {
  display: flex;
  align-items: stretch;
  direction: ltr;
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.hire-phone__control:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.hire-phone__code {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-left: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.hire-phone__code:hover,
.hire-phone__code[aria-expanded="true"] {
  background: #fff7ed;
}

.hire-phone__flag {
  font-size: 1.15rem;
  line-height: 1;
}

.hire-phone__dial {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.hire-phone__caret {
  width: 0;
  height: 0;
  margin-inline-start: 0.1rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
}

.hire-phone__number {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  border: 0;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: #0f172a;
  background: transparent;
}

.hire-phone__number:focus {
  outline: none;
}

.hire-phone__dropdown {
  max-height: min(320px, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  direction: rtl;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.hire-phone__dropdown[hidden] {
  display: none !important;
}

.hire-phone__search {
  width: calc(100% - 1.2rem);
  margin: 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
}

.hire-phone__search:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.hire-phone__list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
  overflow: auto;
  max-height: 240px;
}

.hire-phone__option {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.62rem 0.85rem;
  font: inherit;
  color: #0f172a;
  text-align: start;
  cursor: pointer;
}

.hire-phone__option:hover,
.hire-phone__option.is-selected {
  background: #fff7ed;
}

.hire-phone__option-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.hire-phone__option-name {
  font-weight: 700;
}

.hire-phone__option-dial {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.hire-phone__empty {
  padding: 0.8rem 1rem;
  color: #64748b;
}

.hire-cal-pop {
  position: fixed;
  z-index: 13050;
}

.hire-cal {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  padding: 0.7rem;
}

.hire-cal__nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.hire-cal__navbtn {
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.hire-cal__title {
  display: flex;
  gap: 0.3rem;
  min-width: 0;
}

.hire-cal__month,
.hire-cal__year {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.25rem;
}

.hire-cal__year {
  flex: 0 1 5.5rem;
}

.hire-cal__week,
.hire-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.hire-cal__week span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  padding: 0.25rem 0;
}

.hire-cal__day {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.hire-cal__day:hover {
  background: #fff7ed;
}

.hire-cal__day.is-today {
  box-shadow: inset 0 0 0 1px #fdba74;
}

.hire-cal__day.is-selected {
  background: #0f172a;
  color: #fff;
}

.hire-cal__empty {
  min-height: 36px;
}

@media (max-width: 759px) {
  .hire-cal__week span {
    font-size: 0.62rem;
  }

  .hire-cal__navbtn {
    padding: 0.35rem 0.3rem;
    font-size: 0.68rem;
  }

  .hire-cal__day {
    min-height: 34px;
  }
}

.hire-field__error {
  display: block;
  min-height: 1.1em;
  margin-top: 0.28rem;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
}

.hire-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.45rem;
}

.hire-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #0f172a;
}

.hire-choice input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.hire-form__global-error {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 700;
}

.hire-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hire-btn {
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
}

.hire-btn--primary {
  background: #f97316;
  color: #fff;
}

.hire-btn--ghost {
  background: #f1f5f9;
  color: #0f172a;
}

.hire-btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.hire-success {
  text-align: center;
  padding: 2.4rem 1.4rem 2rem;
}

.hire-success__icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.hire-success h3 {
  margin: 0 0 0.8rem;
  color: #0f172a;
  font-size: 1.35rem;
}

.hire-success p {
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  color: #475569;
  line-height: 1.9;
}

body.hire-modal-open {
  overflow: hidden;
}

body.hire-modal-open .wa-float,
body.hire-modal-open [data-ft-wa-float] {
  display: none !important;
}

@media (min-width: 760px) {
  .hire-role-grid,
  .hire-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hire-field--full {
    grid-column: 1 / -1;
  }

  .hire-modal__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .hire-modal__steps li {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid #e2e8f0;
  }

  .hire-modal__steps li.is-active,
  .hire-modal__steps li.is-done {
    color: #0f172a;
    border-color: #f97316;
  }
}

@media (max-width: 759px) {
  .hire-modal {
    padding: 0;
    align-items: stretch;
  }

  .hire-modal__dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-height: 100dvh;
    border-radius: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hire-modal__progress {
    position: sticky;
    top: 72px;
    z-index: 2;
  }
}
