.euja-candidate-card {
  color: #10213e;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(2, 17, 45, 0.32);
  overflow: hidden;
}

.euja-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 30px 21px;
}

.euja-form-kicker {
  display: block;
  margin-bottom: 6px;
  color: #1769e8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.euja-form-header h2,
.euja-form-success h2 {
  margin: 0;
  color: #10213e;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.euja-form-time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 99px;
  color: #53657f;
  background: #eef3fa;
  font-size: 11px;
  font-weight: 750;
}

.euja-form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 30px 21px;
}

.euja-form-progress span {
  height: 3px;
  border-radius: 6px;
  background: #e2e8f1;
}

.euja-form-progress span.is-active { background: #1769e8; }

.euja-candidate-form { padding: 0 30px 30px; }

.euja-form-section {
  min-width: 0;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid #e8eef6;
}

.euja-form-section legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
  color: #162844;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.015em;
}

.euja-form-section legend > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #fff;
  background: #0b43a7;
  font-size: 11px;
}

.euja-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.euja-field { min-width: 0; margin-bottom: 17px; }
.euja-form-grid .euja-field { margin-bottom: 0; }
.euja-field-full { width: 100%; }

.euja-field label:not(.euja-choice-card):not(.euja-chip):not(.euja-country-option),
.euja-label {
  display: block;
  margin-bottom: 8px;
  color: #263b5b;
  font-size: 12px;
  font-weight: 750;
}

.euja-field label > span,
.euja-label > span { color: #e34d59; }

.euja-label small {
  margin-left: 4px;
  color: #7a899e;
  font-size: 10px;
  font-weight: 550;
}

.euja-field input[type="text"],
.euja-field input[type="email"],
.euja-field input[type="tel"],
.euja-field input[type="date"],
.euja-field input[type="number"],
.euja-field textarea,
.euja-field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7e1ee;
  border-radius: 11px;
  outline: none;
  color: #152844;
  background: #fbfcfe;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.euja-field textarea {
  min-height: 112px;
  height: auto;
  padding-top: 12px;
  resize: vertical;
}

.euja-field input:focus,
.euja-field textarea:focus,
.euja-field select:focus {
  border-color: #1769e8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.12);
}

.euja-field input::placeholder { color: #9aa7b8; }

.euja-readonly-value {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d8e3f0;
  border-radius: 11px;
  color: #174b99;
  background: #f1f6ff;
  font-size: 13px;
  font-weight: 750;
}

.euja-readonly-value span { color: #1769e8; font-size: 8px; }

.euja-choice-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.euja-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  cursor: pointer;
  background: #fff;
  transition: 0.18s ease;
}

.euja-choice-card:hover { border-color: #9abcf2; }

.euja-choice-card:has(input:checked) {
  border-color: #1769e8;
  background: #f2f7ff;
  box-shadow: 0 0 0 2px rgba(23, 105, 232, 0.09);
}

.euja-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.euja-choice-card:focus-within { outline: 3px solid rgba(23, 105, 232, 0.18); }

.euja-choice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  color: #0b43a7;
  background: #e9f1ff;
  font-size: 13px;
  font-weight: 900;
}

.euja-choice-card:has(input:checked) .euja-choice-icon {
  color: #061735;
  background: #ffd438;
}

.euja-choice-card strong,
.euja-choice-card small { display: block; }
.euja-choice-card strong { color: #152844; font-size: 13px; }
.euja-choice-card small { margin-top: 3px; color: #718096; font-size: 10px; line-height: 1.3; }

.euja-chip-group,
.euja-inline-options,
.euja-country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.euja-chip,
.euja-inline-options label,
.euja-country-option {
  position: relative;
  cursor: pointer;
}

.euja-chip input,
.euja-inline-options input,
.euja-country-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.euja-chip span,
.euja-inline-options label span,
.euja-country-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  color: #425776;
  background: #fff;
  font-size: 12px;
  font-weight: 720;
  transition: 0.16s ease;
}

.euja-chip input:checked + span,
.euja-inline-options input:checked + span,
.euja-country-option input:checked + span {
  border-color: #1769e8;
  color: #0b43a7;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px #1769e8;
}

.euja-chip:focus-within span,
.euja-inline-options label:focus-within span,
.euja-country-option:focus-within span { outline: 3px solid rgba(23, 105, 232, 0.16); }

.euja-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.euja-country-option span { width: 100%; padding: 0 7px; }
.euja-conditional { margin-top: 2px; }
.euja-conditional[hidden],
[data-euja-custom-rotation][hidden] { display: none !important; }

.euja-consent {
  padding: 15px;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  background: #f8fafc;
}

.euja-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #596b83;
  font-size: 11px;
  line-height: 1.55;
}

.euja-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; accent-color: #1769e8; }
.euja-consent a { color: #0b55bd; }

.euja-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  padding: 0 18px 0 21px;
  border: 0;
  border-radius: 13px;
  color: #061735;
  background: #ffd438;
  box-shadow: 0 12px 26px rgba(220, 167, 0, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.18s ease, background 0.18s ease;
}

.euja-submit:hover { transform: translateY(-1px); background: #ffdd59; }
.euja-submit:focus-visible { outline: 3px solid rgba(23, 105, 232, 0.35); outline-offset: 3px; }
.euja-submit:disabled { cursor: wait; opacity: 0.72; transform: none; }
.euja-submit-arrow { font-size: 22px; }

.euja-form-note {
  margin: 11px 0 0;
  color: #8491a3;
  text-align: center;
  font-size: 10px;
}

.euja-form-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #9a2933;
  background: #fff0f1;
  font-size: 12px;
  line-height: 1.45;
}

.euja-form-success {
  padding: 58px 34px 64px;
  text-align: center;
}

.euja-success-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #061735;
  background: #ffd438;
  box-shadow: 0 14px 30px rgba(240, 184, 0, 0.25);
  font-size: 27px;
  font-weight: 900;
}

.euja-form-success p {
  max-width: 390px;
  margin: 15px auto 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.euja-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 640px) {
  .euja-form-header { padding: 24px 20px 18px; }
  .euja-form-progress { padding: 0 20px 18px; }
  .euja-candidate-form { padding: 0 20px 24px; }
  .euja-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .euja-choice-cards { grid-template-columns: 1fr; }
  .euja-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .euja-form-section { padding: 21px 0; }
}

/* Version 2 multi-step questionnaire */
.euja-form-progress-wrap {
  padding: 0 30px 20px;
}

.euja-form-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #718096;
  font-size: 11px;
}

