/* ===== فرم استخدام و کاریابی گرا.کالا ===== */

:root {
  --job-darkest: #020a08;
  --job-dark: #061b15;
  --job-green-dark: #074d39;
  --job-green: #0d9869;
  --job-green-light: #45daa0;
  --job-green-bright: #a4ffd5;
  --job-text: #effff8;
  --job-muted: rgba(235, 255, 247, 0.57);
  --job-border: rgba(71, 219, 162, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;

  color: var(--job-text);
  font-family: Tahoma, Arial, sans-serif;

  background: var(--job-darkest);
}

/* ===== صفحه و ویدیوی پس‌زمینه ===== */

.gk-job-page {
  position: relative;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 15px;

  overflow: hidden;
}

.gk-job-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  background: #07110e;
}

.gk-job-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(90deg, rgba(0, 10, 7, 0.14), rgba(0, 13, 9, 0.26)),
    rgba(0, 0, 0, 0.12);
}

/* نوشته بیرون پنجره فعلاً مخفی است */

.gk-job-hero-text {
  display: none;
}

/* ===== پنجره اصلی ===== */

.gk-job-window {
  position: relative;
  z-index: 2;

  width: min(680px, calc(100vw - 30px));
  height: auto;
  max-height: calc(100dvh - 30px);

  margin: 0 auto 0 0;

  direction: rtl;

  border: 1px solid var(--job-border);
  border-radius: 22px;

  background:
    radial-gradient(
      circle at top right,
      rgba(47, 214, 150, 0.13),
      transparent 37%
    ),
    linear-gradient(145deg, rgba(4, 28, 21, 0.9), rgba(2, 13, 11, 0.95));

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(31, 214, 144, 0.13),
    inset 0 1px 0 rgba(199, 255, 232, 0.08);

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  overflow-x: hidden;
  overflow-y: auto;

  animation: gkJobOpen 0.4s ease both;
}

/* اسکرول پنجره */

.gk-job-window {
  scrollbar-width: thin;
  scrollbar-color: var(--job-green-light) rgba(255, 255, 255, 0.04);
}

.gk-job-window::-webkit-scrollbar {
  width: 5px;
}

.gk-job-window::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.gk-job-window::-webkit-scrollbar-thumb {
  border-radius: 20px;

  background: linear-gradient(var(--job-green-bright), var(--job-green));
}

/* ===== دکمه ضربدر ===== */

.gk-job-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;

  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  color: var(--job-green-bright);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;

  border: 1px solid rgba(87, 225, 174, 0.38);
  border-radius: 50%;

  background: rgba(44, 207, 145, 0.07);

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.gk-job-close:hover {
  color: #03120d;
  background: var(--job-green-light);
  transform: rotate(90deg);
}

/* ===== سربرگ ===== */

.gk-job-header {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 18px 56px 17px 18px;

  border-bottom: 1px solid rgba(74, 220, 164, 0.18);

  background: linear-gradient(
    90deg,
    rgba(37, 209, 143, 0.035),
    rgba(37, 209, 143, 0.08)
  );
}

.gk-job-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gk-job-heading-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  flex: 0 0 48px;

  font-size: 24px;

  border: 1px solid rgba(78, 225, 169, 0.31);
  border-radius: 14px;

  background: linear-gradient(
    145deg,
    rgba(54, 221, 157, 0.18),
    rgba(7, 79, 57, 0.15)
  );

  box-shadow: inset 0 1px 0 rgba(214, 255, 239, 0.08);
}

.gk-job-heading h1 {
  margin: 0 0 5px;

  color: var(--job-green-bright);
  font-size: 21px;
  line-height: 1.5;
}

.gk-job-heading p {
  margin: 0;

  color: var(--job-muted);
  font-size: 12px;
}

