:root {
  --blue-deep: #203a7a;
  --blue-accent: #4d7cff;
  --blue-light: #e8f0ff;
  --sky-light: #9dd4f2;
  --paper: #fbfaf4;
  --ink: #1e2e52;
  --muted: #64759a;
  --line: #d8e3f0;
  --shadow: 0 24px 80px rgba(20, 45, 100, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #2c78bd;
  font: 16px/1.5 'DM Sans', sans-serif;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background: linear-gradient(125deg, #103b73, #2c78bd 48%, #9dd4f2);
  content: '';
}

.shape {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  opacity: .75;
}
.shape-one {
  top: -20vw;
  right: -10vw;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  transform: rotate(22deg);
  background: rgba(166, 220, 247, .62);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.shape-two {
  bottom: -14vw;
  left: -8vw;
  width: 34vw;
  height: 34vw;
  transform: rotate(14deg);
  background: rgba(12, 54, 105, .48);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 20% 80%);
}

.page-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 90px;
}
.intro {
  width: min(760px, 100%);
  padding: 0 0 36px 7px;
  color: #fff;
}
.survey-logo {
  display: block;
  width: min(200px, 70vw);
  height: auto;
  margin: 0 0 22px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font: 800 clamp(42px, 7vw, 72px)/.98 Manrope, sans-serif;
  letter-spacing: -.05em;
}
h1 em { color: var(--sky-light); font-style: normal; }
.intro > p { max-width: 560px; margin-bottom: 0; color: rgba(255,255,255,.84); }
.intro-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: rgba(255,255,255,.76); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-light); }

.survey-card {
  padding: clamp(22px, 5vw, 48px);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.survey-progress {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.consent-section {
  margin-top: 25px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #a8c6ff;
  border-radius: 14px;
  background: #e8f0ff;
}
.consent-section h2, .section-heading h2 {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font: 800 clamp(19px, 3vw, 25px)/1.25 Manrope, sans-serif;
}
.consent-section > p { margin-bottom: 18px; }
.document-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 14px; }
.document-heading a { color: var(--blue-deep); font-weight: 700; text-underline-offset: 3px; }
.consent-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: clamp(340px, 55vw, 560px);
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.consent-pdf-page { flex: 0 0 auto; max-width: 100%; margin: 0; box-shadow: 0 1px 5px rgba(18, 52, 90, .22); }
.consent-pdf-page canvas { display: block; max-width: 100%; height: auto; }
.consent-pdf-status { margin: auto; padding: 16px; color: var(--muted); text-align: center; }
.privacy-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; cursor: pointer; }
.privacy-consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-deep); }
.required { color: #c94d49; }

.question-section { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.section-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; padding-top: 22px; }
.full-width { grid-column: 1 / -1; }
.mode-dependent-fields { display: contents; }
.mode-dependent-fields[hidden] { display: none; }
.time-selection-dependent-fields { display: contents; }
.time-selection-dependent-fields[hidden] { display: none; }
.name-fields-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.text-label { display: block; min-width: 0; font-size: 14px; font-weight: 700; }
#recruiterNameField[hidden] { display: none; }
#sagilityIdField[hidden] { display: none; }
#educationalAttainmentField[hidden],
#timeInOutField[hidden],
#workExperienceQuestion[hidden] { display: none; }
.time-out-details { display: contents; }
.time-out-details[hidden] { display: none; }
.label-description { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.id-sample-caption { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.id-sample-image {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
  padding: 0 14px;
  line-height: normal;
}
input[type="date"], select {
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"]::-webkit-date-and-time-value { min-height: 1.5em; text-align: left; }
select {
  padding-right: 40px;
  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 1 5 5 5-5' fill='none' stroke='%231e2e52' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(77,124,255,.14); }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.choice-option { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 14px; cursor: pointer; }
.choice-option input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue-deep); }
.choice-option strong { color: var(--blue-deep); }
.rncf-recruiter-picker { position: relative; }
.rncf-recruiter-picker > input { padding-right: 44px; }
.rncf-recruiter-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--blue-deep);
}
.rncf-recruiter-toggle:hover,
.rncf-recruiter-toggle:focus-visible { background: var(--blue-light); }
.rncf-recruiter-toggle:disabled { cursor: not-allowed; opacity: .5; }
.rncf-recruiter-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.rncf-recruiter-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #a8c6ff;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 58, 122, .16);
}
.rncf-recruiter-options[hidden] { display: none; }
.rncf-recruiter-option {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid #e5edff;
  border-radius: 0;
  background: #fff;
  color: #244e85;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.rncf-recruiter-option:last-child { border-bottom: 0; }
.rncf-recruiter-option[aria-selected="true"] { background: #eaf2ff; }
.rncf-recruiter-option:hover,
.rncf-recruiter-option:focus-visible {
  background: #eaf2ff;
  color: #163b75;
  outline: 0;
}
.other-purpose-input { max-width: 320px; margin-left: 27px !important; }
.location-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.experience-details {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.experience-details[hidden] { display: none; }
.experience-details > legend,
.experience-category > legend { padding: 0 6px; color: var(--blue-deep); font-size: 15px; font-weight: 800; }
.experience-duration-help { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--blue-accent); border-radius: 6px; background: var(--blue-light); color: var(--ink); font-size: 13px; }
.experience-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.experience-category { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.experience-category > .text-label { margin-bottom: 16px; }
.experience-company-list { display: grid; gap: 14px; }
.experience-company-entry { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.experience-duration { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.add-experience-button,
.remove-experience-button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #a8c6ff;
  background: var(--blue-light);
  color: var(--blue-deep);
  font-size: 13px;
}
.add-experience-button { margin-top: 14px; }
.remove-experience-button { margin-top: 10px; }
.add-experience-button:hover,
.remove-experience-button:hover { background: #dce8ff; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 28px; }
button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.secondary-button:hover { background: var(--blue-light); }
.submit-button { display: inline-flex; align-items: center; gap: 18px; background: var(--blue-deep); color: #fff; }
.submit-button:hover { background: #173d85; }
.submit-button:disabled { opacity: .7; cursor: wait; }
.form-message { min-height: 22px; margin: 14px 0 0; color: #225a9b; font-size: 14px; }
.form-message.error { color: #c14e43; }
.submission-success-dialog {
  position: fixed;
  width: min(440px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.submission-success-dialog::backdrop { background: rgba(9, 25, 55, .62); backdrop-filter: blur(3px); }
.submission-success-dialog h2 { margin: 0 36px 10px 0; color: var(--blue-deep); font: 800 24px/1.2 'Manrope', sans-serif; }
.submission-success-dialog p { margin: 0; color: var(--muted); }
.submission-success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}
.submission-success-close:hover { background: var(--blue-light); }
.submission-success-close:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 2px; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 24px, 620px); padding: 36px 0 50px; }
  .intro { padding: 0 8px 26px; }
  .survey-card { padding: 22px 17px; border-radius: 18px; }
  .survey-progress { flex-direction: column; gap: 3px; }
  .form-grid { grid-template-columns: 1fr; }
  .experience-categories { grid-template-columns: 1fr; }
  .form-grid > *,
  .name-fields-row > * { min-width: 0; }
  .name-fields-row { grid-template-columns: 1fr; gap: 22px; }
  .other-purpose-input {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
  }
  .rncf-recruiter-picker,
  .rncf-recruiter-picker > input { min-width: 0; max-width: 100%; }
  .full-width { grid-column: auto; }
  .consent-pdf { height: 65vh; }
  .document-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .location-options { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
}
