.kc-consultation-form {
  --kc-primary: #174f80;
  --kc-primary-dark: #103a5f;
  --kc-accent: #c48b2d;
  --kc-text: #202833;
  --kc-muted: #667085;
  --kc-line: #d7dde5;
  --kc-soft: #f5f8fb;
  --kc-white: #ffffff;
  --kc-danger: #b42318;
  --kc-danger-soft: #fff3f1;
  --kc-focus: rgba(23, 79, 128, 0.18);
  max-width: 980px;
  margin: 30px auto;
  padding: 0;
  color: var(--kc-text);
  font-size: 16px;
  line-height: 1.5;
}

.kc-consultation-form *,
.kc-consultation-form *::before,
.kc-consultation-form *::after {
  box-sizing: border-box;
}

.kc-form-panel {
  background: var(--kc-white);
  border: 1px solid var(--kc-line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(16, 24, 40, .08);
  overflow: hidden;
}

.kc-form-header {
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--kc-primary), var(--kc-primary-dark));
  color: #fff;
}

.kc-form-header h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}

.kc-form-header p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .88);
}

.kc-form-body {
  padding: 28px 32px 34px;
}

.kc-form-section {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--kc-line);
  border-radius: 14px;
  background: var(--kc-white);
}

.kc-form-section:last-of-type {
  margin-bottom: 0;
}

.kc-form-section legend {
  width: auto;
  margin: 0 0 18px;
  padding: 0 12px 0 0;
  color: var(--kc-primary-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  border: 0;
}

.kc-form-section.kc-highlight-section {
  border-color: rgba(196, 139, 45, 0.5);
  background: #fffaf2;
}

.kc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.kc-field {
  min-width: 0;
}

.kc-field-full {
  grid-column: 1 / -1;
}

.kc-field label,
.kc-question-label {
  display: block;
  margin: 0 0 7px;
  color: var(--kc-text);
  font-weight: 700;
}

.kc-required {
  color: var(--kc-danger);
  font-weight: 700;
}

.kc-help {
  display: block;
  margin-top: 6px;
  color: var(--kc-muted);
  font-size: 13px;
  font-weight: 400;
}

.kc-consultation-form input[type="text"],
.kc-consultation-form input[type="email"],
.kc-consultation-form input[type="tel"],
.kc-consultation-form input[type="date"],
.kc-consultation-form input[type="file"],
.kc-consultation-form select,
.kc-consultation-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--kc-text);
  background-color: #fff;
  border: 1px solid var(--kc-line);
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.kc-consultation-form textarea {
  min-height: 125px;
  resize: vertical;
}

.kc-consultation-form input[type="file"] {
  padding: 9px 12px;
  background: var(--kc-soft);
}

.kc-consultation-form input:focus,
.kc-consultation-form select:focus,
.kc-consultation-form textarea:focus {
  border-color: var(--kc-primary);
  box-shadow: 0 0 0 4px var(--kc-focus);
}

.kc-consultation-form input:disabled,
.kc-consultation-form select:disabled,
.kc-consultation-form textarea:disabled {
  color: #8a94a6;
  background: #eef2f6;
  cursor: not-allowed;
}

.kc-radio-group,
.kc-radio-group.kc-radio-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
}

.kc-radio {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 13px;
  color: var(--kc-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid #cbd7e3;
  border-radius: 7px;
  background: #f9fbfd;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.kc-radio span {
  display: inline-block;
  font-weight: 700;
}

.kc-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #98a6b5;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.kc-radio:hover {
  border-color: rgba(23, 79, 128, .55);
  background: #fff;
}

.kc-radio:has(input[type="radio"]:checked) {
  border-color: var(--kc-primary);
  background: #eef7fc;
  box-shadow: 0 0 0 2px rgba(23, 79, 128, 0.12);
}

.kc-radio input[type="radio"]:checked {
  border-color: var(--kc-primary);
  background: var(--kc-primary);
}

.kc-radio:has(input[type="radio"]:focus-visible) {
  border-color: var(--kc-primary);
  box-shadow: 0 0 0 4px var(--kc-focus);
}

.kc-conditional-section {
  margin-top: 28px;
  border-color: rgba(23, 79, 128, .28);
  background: #fbfdff;
}

.kc-conditional-section [hidden] {
  display: none !important;
}

.kc-form-alert {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 10px;
  color: var(--kc-danger);
  background: var(--kc-danger-soft);
  font-weight: 700;
}

.kc-form-alert [hidden] {
  display: none !important;
}

.kc-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--kc-line);
}