.gk-job-free-badge {
  flex: 0 0 auto;

  padding: 8px 15px;

  color: #d8ffef;
  font-size: 12px;
  font-weight: bold;

  border: 1px solid rgba(88, 226, 174, 0.4);
  border-radius: 30px;

  background: linear-gradient(
    135deg,
    rgba(15, 158, 108, 0.9),
    rgba(5, 70, 50, 0.96)
  );

  box-shadow: 0 0 18px rgba(38, 218, 147, 0.15);
}

/* ===== خود فرم ===== */

.gk-job-form {
  padding: 13px;
}

/* هر دو ستون دقیقاً در یک ردیف */

.gk-job-form-layout {
  display: grid;

  grid-template-columns: 235px minmax(0, 1fr);
  grid-template-areas: "employer details";

  align-items: start;
  gap: 12px;

  direction: ltr;
}

.gk-job-details {
  grid-area: details;
  direction: rtl;
}

.gk-job-employer {
  grid-area: employer;
  direction: rtl;
}

.gk-job-details,
.gk-job-employer {
  min-width: 0;
  height: auto;

  padding: 13px;

  border: 1px solid rgba(76, 218, 164, 0.19);
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    rgba(36, 205, 141, 0.04),
    rgba(255, 255, 255, 0.015)
  );

  box-shadow: inset 0 1px 0 rgba(220, 255, 241, 0.035);
}

/* ===== عنوان ستون‌ها ===== */

.gk-job-section-title {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 13px;
  padding-bottom: 9px;

  border-bottom: 1px solid rgba(73, 218, 162, 0.14);
}

.gk-job-section-title > span {
  width: 33px;
  height: 33px;

  display: grid;
  place-items: center;

  flex: 0 0 33px;

  color: var(--job-green-light);
  font-size: 16px;

  border: 1px solid rgba(74, 222, 165, 0.24);
  border-radius: 10px;

  background: rgba(43, 204, 143, 0.07);
}

.gk-job-section-title h2 {
  margin: 0 0 3px;

  color: var(--job-green-light);
  font-size: 13px;
}

.gk-job-section-title small {
  color: rgba(233, 255, 246, 0.4);
  font-size: 8px;
}

/* ===== فیلدها ===== */

.gk-job-field {
  min-width: 0;
  margin-bottom: 9px;
}

.gk-job-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gk-job-field label,
.gk-job-image-upload > label {
  display: block;

  margin-bottom: 5px;

  color: rgba(240, 255, 249, 0.82);
  font-size: 9px;
  font-weight: 700;
}

.gk-job-field label span {
  color: var(--job-green-light);
}