.euja-form-progress-copy strong { color: #174ea6; }
.euja-form-progress-wrap .euja-form-progress { padding: 0; grid-template-columns: repeat(4, 1fr); }

.euja-js .euja-form-step[hidden] { display: none !important; }

.euja-form-step {
  min-height: 350px;
  padding: 25px 0 8px;
  border-top: 1px solid #e8eef6;
}

.euja-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 23px;
}

.euja-step-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: #0b43a7;
  font-size: 11px;
  font-weight: 850;
}

.euja-step-heading h3 {
  margin: 0;
  color: #162844;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.euja-step-heading p {
  margin: 5px 0 0;
  color: #7a899e;
  font-size: 11px;
  line-height: 1.45;
}

.euja-field-full-span { grid-column: 1 / -1; }
.euja-secondary-choice { margin-top: 18px; }

.euja-role-note {
  margin: 13px 0 0;
  padding-left: 11px;
  border-left: 3px solid #ffd438;
  color: #6c7c91;
  font-size: 11px;
  line-height: 1.55;
}

.euja-qualification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 17px;
}

.euja-qualification-card {
  padding: 15px;
  border: 1px solid #dfe7f2;
  border-radius: 13px;
  background: #f9fbfe;
}

.euja-qualification-card .euja-label { line-height: 1.4; }
.euja-conditional-date { margin: 13px 0 0; }

.euja-salary-box {
  margin: 19px 0;
  padding: 17px;
  border: 1px solid #d9e5f5;
  border-radius: 15px;
  background: #f5f9ff;
}

.euja-salary-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr 0.8fr;
  gap: 9px;
}

.euja-salary-grid .euja-field { margin-bottom: 10px; }
.euja-salary-box > .euja-field { margin: 0; }

.euja-consent + .euja-consent { margin-top: 8px; }
.euja-consent-optional { background: #fff; }

.euja-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.euja-next-button,
.euja-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 50px;
  padding: 0 19px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
}

.euja-next-button {
  margin-left: auto;
  border: 0;
  color: #061735;
  background: #ffd438;
  box-shadow: 0 10px 22px rgba(220, 167, 0, 0.18);
}

.euja-back-button {
  border: 1px solid #d8e2ef;
  color: #53657f;
  background: #fff;
}

.euja-step-actions .euja-submit { width: auto; flex: 1; margin: 0 0 0 auto; }

@media (max-width: 700px) {
  .euja-form-progress-wrap { padding: 0 20px 18px; }
  .euja-form-step { min-height: 0; padding-top: 22px; }
  .euja-qualification-grid,
  .euja-salary-grid { grid-template-columns: 1fr; }
  .euja-field-full-span { grid-column: auto; }
  .euja-next-button { flex: 1; }
  .euja-step-actions .euja-submit { width: 100%; }
}
