.nsl-form-iq-wrap {
  max-width: 600px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.nsl-form-iq-wrap h4 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #0f172a;
}
.nsl-form-iq-wrap .nsl-form-desc {
  color: #64748b;
  margin: 0 0 24px;
  font-size: 14px;
}
.nsl-form-iq-wrap label,
.nsl-form-iq-wrap .nsl-field-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: #1e293b;
}
.nsl-form-iq-wrap .nsl-required-star {
  color: #dc2626;
}
.nsl-form-iq-wrap input[type="text"],
.nsl-form-iq-wrap input[type="tel"]:not(.nsl-phone-number-input),
.nsl-form-iq-wrap input[type="email"],
.nsl-form-iq-wrap input[type="number"],
.nsl-form-iq-wrap select:not(.nsl-phone-dial-select) {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  color: #1e293b;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nsl-form-iq-wrap textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
  color: #1e293b;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Phone with Country Dial Code Group */
.nsl-form-iq-wrap .nsl-phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.nsl-form-iq-wrap .nsl-phone-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.nsl-form-iq-wrap .nsl-phone-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 99;
  white-space: normal;
  max-width: 290px;
}
.nsl-form-iq-wrap .nsl-phone-tooltip code {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.nsl-form-iq-wrap .nsl-phone-tooltip-arrow {
  position: absolute;
  bottom: -5px;
  left: 30px;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  transform: rotate(45deg);
}
.nsl-form-iq-wrap .nsl-phone-input-group:focus-within .nsl-phone-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nsl-form-iq-wrap .nsl-phone-input-group.hide-tooltip .nsl-phone-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(4px) !important;
}
/* Country Sync Checkbox Prompt */
.nsl-form-iq-wrap .nsl-country-sync-prompt-wrap {
  margin-top: 6px;
  animation: nslFadeIn 0.2s ease;
}
.nsl-form-iq-wrap .nsl-country-sync-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.nsl-form-iq-wrap .nsl-country-sync-label:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.nsl-form-iq-wrap .nsl-country-sync-cb {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.nsl-form-iq-wrap .nsl-country-sync-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #16a34a;
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.nsl-form-iq-wrap .nsl-country-sync-check-icon {
  display: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
}
.nsl-form-iq-wrap .nsl-country-sync-cb:checked + .nsl-country-sync-box,
.nsl-form-iq-wrap .nsl-country-sync-label.is-active .nsl-country-sync-box {
  background: #16a34a !important;
  border-color: #16a34a !important;
}
.nsl-form-iq-wrap .nsl-country-sync-cb:checked + .nsl-country-sync-box .nsl-country-sync-check-icon,
.nsl-form-iq-wrap .nsl-country-sync-label.is-active .nsl-country-sync-box .nsl-country-sync-check-icon {
  display: block !important;
}
.nsl-form-iq-wrap .nsl-phone-dial-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 0 8px;
  flex-shrink: 0;
}
.nsl-form-iq-wrap .nsl-phone-flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.nsl-form-iq-wrap .nsl-phone-dial-select {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  outline: none !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 75px !important;
  max-width: 120px !important;
  box-shadow: none !important;
}
.nsl-form-iq-wrap .nsl-phone-number-input {
  border: none !important;
  background: transparent !important;
  flex: 1 !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100% !important;
}
.nsl-field-wrap.has-error .nsl-phone-input-group {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
/* Unified placeholder color and ellipsis for all inputs, textareas, and select components */
.nsl-form-iq-wrap input::placeholder {
  color: #858585 !important;
  -webkit-text-fill-color: #858585 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.nsl-form-iq-wrap textarea::placeholder {
  color: #858585 !important;
  -webkit-text-fill-color: #858585 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}
.nsl-form-iq-wrap input::-webkit-input-placeholder {
  color: #858585 !important;
  -webkit-text-fill-color: #858585 !important;
  opacity: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.nsl-form-iq-wrap textarea::-webkit-input-placeholder {
  color: #858585 !important;
  -webkit-text-fill-color: #858585 !important;
  opacity: 1 !important;
}
.nsl-form-iq-wrap input::-moz-placeholder,
.nsl-form-iq-wrap textarea::-moz-placeholder {
  color: #858585 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}
.nsl-form-iq-wrap input:-ms-input-placeholder,
.nsl-form-iq-wrap textarea:-ms-input-placeholder {
  color: #858585 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}
.nsl-form-iq-wrap .nsl-multiselect-placeholder,
.nsl-form-iq-wrap .nsl-singleselect-placeholder {
  color: #858585 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}
.nsl-form-iq-wrap input[type="text"]:focus,
.nsl-form-iq-wrap input[type="tel"]:focus,
.nsl-form-iq-wrap input[type="email"]:focus,
.nsl-form-iq-wrap textarea:focus,
.nsl-form-iq-wrap select:focus {
  border-color: #008d3c;
  box-shadow: 0 0 0 3px rgba(0, 141, 60, 0.12);
}
.nsl-form-iq-wrap input[type="text"],
.nsl-form-iq-wrap input[type="tel"],
.nsl-form-iq-wrap input[type="email"],
.nsl-form-iq-wrap select:not([multiple]) {
  height: 44px;
}
.nsl-form-iq-wrap textarea {
  min-height: 80px;
  font-family: inherit;
}
.nsl-form-iq-wrap textarea.nsl-field-message {
  min-height: 110px;
}
.nsl-form-iq-wrap select:not([multiple]) {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364786b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px;
}

/* --- CUSTOM MULTI-SELECT DROPDOWN COMPONENT --- */
.nsl-multiselect-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.nsl-multiselect-control {
  min-height: 44px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 34px 4px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nsl-multiselect-control:focus,
.nsl-multiselect-container.is-open .nsl-multiselect-control {
  border-color: #008d3c;
  box-shadow: 0 0 0 3px rgba(0, 141, 60, 0.12);
  outline: none;
}

.nsl-multiselect-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.nsl-multiselect-placeholder {
  color: #858585;
  font-size: 14px;
  line-height: 34px;
  user-select: none;
  pointer-events: none;
}

.nsl-multiselect-chip {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.nsl-multiselect-chip-remove {
  color: #059669;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

.nsl-multiselect-chip-remove:hover {
  color: #dc2626;
}

.nsl-multiselect-indicators {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.nsl-multiselect-clear {
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
}

.nsl-multiselect-clear:hover {
  color: #ef4444;
}

.nsl-multiselect-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.nsl-multiselect-container.is-open .nsl-multiselect-arrow {
  transform: rotate(180deg);
}

.nsl-multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  box-sizing: border-box;
  overflow: hidden;
}

.nsl-multiselect-search-wrap {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.nsl-multiselect-search-input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  outline: none !important;
  background: #ffffff !important;
}

.nsl-multiselect-search-input:focus {
  border-color: #008d3c !important;
}

.nsl-multiselect-menu {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.nsl-multiselect-option {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #1e293b !important;
  margin: 0 !important;
  font-weight: normal !important;
  user-select: none;
  transition: background 0.15s;
}

.nsl-multiselect-option:hover {
  background: #f1f5f9;
}

.nsl-multiselect-option.is-selected {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 500 !important;
}

.nsl-multiselect-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #008d3c;
}

.nsl-multiselect-no-options {
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* --- CUSTOM SINGLE SEARCHABLE SELECT DROPDOWN --- */
.nsl-singleselect-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.nsl-singleselect-control {
  height: 44px;
  min-height: 44px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 34px 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nsl-singleselect-control:focus,
.nsl-singleselect-container.is-open .nsl-singleselect-control {
  border-color: #008d3c;
  box-shadow: 0 0 0 3px rgba(0, 141, 60, 0.12);
  outline: none;
}

.nsl-singleselect-value {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsl-singleselect-placeholder {
  color: #858585;
  user-select: none;
}

.nsl-singleselect-indicators {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.nsl-singleselect-clear {
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  pointer-events: auto;
}

.nsl-singleselect-clear:hover {
  color: #ef4444;
}

.nsl-singleselect-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.nsl-singleselect-container.is-open .nsl-singleselect-arrow {
  transform: rotate(180deg);
}

.nsl-singleselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  box-sizing: border-box;
  overflow: hidden;
}

.nsl-singleselect-search-wrap {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.nsl-singleselect-search-input {
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  outline: none !important;
  background: #ffffff !important;
}

.nsl-singleselect-search-input:focus {
  border-color: #008d3c !important;
}

.nsl-singleselect-menu {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.nsl-singleselect-option {
  padding: 9px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #1e293b !important;
  user-select: none;
  transition: background 0.15s;
}

.nsl-singleselect-option:hover {
  background: #f1f5f9;
}

.nsl-singleselect-option.is-selected {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

.nsl-singleselect-no-options {
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* Form Layout */
.nsl-field-wrap {
  margin-bottom: 16px;
}
.nsl-form-iq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nsl-form-iq-two-col .nsl-field-full-width {
  grid-column: span 2;
}
.nsl-submit-wrap {
  text-align: center;
  margin-top: 24px;
}
.nsl-form-iq-wrap .nsl-submit-btn {
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.nsl-form-iq-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.nsl-form-iq-success .dashicons-yes-alt {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #16a34a;
}
.nsl-form-iq-success p {
  font-size: 16px;
  color: #1e293b;
  margin: 12px 0 0;
  font-weight: 600;
}

/* Inline Error State */
.nsl-field-wrap.has-error input,
.nsl-field-wrap.has-error textarea,
.nsl-field-wrap.has-error select,
.nsl-field-wrap.has-error .nsl-multiselect-control,
.nsl-field-wrap.has-error .nsl-singleselect-control,
.nsl-field-wrap.has-error .select2-container--nsl .select2-selection {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.nsl-field-wrap.has-error input:focus,
.nsl-field-wrap.has-error textarea:focus,
.nsl-field-wrap.has-error select:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  outline: none !important;
}
.nsl-field-error-msg {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
  animation: nslErrorFadeIn 0.2s ease;
}
@keyframes nslErrorFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