.gk-job-field input,
.gk-job-field select,
.gk-job-field textarea {
  width: 100%;
  min-width: 0;

  color: #effff8;
  font-family: inherit;
  font-size: 9px;

  border: 1px solid rgba(187, 255, 228, 0.14);
  border-radius: 9px;
  outline: none;

  background: rgba(210, 255, 237, 0.025);

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.gk-job-field input,
.gk-job-field select {
  height: 35px;
  padding: 0 9px;
}

.gk-job-field textarea {
  min-height: 87px;
  padding: 9px;

  line-height: 1.8;
  resize: vertical;
}

.gk-job-field input::placeholder,
.gk-job-field textarea::placeholder {
  color: rgba(223, 255, 242, 0.27);
}

.gk-job-field input:focus,
.gk-job-field select:focus,
.gk-job-field textarea:focus {
  border-color: rgba(77, 229, 170, 0.72);

  background: rgba(56, 220, 156, 0.05);

  box-shadow: 0 0 0 3px rgba(48, 215, 151, 0.07);
}

.gk-job-field select {
  color-scheme: dark;
  cursor: pointer;
}

/* ===== آیکون داخل ورودی ===== */

.gk-job-input-icon {
  position: relative;
}

.gk-job-input-icon > span {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 2;

  color: var(--job-green-light);
  font-size: 11px;

  pointer-events: none;

  transform: translateY(-50%);
}

.gk-job-input-icon input {
  padding-right: 29px;
}

/* ===== نوع همکاری ===== */

.gk-job-work-type {
  min-width: 0;

  margin: 1px 0 10px;
  padding: 0;

  border: 0;
}

.gk-job-work-type legend {
  margin-bottom: 6px;

  color: rgba(240, 255, 249, 0.82);
  font-size: 9px;
  font-weight: 700;
}

.gk-job-work-type legend span {
  color: var(--job-green-light);
}

.gk-job-work-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.gk-job-work-options label {
  cursor: pointer;
}

.gk-job-work-options input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.gk-job-work-options span {
  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 5px;

  color: rgba(233, 255, 246, 0.54);
  font-size: 8px;

  border: 1px solid rgba(211, 255, 237, 0.12);
  border-radius: 8px;

  background: rgba(225, 255, 243, 0.02);
}

.gk-job-work-options input:checked + span {
  color: #ddfff1;

  border-color: rgba(76, 227, 168, 0.72);

  background: linear-gradient(
    135deg,
    rgba(22, 168, 112, 0.48),
    rgba(7, 78, 57, 0.36)
  );

  box-shadow:
    0 0 0 2px rgba(52, 219, 154, 0.05),
    0 0 13px rgba(44, 213, 148, 0.11);
}

/* ===== شمارنده ===== */

.gk-job-counter {
  margin-top: 4px;

  color: rgba(228, 255, 244, 0.32);
  text-align: left;
  font-size: 8px;

  direction: rtl;
}

/* ===== تصویر کارفرما ===== */

.gk-job-image-upload {
  margin-bottom: 11px;
}

.gk-job-image-preview {
  position: relative;

  width: 100%;
  height: 138px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border: 1px dashed rgba(73, 221, 164, 0.36);
  border-radius: 12px;

  background:
    radial-gradient(circle, rgba(42, 210, 146, 0.08), transparent 62%),
    rgba(0, 0, 0, 0.16);
}

.gk-job-image-preview img {
  position: absolute;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;
}

.gk-job-image-preview img[hidden] {
  display: none !important;
}

.gk-job-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;

  color: rgba(229, 255, 244, 0.52);
  text-align: center;
}

.gk-job-image-placeholder > span {
  color: var(--job-green-light);
  font-size: 25px;
}

.gk-job-image-placeholder strong {
  font-size: 10px;
}

.gk-job-image-placeholder small {
  max-width: 150px;

  color: rgba(229, 255, 244, 0.31);
  font-size: 7px;
  line-height: 1.7;
}

.gk-job-image-placeholder[hidden],
.gk-job-image-preview.has-image .gk-job-image-placeholder {
  display: none !important;
}

#gkJobImageInput {
  display: none;
}

.gk-job-image-button {
  min-height: 35px;

  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-top: 7px !important;
  margin-bottom: 4px !important;

  color: #eafff6 !important;
  font-size: 9px !important;

  border: 1px solid rgba(94, 235, 181, 0.58);
  border-radius: 8px;

  background: linear-gradient(100deg, #07543d, #13a36f, #087452);

  cursor: pointer;
}

.gk-job-image-help {
  display: block;

  color: rgba(226, 255, 243, 0.3);
  text-align: center;
  font-size: 7px;
}

/* ===== شماره تماس ===== */

.gk-job-phone-field {
  margin-top: 12px;
}

/* ===== قوانین ===== */

.gk-job-rules {
  display: flex;
  align-items: flex-start;
  gap: 7px;

  margin: 11px 0;

  color: rgba(231, 255, 245, 0.55);
  font-size: 8px;
  line-height: 1.7;

  cursor: pointer;
}

.gk-job-rules input {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  margin: 0;

  accent-color: var(--job-green);
}

/* ===== دکمه‌های پایین ===== */

.gk-job-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 7px;
}

.gk-job-submit,
.gk-job-cancel {
  min-height: 39px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 7px;

  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;

  border-radius: 9px;

  cursor: pointer;
}