.kc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 48px;
  padding: 12px 22px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border: 0;
  border-radius: 999px;
  background: var(--kc-primary);
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.kc-submit:hover,
.kc-submit:focus {
  color: #fff;
  background: var(--kc-primary-dark);
  transform: translateY(-1px);
}

.kc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.kc-form-is-blocked.kc-submit {
  background: #98a2b3;
}

@media (max-width: 767px) {
  .kc-consultation-form {
    margin: 22px 0;
    font-size: 15px;
  }
  .kc-form-header,
  .kc-form-body {
    padding: 22px 18px;
  }
  .kc-form-header h2 {
    font-size: 24px;
  }
  .kc-form-section {
    padding: 18px;
  }
  .kc-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kc-form-actions {
    align-items: stretch;
    justify-content: stretch;
  }
  .kc-submit {
    width: 100%;
  }
}

/* Consultation wrapper and content settings */
.consultation-page-row {
  align-items: flex-start;
}

.consultation-main-col p {
  font-size: 16px;
  line-height: 1.65;
}

.consultation-image-col #portfolio {
  margin-bottom: 25px;
}

.consultation-image-col .visa-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 6px;
}

/* Recruitment notice callout rules */
.recruitment-alert {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-left: 5px solid #ffc107;
  color: #856404;
  padding: 15px 20px;
  margin: 25px 0;
  border-radius: 4px;
}

.recruitment-alert h4 {
  margin: 0 0 10px;
  color: #856404;
  font-weight: 700;
}

.recruitment-alert ul {
  padding-left: 20px;
  margin: 0 0 10px;
}

.recruitment-alert li {
  margin-bottom: 6px;
}

.recruitment-alert p {
  margin-bottom: 0;
}

/* Modal and layout activation logic blocks */
.consultation-form-cta {
  margin: 30px 0 15px;
  padding: 28px;
  background: #f5f9fc;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  text-align: center;
}

.consultation-modal-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  color: #fff;
  background: #174f80;
  border: 1px solid #174f80;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.consultation-modal-open:hover,
.consultation-modal-open:focus {
  color: #fff;
  background: #0f3d65;
  border-color: #0f3d65;
  box-shadow: 0 8px 22px rgba(15, 61, 101, .22);
  transform: translateY(-1px);
  outline: none;
}

.consultation-form-cta-note {
  max-width: 560px;
  margin: 12px auto 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.5;
}

.consultation-map-block {
  padding: 20px 20px 0 0;
}

.consultation-map-block iframe {
  max-width: 100%;
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  width: 100%;
  height: 100%;
}

.consultation-modal.is-open {
  display: block;
}

.consultation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 38, .72);
}

html.consultation-modal-active,
body.consultation-modal-active {
  overflow: hidden;
}

.consultation-modal-panel {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  max-width: 1180px;
  height: calc(100vh - 40px);
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.consultation-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: #174f80;
  color: #fff;
}

.consultation-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.consultation-modal-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.consultation-modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  font-size: 32px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.consultation-modal-close:hover,
.consultation-modal-close:focus {
  background: rgba(255, 255, 255, .22);
  transform: rotate(90deg);
  outline: none;
}

.consultation-modal-intro {
  padding: 16px 28px;
  background: #f5f9fc;
  border-bottom: 1px solid #dbe7f1;
}

.consultation-modal-intro p {
  margin: 0;
  color: #425466;
  font-size: 16px;
  line-height: 1.55;
}

.consultation-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 28px;
  background: #fff;
  padding-bottom: 90px;
}

.consultation-modal-body form {
  max-width: 100%;
  margin: 0;
}

.consultation-modal-body.kc-form,
.consultation-modal-body.kaimah-consultation-form {
  margin-top: 0;
}

@media (max-width: 767px) {
  .consultation-form-cta {
    padding: 22px 16px;
    text-align: left;
  }
  .consultation-modal-open {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
  .consultation-form-cta-note {
    text-align: center;
  }
  .consultation-modal-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .consultation-modal-header {
    padding: 18px 18px;
  }
  .consultation-modal-header h2 {
    font-size: 21px;
  }
  .consultation-modal-intro {
    padding: 14px 18px;
  }
  .consultation-modal-body {
    padding: 20px 16px 28px;
  }
  .consultation-modal-close {
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 30px;
  }
  .kc-form-actions {
    margin: 24px 16px 28px;
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .consultation-modal-kicker {
    font-size: 11px;
  }
  .consultation-modal-header h2 {
    font-size: 19px;
  }
}

.kc-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 28px -28px -28px;
  padding: 16px 28px;
  background: #fff;
  border-top: 1px solid #dbe7f1;
  box-shadow: 0 -8px 22px rgba(12, 24, 38, .08);
}

.kc-form-actions .kc-submit {
  width: 100%;
}
