/* Arbeit — intl-tel-input: match .form-control / .form-select from styles.css */

/* Keeps phone column from overflowing (Bootstrap flex/grid) */
.arbeit-phone-field-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.arbeit-phone-group .iti {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Same shell as other inputs: border, radius, background (styles.css .form-control) */
.arbeit-phone-group .iti.iti--allow-dropdown {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #f8fafc;
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
}

/* Single clean divider between flag/dial and number — avoids double-line “glitch” */
.arbeit-phone-group .iti--allow-dropdown .iti__country-container {
  border-radius: 8px 0 0 8px;
  padding-left: 2px;
  border-right: 1px solid #e5e7eb;
}

.arbeit-phone-group .iti__selected-country {
  background: transparent;
  box-shadow: none !important;
  outline: none !important;
}

.arbeit-phone-group .iti__selected-country:focus,
.arbeit-phone-group .iti__selected-country:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.arbeit-phone-group .iti__selected-country-primary {
  padding-left: 8px;
}

.arbeit-phone-group .iti__selected-dial-code {
  color: #667085;
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
}

.arbeit-phone-group .iti__arrow {
  border-top-color: #667085;
  margin-left: 4px;
}

/*
 * Input: do not set padding-left here — intl-tel-input uses var(--iti-selected-country-arrow-padding).
 * Bootstrap .form-control was removed from the markup so it cannot override that padding.
 * Never use padding shorthand (e.g. … 6px 8px) on this input or placeholder overlaps the flag.
 */
.arbeit-phone-group .iti--allow-dropdown input.iti__tel-input,
.arbeit-phone-group .iti--allow-dropdown input.iti__tel-input[type="tel"] {
  border-radius: 0 8px 8px 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13px;
  color: #667085;
  background-color: transparent !important;
  box-sizing: border-box;
  line-height: 1.35;
}

.arbeit-phone-group .iti--allow-dropdown input.iti__tel-input::placeholder {
  color: #98a2b3;
  opacity: 1;
}

/* Match focus ring with .form-control:focus */
.arbeit-phone-group .iti.iti--allow-dropdown:focus-within {
  border-color: #82aa32;
  box-shadow: 0 0 0 3px rgba(130, 170, 50, 0.1);
  background-color: #fff;
}

.arbeit-phone-group .iti.iti--allow-dropdown:focus-within input.iti__tel-input {
  background-color: transparent !important;
}

/* Dropdown panel */
.arbeit-phone-group .iti__dropdown-content {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  margin-top: 4px;
}

.arbeit-phone-group .iti__country-list {
  max-height: 240px;
  border-radius: 0 0 8px 8px;
}

.arbeit-phone-group .iti__country-name {
  margin-right: 8px;
}

.arbeit-phone-group .iti__dial-code {
  color: #667085;
  font-size: 0.9em;
}

.arbeit-phone-group .iti__search-input {
  border-radius: 6px;
  border: 1px solid #d0d5dd !important;
  padding: 8px 10px 8px 32px !important;
  font-size: 13px;
}

/* jQuery Validate */
.arbeit-phone-field-wrap label.error,
.arbeit-phone-field-wrap + label.error {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #dc3545;
  font-weight: 500;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  position: static;
  float: none;
}

/* ----- Index / service enquiry: same as .enquiry-form-wrapper .form-control (padding 6px 14px, ~34px total) ----- */
.enquiry-form-wrapper .arbeit-phone-group .iti.iti--allow-dropdown {
  border-radius: 8px;
  height: 34px;
  min-height: 34px;
}

.enquiry-form-wrapper .arbeit-phone-group .iti--allow-dropdown .iti__country-container {
  border-radius: 8px 0 0 8px;
}

.enquiry-form-wrapper .arbeit-phone-group .iti--allow-dropdown input.iti__tel-input,
.enquiry-form-wrapper .arbeit-phone-group .iti--allow-dropdown input.iti__tel-input[type="tel"] {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 14px;
  padding-left: var(--iti-selected-country-arrow-padding, 96px) !important;
}

/*
 * Technology / Strategic / Resources (.form-wrapper): match active .form-control from styles.css line 189
 * (padding 6px 14px, radius 8px). The block at ~408 (10px padding, 6px radius) is commented out, so these
 * forms use the same control styling as index — not the taller 42px we had before.
 */
.form-wrapper .arbeit-phone-group .iti.iti--allow-dropdown {
  border-radius: 8px;
  height: 34px;
  min-height: 34px;
}

.form-wrapper .arbeit-phone-group .iti--allow-dropdown .iti__country-container {
  border-radius: 8px 0 0 8px;
}

.form-wrapper .arbeit-phone-group .iti--allow-dropdown input.iti__tel-input,
.form-wrapper .arbeit-phone-group .iti--allow-dropdown input.iti__tel-input[type="tel"] {
  border-radius: 0 8px 8px 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 14px;
  padding-left: var(--iti-selected-country-arrow-padding, 96px) !important;width: 100%;
}