.gk-job-submit {
  color: #03150e;

  border: 1px solid #9dffd3;

  background: linear-gradient(100deg, #119667, #70efb8, #17a873);

  box-shadow:
    0 8px 20px rgba(28, 215, 144, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gk-job-cancel {
  color: rgba(234, 255, 247, 0.68);

  border: 1px solid rgba(203, 255, 234, 0.14);

  background: rgba(219, 255, 240, 0.025);
}

.gk-job-security {
  margin-top: 9px;

  color: rgba(126, 235, 187, 0.62);
  text-align: center;
  font-size: 7px;
}

/* ===== انیمیشن پنجره ===== */

@keyframes gkJobOpen {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ===== نسخه موبایل ===== */

@media (max-width: 720px) {
  .gk-job-page {
    padding: 8px;
  }

  .gk-job-window {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);

    margin: 0;

    border-radius: 17px;
  }

  .gk-job-header {
    min-height: 82px;

    padding: 15px 48px 14px 13px;
  }

  .gk-job-heading-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;

    font-size: 20px;
  }

  .gk-job-heading h1 {
    font-size: 16px;
  }

  .gk-job-heading p {
    font-size: 9px;
  }

  .gk-job-free-badge {
    padding: 7px 10px;
    font-size: 9px;
  }

  .gk-job-form-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "details"
      "employer";
  }

  .gk-job-fields-row {
    grid-template-columns: 1fr;
  }

  .gk-job-work-options {
    grid-template-columns: 1fr;
  }
}
/* ===== پنجره موفقیت ثبت آگهی استخدام ===== */

.gk-job-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;
  direction: rtl;

  background: rgba(0, 8, 5, 0.78);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

/* حالت باز */

.gk-job-success-modal.show,
.gk-job-success-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* خود پنجره */

.gk-job-success-box {
  position: relative;

  width: min(420px, 100%);

  padding: 27px 21px 18px;

  color: #edfff7;
  text-align: center;

  border: 1px solid rgba(91, 236, 181, 0.55);
  border-radius: 22px;

  background:
    radial-gradient(circle at top, rgba(52, 225, 159, 0.2), transparent 42%),
    linear-gradient(145deg, rgba(5, 39, 29, 0.98), rgba(2, 16, 12, 0.99));

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 38px rgba(43, 223, 155, 0.16),
    inset 0 1px 0 rgba(221, 255, 242, 0.09);

  transform: translateY(22px) scale(0.96);

  transition: transform 0.28s ease;
}

.gk-job-success-modal.show .gk-job-success-box,
.gk-job-success-modal[aria-hidden="false"] .gk-job-success-box {
  transform: translateY(0) scale(1);
}

/* دکمه ضربدر */

.gk-job-success-close {
  position: absolute;
  top: 12px;
  left: 12px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  color: #a5ffd6;
  font-size: 23px;
  line-height: 1;

  border: 1px solid rgba(92, 230, 179, 0.3);
  border-radius: 50%;

  background: rgba(92, 230, 179, 0.06);

  cursor: pointer;
}

.gk-job-success-close:hover {
  color: #04160f;
  background: #5de1aa;
}

/* آیکون موفقیت */

.gk-job-success-icon {
  width: 68px;
  height: 68px;

  display: grid;
  place-items: center;

  margin: 0 auto 13px;

  border: 1px solid rgba(110, 245, 194, 0.65);
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(72, 228, 169, 0.3),
    rgba(6, 91, 64, 0.2)
  );

  box-shadow:
    0 0 25px rgba(57, 221, 160, 0.24),
    inset 0 0 16px rgba(119, 255, 203, 0.1);
}

.gk-job-success-icon span {
  color: #b3ffdd;
  font-size: 35px;
  font-weight: bold;
}

/* نوشته‌ها */

.gk-job-success-label {
  display: block;

  margin-bottom: 5px;

  color: #62dda9;
  font-size: 11px;
}

.gk-job-success-box h2 {
  margin: 0 0 9px;

  color: #dcfff0;
  font-size: 20px;
}

