.custom-input-wrapper {
  width: 100%;
  min-width: 0;
}

.custom-input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
}

.required-star {
  color: #dd010b;
  margin-left: 3px;
  font-size: 18px;
  font-weight: 800;
}

.custom-input {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 0 14px;
  color: #1f2937;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-size: 15px;
  outline: none;
}

.custom-input.input-error {
  border-color: #dd010b !important;
}

.custom-input.input-error:focus {
  border-color: #dd010b !important;
  box-shadow: 0 0 0 2px rgba(221, 1, 11, 0.1);
}

.custom-input-error {
  color: #dd010b;
  font-size: 13px;
  margin-top: 5px;
  text-align: end;
}

.custom-input::placeholder {
  color: #64748b;
  opacity: 1;
}

.custom-input:focus {
  border-color: #86a8dc;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.custom-input:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}

.custom-select {
  appearance: auto;
  cursor: pointer;
}

.custom-select:disabled {
  cursor: not-allowed;
}

.custom-input-error {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: #dc3545;
}

.custom-radio-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.custom-radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: #1f2937;
}

.custom-radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-radio-circle {
  width: 16px;
  height: 16px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.custom-radio-label {
  font-size: 14px;
}

.custom-radio-option input:checked + .custom-radio-circle {
  border-color: #489e2d;
}

.custom-radio-option input:checked + .custom-radio-circle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #489e2d;
}

.custom-radio-option:hover .custom-radio-circle {
  border-color: #489e2d;
}

.custom-radio-option input:disabled + .custom-radio-circle {
  opacity: 0.5;
}

.custom-radio-option input:disabled ~ .custom-radio-label {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-error-radio .custom-radio-circle {
  border-color: #dd010b;
}

/* checkbox */

.custom-checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  width: fit-content;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: #fff;
}

.custom-checkbox-box i {
  display: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.custom-checkbox-input:checked + .custom-checkbox-box {
  background: #489e2d;
  border-color: #489e2d;
}

.custom-checkbox-input:checked + .custom-checkbox-box i {
  display: block;
}

.custom-checkbox-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-checkbox-label {
  font-size: 14px;
  line-height: 22px;
  color: #111827;
}

.custom-checkbox-subvalue {
  font-size: 12px;
  line-height: 20px;
  color: #6b7280;
}

.custom-checkbox-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}