.gk-job-success-box > p {
  max-width: 350px;

  margin: 0 auto 16px;

  color: rgba(235, 255, 247, 0.64);
  font-size: 11px;
  line-height: 1.9;
}

.gk-job-success-box > p strong {
  color: #7eecb9;
}

/* مشخصات نتیجه */

.gk-job-success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;

  margin-bottom: 11px;
}

.gk-job-success-details div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 10px 5px;

  border: 1px solid rgba(92, 228, 177, 0.17);
  border-radius: 10px;

  background: rgba(120, 255, 204, 0.025);
}

.gk-job-success-details span {
  color: rgba(234, 255, 246, 0.43);
  font-size: 8px;
}

.gk-job-success-details strong {
  color: #8aefc2;
  font-size: 9px;
}

/* پیام امنیت */

.gk-job-success-security {
  margin-bottom: 13px;
  padding: 8px;

  color: rgba(161, 239, 203, 0.76);
  font-size: 9px;

  border: 1px solid rgba(74, 217, 160, 0.17);
  border-radius: 9px;

  background: rgba(44, 187, 129, 0.055);
}

/* دکمه‌ها */

.gk-job-success-actions {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
}

.gk-job-success-back,
.gk-job-success-home {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px;

  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;

  border-radius: 9px;

  cursor: pointer;
}

.gk-job-success-back {
  color: rgba(236, 255, 248, 0.7);

  border: 1px solid rgba(218, 255, 240, 0.14);

  background: rgba(224, 255, 243, 0.025);
}

.gk-job-success-home {
  color: #03160f;

  border: 1px solid #a8ffd8;

  background: linear-gradient(100deg, #119968, #73edb8, #16a570);

  box-shadow: 0 9px 23px rgba(35, 211, 143, 0.18);
}

/* نوار پنج‌ثانیه‌ای */

.gk-job-success-progress {
  height: 3px;

  margin-top: 14px;

  overflow: hidden;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.07);
}

.gk-job-success-progress span {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: inherit;

  background: linear-gradient(90deg, #08734e, #6ceab5, #b1ffdc);

  transform-origin: right;
}

.gk-job-success-modal.show .gk-job-success-progress span {
  animation: gkJobSuccessTime 5s linear forwards;
}

.gk-job-success-time {
  display: block;

  margin-top: 7px;

  color: rgba(231, 255, 245, 0.34);
  font-size: 8px;
}

@keyframes gkJobSuccessTime {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* نسخه موبایل */

@media (max-width: 480px) {
  .gk-job-success-modal {
    padding: 10px;
  }

  .gk-job-success-box {
    padding: 24px 14px 15px;

    border-radius: 18px;
  }

  .gk-job-success-box h2 {
    font-size: 17px;
  }

  .gk-job-success-details {
    grid-template-columns: 1fr;
  }

  .gk-job-success-actions {
    grid-template-columns: 1fr;
  }

  .gk-job-success-home {
    grid-row: 1;
  }

  .gk-job-success-back {
    grid-row: 2;
  }
} /* ===== منوی دسته‌بندی شغل ===== */

#gkJobCategory {
  color: #eafff5 !important;

  border: 1px solid rgba(85, 232, 176, 0.55) !important;

  background-color: #06261c !important;

  cursor: pointer;
}

#gkJobCategory:hover,
#gkJobCategory:focus {
  color: #ffffff !important;

  border-color: #5ce3ad !important;

  background-color: #083526 !important;

  box-shadow: 0 0 0 3px rgba(54, 218, 156, 0.1);
}

#gkJobCategory option {
  color: #ecfff7 !important;
  background-color: #073326 !important;
}

#gkJobCategory option:checked {
  color: #03140d !important;
  background: #5ce3ad !important;
}

/* راهنمای شرایط موردنیاز */

.gk-job-requirements-help {
  display: block;

  margin-top: 4px;

  color: rgba(225, 255, 243, 0.34);
  font-size: 7px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
